mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
f305e07c2d
Differential Revision: https://reviews.llvm.org/D83588
21 lines
650 B
TableGen
21 lines
650 B
TableGen
// RUN: not llvm-tblgen --gen-subtarget -I %p/../../include -I %p/Common %s -o - 2>&1 | FileCheck %s
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
def FakeTarget : Target { }
|
|
|
|
def FakeModel : SchedMachineModel { }
|
|
|
|
def WriteA : SchedWrite;
|
|
def WriteB : SchedWrite;
|
|
|
|
let SchedModel = NoSchedModel in {
|
|
def : InstRW<[WriteA], (instrs COPY)>;
|
|
|
|
def : InstRW<[WriteB], (instrs COPY)>;
|
|
// CHECK: [[@LINE-1]]:3: error: Overlapping InstRW definition for "COPY" also matches previous "(instrs COPY)".
|
|
// CHECK-NEXT: def : InstRW<[WriteB], (instrs COPY)>;
|
|
|
|
// CHECK: [[@LINE-6]]:3: note: Previous match was here.
|
|
// CHECK-NEXT: def : InstRW<[WriteA], (instrs COPY)>;
|
|
} |