Skip to content

Commit

Permalink
[Draft] Update LLVM version to debug a building issue
Browse files Browse the repository at this point in the history
This draft PR is trying to find the culprit of the building issue we currently have when we try to update llvm. We are bisecting between 2 versions.
  • Loading branch information
karupayun authored and chsigg committed Aug 5, 2024
1 parent 9e79619 commit c61bfd2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/llvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
-DLLVM_INSTALL_UTILS=ON
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
-DLLVM_ENABLE_TERMINFO=OFF
-DLLVM_ENABLE_ABI_BREAKING_CHECKS=0
llvm-project/llvm
ninja -C llvm-project/build check-mlir install
Expand All @@ -130,6 +131,7 @@ jobs:
-DLLVM_INSTALL_UTILS=ON
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
-DLLVM_ENABLE_TERMINFO=OFF
-DLLVM_ENABLE_ABI_BREAKING_CHECKS=0
llvm-project/llvm
ninja -C llvm-project/build check-mlir install
Expand Down Expand Up @@ -175,6 +177,7 @@ jobs:
-DCMAKE_LINKER=$LINKER \
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
-DLLVM_ENABLE_ZSTD=OFF \
-DLLVM_ENABLE_ABI_BREAKING_CHECKS=0 \
-DLLVM_INSTALL_UTILS=ON \
-DCMAKE_INSTALL_PREFIX="${{ env.llvm_install_dir }}" \
-DLLVM_TARGETS_TO_BUILD="AArch64;NVPTX;AMDGPU" \
Expand Down Expand Up @@ -225,6 +228,7 @@ jobs:
-DLLVM_TARGETS_TO_BUILD="AArch64;NVPTX;AMDGPU"
-DLLVM_USE_HOST_TOOLS=ON
-DLLVM_ENABLE_TERMINFO=OFF
-DLLVM_ENABLE_ABI_BREAKING_CHECKS=0
llvm-project/llvm
ninja -C llvm-project/build install
Expand Down
2 changes: 1 addition & 1 deletion cmake/llvm-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
99bb9a719cec9513e72ad275c1c0302b76b6c408
ce80c80dca45c7b4636a3e143973e2c6cbdb2884
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class CallOpConversion : public mlir::RewritePattern {
auto operands = callOp.getOperands();
auto result = callOp.getResult();

LLVM::LLVMFunctionType calleeType = callOp.getVarCalleeType().value();
LLVM::LLVMFunctionType calleeType = callOp.getCalleeType().value();
Type returnType = calleeType.getReturnType();

auto loc = callOp.getLoc();
Expand Down
4 changes: 3 additions & 1 deletion third_party/amd/python/triton_amd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ void init_triton_amd(py::module &&m) {
target->createMCAsmBackend(*sti, *mri, mcOptions));
mcStreamer.reset(target->createMCObjectStreamer(
triple, ctx, std::move(mab), mab->createObjectWriter(svos),
std::move(ce), *sti));
std::move(ce), *sti, mcOptions.MCRelaxAll,
mcOptions.MCIncrementalLinkerCompatible,
/*DWARFMustBeAtTheEnd=*/false));

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

0 comments on commit c61bfd2

Please sign in to comment.