[PATCH] D54147: [llvm-exegesis] Ignore X86 pseudo instructions.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 05:55:00 PST 2018
courbet updated this revision to Diff 172748.
courbet marked an inline comment as done.
courbet added a comment.
address comment
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,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.172748.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/64279f08/attachment.bin>
More information about the llvm-commits
mailing list