[PATCH] D54147: [llvm-exegesis] Ignore X86 pseudo instructions.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 04:53:21 PST 2018
courbet created this revision.
courbet added a reviewer: gchatelet.
Herald added a subscriber: tschuett.
They do not lower to actual MCInsts and have no scheduling info.
Repository:
rL LLVM
https://reviews.llvm.org/D54147
Files:
tools/llvm-exegesis/lib/X86/Target.cpp
Index: tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- tools/llvm-exegesis/lib/X86/Target.cpp
+++ tools/llvm-exegesis/lib/X86/Target.cpp
@@ -75,6 +75,10 @@
static llvm::Error IsInvalidOpcode(const Instruction &Instr) {
const auto OpcodeName = Instr.Name;
+ if ((Instr.Description->TSFlags & X86II::FormMask) == X86II::Pseudo) {
+ return llvm::make_error<BenchmarkFailure>(
+ "unsupported opcode: pseudo instruction");
+ }
if (OpcodeName.startswith("POPF") || OpcodeName.startswith("PUSHF") ||
OpcodeName.startswith("ADJCALLSTACK"))
return llvm::make_error<BenchmarkFailure>(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54147.172744.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/4a97672b/attachment.bin>
More information about the llvm-commits
mailing list