1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
// RUN: not llvm-tblgen -gen-runtime-libcalls -I %p/../../include %s 2>&1 | FileCheck %s
include "llvm/IR/RuntimeLibcallsImpl.td"
def SOME_FUNC : RuntimeLibcall;
def func_a : RuntimeLibcallImpl<SOME_FUNC>;
def isTargetArchA : RuntimeLibcallPredicate<[{isTargetArchA()}]>;
// CHECK: [[@LINE+4]]:5: error: entry for SystemLibrary is not a RuntimeLibcallImpl
// CHECK-NEXT: def TheSystemLibraryA : SystemRuntimeLibrary<isTargetArchA,
// CHECK: note: invalid entry `SOME_FUNC`
// CHECK-NEXT: def SOME_FUNC : RuntimeLibcall;
def TheSystemLibraryA : SystemRuntimeLibrary<isTargetArchA,
(add SOME_FUNC)
>;
|