Skip to content

Conversation

@el-ev
Copy link
Member

@el-ev el-ev commented Mar 20, 2025

Part of #258 .

  1. Added AddressPointAttr
  2. Change all occurrences of VTableAddrPointOp into using the attribute
  3. Update tests
@github-actions
Copy link

github-actions bot commented Mar 20, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

LGTM after minor nits (also please rebase to eliminate the unrelated errors)

@bcardosolopes
Copy link
Member

clang-format issues need to be addressed too!

@el-ev
Copy link
Member Author

el-ev commented Mar 24, 2025

@bcardosolopes It seems GlobalViewAttr isn't exactly using two indices. Should we create a new attribute for it?

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

Same comment from your other PR, you likely need some rebasing

@bcardosolopes
Copy link
Member

@bcardosolopes It seems GlobalViewAttr isn't exactly using two indices. Should we create a new attribute for it?

global view is able to more/less work like a GEP, so they are more generic than address points abstraction

Lancern and others added 13 commits March 25, 2025 07:48
…was set explicitly (llvm#1482) This is backported from a change made in llvm/llvm-project#131181 --------- Co-authored-by: Morris Hafner <mhafner@nvidia.com>
…R attribute. (llvm#1467) Started decorating CUDA shadow variables with the shadow_name CIR attribute which will be used for registering the globals.
… target was set explicitly" (llvm#1509) Reverts llvm#1482 @mmha this is crashing on macos on asserts build: ``` FAIL: Clang :: CIR/Tools/cir-translate/warn-default-triple.cir (472 of 552) ******************** TEST 'Clang :: CIR/Tools/cir-translate/warn-default-triple.cir' FAILED ******************** Exit Code: 134 Command Output (stdout): -- Assertion failed: (!DataLayoutString.empty() && "Uninitialized DataLayout!"), function getDataLayoutString, file TargetInfo.h, line 1282. ``` Perhaps besides picking a default you maybe need to do some missing datalayout init?
@el-ev el-ev force-pushed the attr_address_point branch from c528807 to 4c2d255 Compare March 24, 2025 23:48
@bcardosolopes bcardosolopes merged commit 0fd1437 into llvm:main Mar 25, 2025
9 checks passed
@el-ev el-ev deleted the attr_address_point branch March 25, 2025 00:59
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
Part of llvm#258 . 1. Added `AddressPointAttr` 2. Change all occurrences of `VTableAddrPointOp` into using the attribute 3. Update tests --------- Co-authored-by: Sirui Mu <msrlancern@gmail.com> Co-authored-by: Morris Hafner <mmha@users.noreply.github.com> Co-authored-by: Morris Hafner <mhafner@nvidia.com> Co-authored-by: Sharp-Edged <48861530+Sharp-Edged@users.noreply.github.com> Co-authored-by: Amr Hesham <amr96@programmer.net> Co-authored-by: Bruno Cardoso Lopes <bruno.cardoso@gmail.com> Co-authored-by: Letu Ren <fantasquex@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

7 participants