This is an archive of the discontinued LLVM Phabricator instance.

[PPC] Modify HTM and crypto intrinsics to inherit from GCCBuiltin
ClosedPublic

Authored by kbarton on Mar 27 2015, 1:55 PM.

Details

Summary

There was a change to the way some of the HTM and crypto builtins are being handled in Clang. Previously, some of the builtins were dealt with in the CodeGenFunction::EmitPPCBuiltinExpr method (in order to do range checking on constant arguments). These check will been moved to Sema http://reviews.llvm.org/D8672), which means those builtins will not be handled in the EmitPPCBuiltinExpr method anymore. As a result, the definition of the intrinsics in IntrinsicsPowerPC.td needs to be modified to inherit from the GCCBuiltin definition.

Diff Detail

Event Timeline

kbarton updated this revision to Diff 22821.Mar 27 2015, 1:55 PM
kbarton retitled this revision from to [PPC] Modify HTM and crypto intrinsics to inherit from GCCBuiltin.
kbarton updated this object.
kbarton edited the test plan for this revision. (Show Details)
kbarton added reviewers: hfinkel, wschmidt, nemanjai, seurer.
kbarton added a subscriber: Unknown Object (MLST).
wschmidt accepted this revision.Mar 27 2015, 3:00 PM
wschmidt edited edge metadata.

LGTM, with one nit.

include/llvm/IR/IntrinsicsPowerPC.td
572

The weird spacing and lack of indent here makes me think you've got a whitespace issue.

This revision is now accepted and ready to land.Mar 27 2015, 3:00 PM
nemanjai added inline comments.Mar 28 2015, 3:12 AM
include/llvm/IR/IntrinsicsPowerPC.td
566

This comment no longer applies, please remove it.

kbarton closed this revision.Mar 30 2015, 11:49 AM

Committed revision 233581.