Lines Matching +full:func +full:-
1 //===--- FunctionPointer.h - Types for the constexpr VM ---------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
22 const Function *Func;
26 FunctionPointer(const Function *Func) : Func(Func), Valid(true) { in FunctionPointer() argument
27 assert(Func); in FunctionPointer()
31 : Func(reinterpret_cast<const Function *>(IntVal)), Valid(false) {} in Func() function
33 const Function *getFunction() const { return Func; } in getFunction()
34 bool isZero() const { return !Func; } in isZero()
37 if (!Func || !Valid) in isWeak()
40 return Func->getDecl()->isWeak(); in isWeak()
44 if (!Func) in toAPValue()
53 return APValue(Func->getDecl(), CharUnits::Zero(), {}, in toAPValue()
59 if (Func && Valid) in print()
60 OS << Func->getName(); in print()
61 else if (Func) in print()
62 OS << reinterpret_cast<uintptr_t>(Func); in print()
69 if (!Func) in toDiagnosticString()
72 return toAPValue(Ctx).getAsString(Ctx, Func->getDecl()->getType()); in toDiagnosticString()
76 return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(Func)); in getIntegerRepresentation()
80 if (Func == RHS.Func) in compare()