OSDN Git Service

[CodeGen] Remove operands from FENTRY_CALL
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 25 Oct 2018 21:12:15 +0000 (21:12 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 25 Oct 2018 21:12:15 +0000 (21:12 +0000)
FENTRY_CALL is actually not taking any input / output operands. The
machine verifier complains now because the target description says that:

* It needs 1 unknown output
* It needs 1 or more variable inputs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345316 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Target.td
test/CodeGen/X86/fentry-insertion.ll

index c2c56b0..96641dd 100644 (file)
@@ -1164,8 +1164,8 @@ def PATCHABLE_TYPED_EVENT_CALL : StandardPseudoInstruction {
   let hasSideEffects = 1;
 }
 def FENTRY_CALL : StandardPseudoInstruction {
-  let OutOperandList = (outs unknown:$dst);
-  let InOperandList = (ins variable_ops);
+  let OutOperandList = (outs);
+  let InOperandList = (ins);
   let AsmString = "# FEntry call";
   let usesCustomInserter = 1;
   let mayLoad = 1;
index c5fb3b2..56e3274 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc %s -o - | FileCheck %s
+; RUN: llc %s -o - -verify-machineinstrs | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"