Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/TableGen/CodeGenSchedule-duplicate-instrw.td @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
1 // RUN: not llvm-tblgen --gen-subtarget -I %p/../../include -I %p/Common %s -o - 2>&1 | FileCheck %s | |
2 | |
3 include "llvm/Target/Target.td" | |
4 | |
5 def FakeTarget : Target { } | |
6 | |
7 def FakeModel : SchedMachineModel { } | |
8 | |
9 def WriteA : SchedWrite; | |
10 def WriteB : SchedWrite; | |
11 | |
12 let SchedModel = NoSchedModel in { | |
13 def : InstRW<[WriteA], (instrs COPY)>; | |
14 | |
15 def : InstRW<[WriteB], (instrs COPY)>; | |
16 // CHECK: [[@LINE-1]]:3: error: Overlapping InstRW definition for "COPY" also matches previous "(instrs COPY)". | |
17 // CHECK-NEXT: def : InstRW<[WriteB], (instrs COPY)>; | |
18 | |
19 // CHECK: [[@LINE-6]]:3: note: Previous match was here. | |
20 // CHECK-NEXT: def : InstRW<[WriteA], (instrs COPY)>; | |
21 } |