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