blob: 965b3acd50cdc7dba8cfa854f5b8f3d0c6aea3cf [file] [log] [blame]
// 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)
>;