Skip to content

Commit

Permalink
[BACKEND] Update LLVM version to llvm/llvm-project@3a83162 (#3818)
Browse files Browse the repository at this point in the history
  • Loading branch information
chsigg authored May 10, 2024
1 parent 84b8e5f commit 77195bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/llvm-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ed4e505c219fe6c7464ea5a056e90d8cd94c7332
3a8316216807d64a586b971f51695e23883331f7
2 changes: 1 addition & 1 deletion lib/Conversion/TritonGPUToLLVM/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ applyLinearLayout(Location loc, RewriterBase &rewriter,
for (auto [inDimName, idx] : indices) {
if (auto constant = dyn_cast<LLVM::ConstantOp>(idx.getDefiningOp())) {
constantIns.push_back(
{inDimName, constant.getValue().cast<IntegerAttr>().getInt()});
{inDimName, cast<IntegerAttr>(constant.getValue()).getInt()});
} else {
constantIns.push_back({inDimName, 0});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ createAsyncOps(scf::ForOp &forOp, CoarseSchedule &schedule,
static void invalidateBarriers(OpBuilder &builder,
SmallVector<Value> &barriers) {
for (Value barrier : barriers) {
int numBarriers = barrier.getType().cast<tt::MemDescType>().getShape()[0];
int numBarriers = cast<tt::MemDescType>(barrier.getType()).getShape()[0];
for (int i = 0; i < numBarriers; i++) {
Value idx = builder.create<arith::ConstantIntOp>(barrier.getLoc(), i, 32);
tt::MemDescType barrierTy = tt::MemDescType::get(
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/LLVMIR/LLVMDIScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct LLVMDIScopePass : public LLVMDIScopeBase<LLVMDIScopePass> {
distinctId = mlir::DistinctAttr::create(mlir::UnitAttr::get(context));
if (!compileUnitAttr) {
compileUnitAttr = LLVM::DICompileUnitAttr::get(
context, distinctId, llvm::dwarf::DW_LANG_C, fileAttr,
distinctId, llvm::dwarf::DW_LANG_C, fileAttr,
StringAttr::get(context, "triton"),
/*isOptimized=*/true, LLVM::DIEmissionKind::LineTablesOnly);
}
Expand Down

0 comments on commit 77195bc

Please sign in to comment.