Skip to content

Bump LLVM version to 5e5a22ca#2608

Merged
ThomasRaoux merged 13 commits intomainfrom
llvm-head
Nov 29, 2023
Merged

Bump LLVM version to 5e5a22ca#2608
ThomasRaoux merged 13 commits intomainfrom
llvm-head

Conversation

@karupayun
Copy link
Copy Markdown
Collaborator

@karupayun karupayun commented Nov 6, 2023

Include fixes for different LLVM updates, that includes:

  • Add elem type to SharedMemoryObject.
  • Change all pointers to opaque.
  • Fixes for llvm update 3cd2a0bc

@karupayun karupayun requested a review from ptillet as a code owner November 6, 2023 12:37
@karupayun karupayun changed the title Bump LLVM version to bcb685e1 Bump LLVM version to 4983432f Nov 16, 2023
@karupayun karupayun force-pushed the llvm-head branch 3 times, most recently from 1d596a0 to b68d6ba Compare November 17, 2023 10:28
@karupayun karupayun force-pushed the llvm-head branch 2 times, most recently from bd51fad to d198918 Compare November 23, 2023 14:13
@vwbaker vwbaker force-pushed the llvm-head branch 2 times, most recently from 6ce30b5 to e3fd11a Compare November 27, 2023 13:06
ashay and others added 13 commits November 29, 2023 17:14
This patch adds a text file that holds the LLVM commit hash to be used
with the Triton code.  Once the workflow files are added to the main
branch, any updates to this text file in the llvm-head branch will
trigger an LLVM build and the corresponding build artifacts will be
uploaded to Azure Blob storage.

Squashed commits:
Bump LLVM version.
Update LLVM version to llvm/llvm-project@0954dc3
update hash to 76ce4736721a
update llvm hash: b1115f8ccefb380824a9d997622cc84fc0d84a89
[ci] now set LLVM_BUILD_TOOLS=ON in llvm-build.yml
Include fixes for LLVM change 3cd2a0bc

llvm/llvm-project@3cd2a0b
It's a preparation for llvm/llvm-project@4983432.

SharedMemoryObject used to get type of the element type from typed pointer, but with the conversion to opaque pointers we need to have the element type stored explicitly. Asserts will removed once we fully migrate to opaque pointers. Right now they make sure that we're passing the correct element type.
Typed pointers are deprecated from MLIR LLVM dialect since llvm/llvm-project@4983432.
This should fix the error `write no space left on device` as suggested
by ptillet on slack.
Without this change, some of the prints were giving the error:
llvm.getelementptr' op type 'i8' cannot be indexed.

In one case I removed an index into a 1D array and in another I changed
the type to be a struct as that's the type it's indexing into.
Commit 70fca00 seemed to have gotten
functionally reverted by b92fac0.
Re-apply.
@vwbaker vwbaker changed the title Bump LLVM version to 4983432f Bump LLVM version to 5e5a22ca Nov 29, 2023
@vwbaker
Copy link
Copy Markdown
Collaborator

vwbaker commented Nov 29, 2023

Sorry this is such a big update - opaque pointers by llvm forced us to have a lot of changes. Everything should be working now though and it should be in a review-able state :) @ptillet

@ptillet
Copy link
Copy Markdown
Collaborator

ptillet commented Nov 29, 2023

Thank you! We will review

Copy link
Copy Markdown
Collaborator

@ThomasRaoux ThomasRaoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for moving us to opaque pointers!

@ThomasRaoux ThomasRaoux merged commit 34f165d into main Nov 29, 2023
@ThomasRaoux ThomasRaoux deleted the llvm-head branch November 29, 2023 17:42
zoranjovanovic-ns pushed a commit to ROCm/triton that referenced this pull request Jan 12, 2024
Include fixes for different LLVM updates, that includes:
- Add elem type to SharedMemoryObject.
- Change all pointers to opaque.
- Fixes for llvm update 3cd2a0bc

---------

Co-authored-by: Ashay Rane <ashay@users.noreply.github.com>
Co-authored-by: Goran Flegar <gflegar@google.com>
Co-authored-by: khasanovaa <khasanovaaliya19@gmail.com>
Co-authored-by: Tori Baker <vwbaker@google.com>
Co-authored-by: Aliia Khasanova <40315403+khasanovaa@users.noreply.github.com>
feihugis pushed a commit to feihugis/triton that referenced this pull request Feb 13, 2024
Include fixes for different LLVM updates, that includes:
- Add elem type to SharedMemoryObject.
- Change all pointers to opaque.
- Fixes for llvm update 3cd2a0bc

---------

Co-authored-by: Ashay Rane <ashay@users.noreply.github.com>
Co-authored-by: Goran Flegar <gflegar@google.com>
Co-authored-by: khasanovaa <khasanovaaliya19@gmail.com>
Co-authored-by: Tori Baker <vwbaker@google.com>
Co-authored-by: Aliia Khasanova <40315403+khasanovaa@users.noreply.github.com>
pingzhuu pushed a commit to siliconflow/triton that referenced this pull request Apr 2, 2024
Include fixes for different LLVM updates, that includes:
- Add elem type to SharedMemoryObject.
- Change all pointers to opaque.
- Fixes for llvm update 3cd2a0bc

---------

Co-authored-by: Ashay Rane <ashay@users.noreply.github.com>
Co-authored-by: Goran Flegar <gflegar@google.com>
Co-authored-by: khasanovaa <khasanovaaliya19@gmail.com>
Co-authored-by: Tori Baker <vwbaker@google.com>
Co-authored-by: Aliia Khasanova <40315403+khasanovaa@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants