[PATCH] D54147: [llvm-exegesis] Ignore X86 pseudo instructions.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 06:14:37 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL346227: [llvm-exegesis] Ignore X86 pseudo instructions. (authored by courbet, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D54147
Files:
llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
Index: llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -75,6 +75,9 @@
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.172750.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/18c6c3d2/attachment.bin>
More information about the llvm-commits
mailing list