Skip to content

Commit

Permalink
[BACKEND] Update LLVM version to llvm/llvm-project@1115dee (#4537)
Browse files Browse the repository at this point in the history
1. Updated llvm version up to 1115dee248e68a155001ac3712a189299d104863
2. Included fixes that are required to the codebase to correspond the
new version
3. Fixed naming and version of gcc package

---------

Co-authored-by: Tori Baker <vwbaker@google.com>
Co-authored-by: Goran Flegar <gflegar@google.com>
Co-authored-by: Florian Reichl <63750742+reichlfl@users.noreply.github.com>
Co-authored-by: Pablo Zimmermann <karupayun@google.com>
Co-authored-by: Christian Sigg <chsigg@users.noreply.github.com>
  • Loading branch information
6 people authored Aug 30, 2024
1 parent 5e10f10 commit 46550ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/llvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ jobs:
cp -r /usr/aarch64-linux-gnu/lib ./arm-sysroot
cp -r /usr/aarch64-linux-gnu/include ./arm-sysroot
LINKER=$(pwd)/arm-sysroot/lib/ld-linux-aarch64.so.1
wget http://ftp.de.debian.org/debian/pool/main/g/gcc-defaults/gcc-aarch64-linux-gnu_13.2.0-7_amd64.deb
dpkg-deb -x gcc-aarch64-linux-gnu_13.2.0-7_amd64.deb ./arm-sysroot
wget http://ftp.de.debian.org/debian/pool/main/g/gcc-defaults/gcc-aarch64-linux-gnu_14.1.0-2_amd64.deb
dpkg-deb -x gcc-aarch64-linux-gnu_14.1.0-2_amd64.deb ./arm-sysroot
export LD_LIBRARY_PATH=$(pwd)/arm-sysroot/lib:$LD_LIBRARY_PATH
sudo ln -s $LINKER /lib/ld-linux-aarch64.so.1
SYSROOT="$(pwd)/arm-sysroot"
Expand Down
2 changes: 1 addition & 1 deletion cmake/llvm-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ce80c80dca45c7b4636a3e143973e2c6cbdb2884
1115dee248e68a155001ac3712a189299d104863
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.getCalleeType().value();
LLVM::LLVMFunctionType calleeType = callOp.getCalleeFunctionType();
Type returnType = calleeType.getReturnType();

auto loc = callOp.getLoc();
Expand Down
6 changes: 2 additions & 4 deletions third_party/amd/python/triton_amd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,9 @@ void init_triton_amd(py::module &&m) {
target->createMCCodeEmitter(*mcii, ctx));
std::unique_ptr<llvm::MCAsmBackend> mab(
target->createMCAsmBackend(*sti, *mri, mcOptions));
std::unique_ptr<llvm::MCObjectWriter> ow(mab->createObjectWriter(svos));
mcStreamer.reset(target->createMCObjectStreamer(
triple, ctx, std::move(mab), mab->createObjectWriter(svos),
std::move(ce), *sti, mcOptions.MCRelaxAll,
mcOptions.MCIncrementalLinkerCompatible,
/*DWARFMustBeAtTheEnd=*/false));
triple, ctx, std::move(mab), std::move(ow), std::move(ce), *sti));

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

0 comments on commit 46550ab

Please sign in to comment.