This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add xgetbv/xsetbv intrinsics
ClosedPublic

Authored by guyblank on Jul 3 2016, 6:26 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

guyblank updated this revision to Diff 62626.Jul 3 2016, 6:26 AM
guyblank retitled this revision from to [X86] Add xgetbv/xsetbv intrinsics.
guyblank updated this object.
delena added inline comments.Jul 3 2016, 6:43 AM
lib/Target/X86/X86InstrSystem.td
481 ↗(On Diff #62626)

can the intrinsic be lowered directly in the .td file without DAG?

delena edited edge metadata.Jul 3 2016, 6:47 AM

You also can use pseudo instruction. DAG seems overkill for this intrinsic.

guyblank updated this revision to Diff 63464.Jul 11 2016, 12:50 AM
guyblank edited edge metadata.

Removed the SDNode, lowering straight to machine node.

delena added inline comments.Jul 12 2016, 4:25 AM
lib/Target/X86/X86ISelLowering.cpp
18212 ↗(On Diff #63464)

The code should be aligned according to the LLVM style. Please copy-paste getReadPerformanceCounter() with original alignment.

guyblank updated this revision to Diff 63781.Jul 13 2016, 12:25 AM

Fix formatting

delena accepted this revision.Jul 13 2016, 6:10 AM
delena edited edge metadata.
This revision is now accepted and ready to land.Jul 13 2016, 6:10 AM
This revision was automatically updated to reflect the committed changes.