Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR] Add AddressPointAttr #1508

Merged
merged 14 commits into from
Mar 25, 2025
Merged

[CIR] Add AddressPointAttr #1508

merged 14 commits into from
Mar 25, 2025

Conversation

el-ev
Copy link
Contributor

@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

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
Contributor 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
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