
Check for duplicate intrinsic names in the intrinsic emitter backend and issue a fatal error if we find one.
10 lines
438 B
TableGen
10 lines
438 B
TableGen
// RUN: not llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS 2>&1 | FileCheck %s -DFILE=%s
|
|
|
|
include "llvm/IR/Intrinsics.td"
|
|
|
|
def int_foo0 : Intrinsic<[llvm_anyint_ty], [], [], "llvm.foo">;
|
|
|
|
// CHECK: [[FILE]]:[[@LINE+2]]:5: error: Intrinsic `llvm.foo` is already defined
|
|
// CHECK: [[FILE]]:[[@LINE-3]]:5: note: Previous definition here
|
|
def int_foo1 : Intrinsic<[llvm_anyint_ty], [], [], "llvm.foo">;
|