blob: 63588ef89daa504d497cd01f3d22a182896a64b0 [file] [edit]
// RUN: not llvm-tblgen -gen-runtime-libcalls -I %p/../../include %s 2>&1 | FileCheck -check-prefix=ERR %s
include "llvm/IR/RuntimeLibcallsImpl.td"
def FUNC0 : RuntimeLibcall;
def FUNC1 : RuntimeLibcall;
def IsFoo : LibcallPredicate<[{isFoo()}]>;
def IsBar : LibcallPredicate<[{isBar()}]>;
def IsTargetArch : LibcallPredicate<[{isTargetArch()}]>;
def isFoo : RuntimeLibcallAvailability<(all_of IsFoo)>;
def isBar : RuntimeLibcallAvailability<(all_of IsBar)>;
def isTargetArch : RuntimeLibcallAvailability<(all_of IsTargetArch)>;
def func0 : RuntimeLibcallImpl<FUNC0>;
def func1 : RuntimeLibcallImpl<FUNC1>;
// ERR: :[[@LINE+2]]:8: error: combining nested libcall set predicates currently unhandled
def TheSystemLibrary : SystemRuntimeLibrary<isTargetArch,
(add LibcallImpls<(add func0, LibcallImpls<(add func1), isBar>), isFoo>)
>;