19 lines · plain
1// RUN: not llvm-tblgen -gen-runtime-libcalls -I %p/../../include %s 2>&1 | FileCheck -check-prefix=ERR %s2 3include "llvm/IR/RuntimeLibcallsImpl.td"4 5def FUNC0 : RuntimeLibcall;6def FUNC1 : RuntimeLibcall;7 8def isFoo : RuntimeLibcallPredicate<[{isFoo()}]>;9def isBar : RuntimeLibcallPredicate<[{isBar()}]>;10def isTargetArch : RuntimeLibcallPredicate<[{isTargetArch()}]>;11 12def func0 : RuntimeLibcallImpl<FUNC0>;13def func1 : RuntimeLibcallImpl<FUNC1>;14 15// ERR: :[[@LINE+2]]:8: error: combining nested libcall set predicates currently unhandled16def TheSystemLibrary : SystemRuntimeLibrary<isTargetArch,17 (add LibcallImpls<(add func0, LibcallImpls<(add func1), isBar>), isFoo>)18>;19