diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-02-10 14:56:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 14:56:30 -0800 |
commit | 0f674cce82da851961b3e59b1bd663919e17fb65 (patch) | |
tree | 07ee43276b0b94dcb753e2629ac911dc05cce548 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | d90399603c1db201be830a895f3b1324c4b30d07 (diff) | |
download | llvm-0f674cce82da851961b3e59b1bd663919e17fb65.zip llvm-0f674cce82da851961b3e59b1bd663919e17fb65.tar.gz llvm-0f674cce82da851961b3e59b1bd663919e17fb65.tar.bz2 |
[NFC][LLVM] Remove unused `TargetIntrinsicInfo` class (#126003)
Remove `TargetIntrinsicInfo` class as its practically unused (its pure
virtual with no subclasses) and its references in the code.
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index b44e1e1..a4e513d 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -66,7 +66,6 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SMLoc.h" #include "llvm/Support/SourceMgr.h" -#include "llvm/Target/TargetIntrinsicInfo.h" #include "llvm/Target/TargetMachine.h" #include <cassert> #include <cctype> @@ -2669,13 +2668,8 @@ bool MIParser::parseIntrinsicOperand(MachineOperand &Dest) { if (expectAndConsume(MIToken::rparen)) return error("expected ')' to terminate intrinsic name"); - // Find out what intrinsic we're dealing with, first try the global namespace - // and then the target's private intrinsics if that fails. - const TargetIntrinsicInfo *TII = MF.getTarget().getIntrinsicInfo(); + // Find out what intrinsic we're dealing with. Intrinsic::ID ID = Intrinsic::lookupIntrinsicID(Name); - if (ID == Intrinsic::not_intrinsic && TII) - ID = static_cast<Intrinsic::ID>(TII->lookupName(Name)); - if (ID == Intrinsic::not_intrinsic) return error("unknown intrinsic name"); Dest = MachineOperand::CreateIntrinsicID(ID); |