diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-07 18:43:29 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-07 18:43:29 +0000 |
commit | 27269054d2df505f576eb3992d3f815c455ac7bb (patch) | |
tree | 2b82acf925e711a67db0adc2b3ad486dd34e77d8 /llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | |
parent | cdbeaf548f1ff1ac49dfd26de25a67c8ac081996 (diff) | |
download | bcm5719-llvm-27269054d2df505f576eb3992d3f815c455ac7bb.tar.gz bcm5719-llvm-27269054d2df505f576eb3992d3f815c455ac7bb.zip |
GlobalISel: Add target pre-isel instructions
Allows targets to introduce regbankselectable
pseudo-instructions. Currently the closet feature to this is an
intrinsic. However this requires creating a public intrinsic
declaration. This litters the public intrinsic namespace with
operations we don't necessarily want to expose to IR producers, and
would rather leave as private to the backend.
Use a new instruction bit. A previous attempt tried to keep using enum
value ranges, but it turned into a mess.
llvm-svn: 373937
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp index 4148d1d0b55..056e1049461 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp @@ -1650,7 +1650,7 @@ bool AMDGPUInstructionSelector::select(MachineInstr &I) { if (I.isPHI()) return selectPHI(I); - if (!isPreISelGenericOpcode(I.getOpcode())) { + if (!I.isPreISelOpcode()) { if (I.isCopy()) return selectCOPY(I); return true; |