aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2023-07-27 14:49:17 +0530
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2023-07-27 14:49:17 +0530
commit7c760b224bc4581a7a962ae7ded098a260d19500 (patch)
treec34f443341bc1f10ff006954a7d8b002b67d3234 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent4cd7d8e30aca25c86ff40cd547f78b27d573a503 (diff)
downloadllvm-7c760b224bc4581a7a962ae7ded098a260d19500.zip
llvm-7c760b224bc4581a7a962ae7ded098a260d19500.tar.gz
llvm-7c760b224bc4581a7a962ae7ded098a260d19500.tar.bz2
Restore "[GlobalISel] GIntrinsic subclass to represent intrinsics in Generic Machine IR"
Some opcodes in generic MIR represent calls to intrinsics, where the intrinsic ID is the first non-def operand to the instruction. These are now represented as a subclass of GenericMachineInstr, and the method MachineInstr::getIntrinsicID() is now moved to this subclass GIntrinsic. Some target-defined instructions behave like GMIR intrinsics, and have an Intrinsic::ID operand. But they should not be recognized as generic intrinsics, and should not use GIntrinsic::getIntrinsicID(). Separated these out by introducing a new AMDGPU::getIntrinsicID(). Reviewed By: arsenm, Pierre-vh Differential Revision: https://reviews.llvm.org/D155556 This restores commit baa3386edb11a2f9bcadda8cf58d56f3707c39fa. Originally reverted in d0f7850b01cf17e50a4f4b00e3b84dded94df6b8.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions