Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

rapidsna (Yeoul Na)
User

Projects

User does not belong to any projects.

User Details

User Since
Nov 1 2018, 5:06 PM (256 w, 1 d)

Recent Activity

Fri, Sep 15

rapidsna added a comment to D148381: [Clang] Implement the 'counted_by' attribute.
struct V {
  int Sizes[2];
  int FAM[] __counted_by(Sizes[0]); // Thoughts?
};

-fbounds-safety doesn't allow this. In our internal adoption experience, we haven't encountered such use cases yet. So, I think it's best to make the model restrictive to avoid surprises. If we were to support it, I think it should at least be limited to cases where the array subscript expression is known to be in bounds at compile time, to avoid an OOB access when the counted_by argument is evaluated.

Fri, Sep 15, 5:06 PM · Restricted Project, Restricted Project

Aug 23 2023

rapidsna added inline comments to D148381: [Clang] Implement the 'counted_by' attribute.
Aug 23 2023, 6:50 PM · Restricted Project, Restricted Project
rapidsna added inline comments to D148381: [Clang] Implement the 'counted_by' attribute.
Aug 23 2023, 6:38 PM · Restricted Project, Restricted Project
rapidsna added a comment to D148381: [Clang] Implement the 'counted_by' attribute.

Future additions will include supporting, FAMs and counts in sub-structures.

Aug 23 2023, 6:07 PM · Restricted Project, Restricted Project

Aug 15 2023

rapidsna accepted D157445: [CodeGen][UBSan] Add support for handling attributed functions in getUBSanFunctionTypeHash..

The changes look good to me. Ideally, we could add tests with multiple attributes and possibly with other sugar types.

Aug 15 2023, 2:21 PM · Restricted Project, Restricted Project

Aug 10 2023

rapidsna requested changes to D157445: [CodeGen][UBSan] Add support for handling attributed functions in getUBSanFunctionTypeHash..

We should add a test to exercise when Ty is wrapped by other sugar types. Could you try with typedef?

Aug 10 2023, 11:04 AM · Restricted Project, Restricted Project

Dec 27 2018

rapidsna abandoned D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.

So with 'i' it should actually work as a PC-relative mode. Gotcha, that totally makes sense. Thanks for confirming this @rnk.

Dec 27 2018, 6:23 PM

Dec 26 2018

rapidsna added a comment to D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.

@rnk thanks for looking into this!! yes, I need someone to commit it on my behalf.

Dec 26 2018, 5:23 PM

Dec 25 2018

rapidsna updated the diff for D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.

Thanks for looking into this @rnk. I am adding a unit test for this patch. Let me know if the test looks okay.

Dec 25 2018, 11:52 PM

Nov 30 2018

rapidsna added a comment to D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.

@rnk Thanks for looking into this.

Nov 30 2018, 9:24 PM

Nov 2 2018

rapidsna added a comment to D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.

Thanks for having look at this. I had also looked at that part, but the problem here has to do with local linkage functions which do not use GOTOFF relocations so classifyLocalReference() just returns MO_NO_FLAG. That's the reason why the if (isGlobalStubReference(Subtarget.classifyGlobalReference(GV))) does not catch this. However, these local linkage functions still need to be accessed in a RIP-relative way in the PIC mode and thus should not be used as immediate values.

Nov 2 2018, 5:37 PM

Nov 1 2018

rapidsna added a reviewer for D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates: craig.topper.
Nov 1 2018, 5:54 PM
rapidsna created D54016: [X86] don't allow X86_64 PIC mode addresses to be used as immediates.
Nov 1 2018, 5:34 PM