Skip to content

Commit 1d21468

Browse files
karupayunchsigg
authored andcommitted
[BACKEND] Update LLVM version to llvm/llvm-project@99bb9a7 (triton-lang#4410)
Included the use of the non-deprecated version of createMCObjectStreamer (needed after llvm/llvm-project@f1422a8).
1 parent 83c9eb0 commit 1d21468

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cmake/llvm-hash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dd7d81ea49bf39e1d69bbb84bd3f31bd95519369
1+
99bb9a719cec9513e72ad275c1c0302b76b6c408

third_party/amd/lib/TritonAMDGPUToLLVM/BuiltinFuncToLLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class CallOpConversion : public mlir::RewritePattern {
158158
auto operands = callOp.getOperands();
159159
auto result = callOp.getResult();
160160

161-
LLVM::LLVMFunctionType calleeType = callOp.getCalleeFunctionType();
161+
LLVM::LLVMFunctionType calleeType = callOp.getVarCalleeType().value();
162162
Type returnType = calleeType.getReturnType();
163163

164164
auto loc = callOp.getLoc();

third_party/amd/python/triton_amd.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ void init_triton_amd(py::module &&m) {
197197
target->createMCAsmBackend(*sti, *mri, mcOptions));
198198
std::unique_ptr<llvm::MCObjectWriter> ow(mab->createObjectWriter(svos));
199199
mcStreamer.reset(target->createMCObjectStreamer(
200-
triple, ctx, std::move(mab), std::move(ow), std::move(ce), *sti));
200+
triple, ctx, std::move(mab), mab->createObjectWriter(svos),
201+
std::move(ce), *sti));
201202

202203
std::unique_ptr<llvm::MCAsmParser> parser(
203204
createMCAsmParser(srcMgr, ctx, *mcStreamer, *mai));

0 commit comments

Comments
 (0)