This is an archive of the discontinued LLVM Phabricator instance.

[DFSAN][MIPS][LLVM] Defining ShadowPtrMask variable for MIPS64
ClosedPublic

Authored by sdkie on Dec 1 2014, 3:39 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

sdkie updated this revision to Diff 16757.Dec 1 2014, 3:39 AM
sdkie retitled this revision from to [DFSAN][MIPS][LLVM] Defining ShadowPtrMask variable for MIPS64.
sdkie updated this object.
sdkie edited the test plan for this revision. (Show Details)
sdkie added reviewers: pcc, kcc.
sdkie set the repository for this revision to rL LLVM.
sdkie added subscribers: Unknown Object (MLST), dsanders, mohit.bhakkad and 2 others.
pcc added inline comments.Dec 2 2014, 11:35 AM
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
438 ↗(On Diff #16757)

This should do something sensible if the target is unsupported, maybe call report_fatal_error?

sdkie added inline comments.Dec 3 2014, 1:05 AM
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
438 ↗(On Diff #16757)

@pcc: clang does that for us[1], should I still add the call to report_fatal_error?

[1] http://reviews.llvm.org/D6147

pcc added inline comments.Dec 3 2014, 11:26 AM
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
438 ↗(On Diff #16757)

Yes, the pass could be used from opt or other frontends and it shouldn't crash in those cases.

sdkie updated this revision to Diff 16918.Dec 4 2014, 3:49 AM

added report_fatal_error for unsupported targets.

pcc accepted this revision.Dec 4 2014, 2:10 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 4 2014, 2:10 PM
pcc closed this revision.Dec 5 2014, 1:23 PM
pcc updated this revision to Diff 16994.

Closed by commit rL223516 (authored by @pcc).

pcc added a comment.Dec 5 2014, 2:55 PM

FYI, I needed to fix a test failure in r223536. Please make sure to test your changes before sending them for review.

sdkie added a comment.Dec 7 2014, 10:54 PM
In D6459#16, @pcc wrote:

FYI, I needed to fix a test failure in r223536. Please make sure to test your changes before sending them for review.

Sorry, I just ran the compiler-rt tests suite.
Next time I will also run the clang/llvm tests also.