From 5be9e6de8998b3b6704e908fdd57ae6355a599b4 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 25 Oct 2018 21:12:15 +0000 Subject: [PATCH] [CodeGen] Remove operands from FENTRY_CALL 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 llvm-svn: 345316 --- llvm/include/llvm/Target/Target.td | 4 ++-- llvm/test/CodeGen/X86/fentry-insertion.ll | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Target/Target.td b/llvm/include/llvm/Target/Target.td index c2c56b0..96641dd 100644 --- a/llvm/include/llvm/Target/Target.td +++ b/llvm/include/llvm/Target/Target.td @@ -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; diff --git a/llvm/test/CodeGen/X86/fentry-insertion.ll b/llvm/test/CodeGen/X86/fentry-insertion.ll index c5fb3b2..56e3274 100644 --- a/llvm/test/CodeGen/X86/fentry-insertion.ll +++ b/llvm/test/CodeGen/X86/fentry-insertion.ll @@ -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" -- 2.7.4