Mercurial > hg > CbC > CbC_llvm
diff llvm/test/TableGen/SchedModelError.td @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/llvm/test/TableGen/SchedModelError.td Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,18 @@ +// RUN: not llvm-tblgen -gen-subtarget -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s + +include "llvm/Target/Target.td" + +def TestTarget : Target; + +// CHECK: [[FILE]]:[[@LINE+1]]:1: error: No schedule information for instruction 'TestInst' in SchedMachineModel 'TestSchedModel' +def TestInst : Instruction { + let OutOperandList = (outs); + let InOperandList = (ins); + bits<8> Inst = 0b00101010; +} + +def TestSchedModel : SchedMachineModel { + let CompleteModel = 1; +} + +def TestProcessor : ProcessorModel<"testprocessor", TestSchedModel, []>;