Lines Matching refs:Function
76 using ProfileCount = Function::ProfileCount;
88 void Function::convertToNewDbgValues() { in convertToNewDbgValues()
95 void Function::convertFromNewDbgValues() { in convertFromNewDbgValues()
102 void Function::setIsNewDbgInfoFormat(bool NewFlag) { in setIsNewDbgInfoFormat()
108 void Function::setNewDbgInfoFormatFlag(bool NewFlag) { in setNewDbgInfoFormatFlag()
119 Argument::Argument(Type *Ty, const Twine &Name, Function *Par, unsigned ArgNo) in Argument()
124 void Argument::setParent(Function *parent) { in setParent()
358 LLVMContext &Function::getContext() const { in getContext()
362 const DataLayout &Function::getDataLayout() const { in getDataLayout()
366 unsigned Function::getInstructionCount() const { in getInstructionCount()
374 Function *Function::Create(FunctionType *Ty, LinkageTypes Linkage, in Create()
379 Function *Function::createWithDefaultAttr(FunctionType *Ty, in createWithDefaultAttr()
383 auto *F = new Function(Ty, Linkage, AddrSpace, N, M); in createWithDefaultAttr()
443 void Function::removeFromParent() { in removeFromParent()
447 void Function::eraseFromParent() { in eraseFromParent()
451 void Function::splice(Function::iterator ToIt, Function *FromF, in splice()
452 Function::iterator FromBeginIt, in splice()
453 Function::iterator FromEndIt) { in splice()
463 Function::iterator Function::erase(Function::iterator FromIt, in erase()
464 Function::iterator ToIt) { in erase()
480 Function::Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace, in Function() function in Function
483 OperandTraits<Function>::op_begin(this), 0, Linkage, name, in Function()
511 Function::~Function() { in ~Function()
522 void Function::BuildLazyArguments() const { in BuildLazyArguments()
530 new (Arguments + i) Argument(ArgTy, "", const_cast<Function *>(this), i); in BuildLazyArguments()
537 const_cast<Function*>(this)->setValueSubclassData(SDC); in BuildLazyArguments()
545 bool Function::isConstrainedFPIntrinsic() const { in isConstrainedFPIntrinsic()
549 void Function::clearArguments() { in clearArguments()
558 void Function::stealArgumentListFrom(Function &Src) { in stealArgumentListFrom()
595 void Function::deleteBodyImpl(bool ShouldDrop) { in deleteBodyImpl()
625 void Function::addAttributeAtIndex(unsigned i, Attribute Attr) { in addAttributeAtIndex()
629 void Function::addFnAttr(Attribute::AttrKind Kind) { in addFnAttr()
633 void Function::addFnAttr(StringRef Kind, StringRef Val) { in addFnAttr()
637 void Function::addFnAttr(Attribute Attr) { in addFnAttr()
641 void Function::addFnAttrs(const AttrBuilder &Attrs) { in addFnAttrs()
645 void Function::addRetAttr(Attribute::AttrKind Kind) { in addRetAttr()
649 void Function::addRetAttr(Attribute Attr) { in addRetAttr()
653 void Function::addRetAttrs(const AttrBuilder &Attrs) { in addRetAttrs()
657 void Function::addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in addParamAttr()
661 void Function::addParamAttr(unsigned ArgNo, Attribute Attr) { in addParamAttr()
665 void Function::addParamAttrs(unsigned ArgNo, const AttrBuilder &Attrs) { in addParamAttrs()
669 void Function::removeAttributeAtIndex(unsigned i, Attribute::AttrKind Kind) { in removeAttributeAtIndex()
673 void Function::removeAttributeAtIndex(unsigned i, StringRef Kind) { in removeAttributeAtIndex()
677 void Function::removeFnAttr(Attribute::AttrKind Kind) { in removeFnAttr()
681 void Function::removeFnAttr(StringRef Kind) { in removeFnAttr()
685 void Function::removeFnAttrs(const AttributeMask &AM) { in removeFnAttrs()
689 void Function::removeRetAttr(Attribute::AttrKind Kind) { in removeRetAttr()
693 void Function::removeRetAttr(StringRef Kind) { in removeRetAttr()
697 void Function::removeRetAttrs(const AttributeMask &Attrs) { in removeRetAttrs()
701 void Function::removeParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in removeParamAttr()
705 void Function::removeParamAttr(unsigned ArgNo, StringRef Kind) { in removeParamAttr()
709 void Function::removeParamAttrs(unsigned ArgNo, const AttributeMask &Attrs) { in removeParamAttrs()
714 void Function::addDereferenceableParamAttr(unsigned ArgNo, uint64_t Bytes) { in addDereferenceableParamAttr()
719 bool Function::hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute()
723 bool Function::hasFnAttribute(StringRef Kind) const { in hasFnAttribute()
727 bool Function::hasRetAttribute(Attribute::AttrKind Kind) const { in hasRetAttribute()
731 bool Function::hasParamAttribute(unsigned ArgNo, in hasParamAttribute()
736 Attribute Function::getAttributeAtIndex(unsigned i, in getAttributeAtIndex()
741 Attribute Function::getAttributeAtIndex(unsigned i, StringRef Kind) const { in getAttributeAtIndex()
745 Attribute Function::getFnAttribute(Attribute::AttrKind Kind) const { in getFnAttribute()
749 Attribute Function::getFnAttribute(StringRef Kind) const { in getFnAttribute()
753 Attribute Function::getRetAttribute(Attribute::AttrKind Kind) const { in getRetAttribute()
757 uint64_t Function::getFnAttributeAsParsedInteger(StringRef Name, in getFnAttributeAsParsedInteger()
771 Attribute Function::getParamAttribute(unsigned ArgNo, in getParamAttribute()
776 void Function::addDereferenceableOrNullParamAttr(unsigned ArgNo, in addDereferenceableOrNullParamAttr()
782 void Function::addRangeRetAttr(const ConstantRange &CR) { in addRangeRetAttr()
786 DenormalMode Function::getDenormalMode(const fltSemantics &FPType) const { in getDenormalMode()
798 DenormalMode Function::getDenormalModeRaw() const { in getDenormalModeRaw()
804 DenormalMode Function::getDenormalModeF32Raw() const { in getDenormalModeF32Raw()
814 const std::string &Function::getGC() const { in getGC()
819 void Function::setGC(std::string Str) { in setGC()
824 void Function::clearGC() { in clearGC()
831 bool Function::hasStackProtectorFnAttr() const { in hasStackProtectorFnAttr()
839 void Function::copyAttributesFrom(const Function *Src) { in copyAttributesFrom()
855 MemoryEffects Function::getMemoryEffects() const { in getMemoryEffects()
858 void Function::setMemoryEffects(MemoryEffects ME) { in setMemoryEffects()
863 bool Function::doesNotAccessMemory() const { in doesNotAccessMemory()
866 void Function::setDoesNotAccessMemory() { in setDoesNotAccessMemory()
871 bool Function::onlyReadsMemory() const { in onlyReadsMemory()
874 void Function::setOnlyReadsMemory() { in setOnlyReadsMemory()
879 bool Function::onlyWritesMemory() const { in onlyWritesMemory()
882 void Function::setOnlyWritesMemory() { in setOnlyWritesMemory()
888 bool Function::onlyAccessesArgMemory() const { in onlyAccessesArgMemory()
891 void Function::setOnlyAccessesArgMemory() { in setOnlyAccessesArgMemory()
897 bool Function::onlyAccessesInaccessibleMemory() const { in onlyAccessesInaccessibleMemory()
900 void Function::setOnlyAccessesInaccessibleMemory() { in setOnlyAccessesInaccessibleMemory()
906 bool Function::onlyAccessesInaccessibleMemOrArgMem() const { in onlyAccessesInaccessibleMemOrArgMem()
909 void Function::setOnlyAccessesInaccessibleMemOrArgMem() { in setOnlyAccessesInaccessibleMemOrArgMem()
927 bool Function::isTargetIntrinsic(Intrinsic::ID IID) { in isTargetIntrinsic()
931 bool Function::isTargetIntrinsic() const { in isTargetIntrinsic()
956 Intrinsic::ID Function::lookupIntrinsicID(StringRef Name) { in lookupIntrinsicID()
976 void Function::updateAfterNameChange() { in updateAfterNameChange()
1513 Function *Intrinsic::getDeclaration(Module *M, ID id, ArrayRef<Type*> Tys) { in getDeclaration()
1517 return cast<Function>( in getDeclaration()
1827 bool Intrinsic::getIntrinsicSignature(Function *F, in getIntrinsicSignature()
1833 std::optional<Function *> Intrinsic::remangleIntrinsicFunction(Function *F) { in remangleIntrinsicFunction()
1845 Function *NewDecl = [&] { in remangleIntrinsicFunction()
1847 if (auto *ExistingF = dyn_cast<Function>(ExistingGV)) in remangleIntrinsicFunction()
1870 bool Function::hasAddressTaken(const User **PutOffender, in hasAddressTaken()
1938 bool Function::isDefTriviallyDead() const { in isDefTriviallyDead()
1954 bool Function::callsFunctionThatReturnsTwice() const { in callsFunctionThatReturnsTwice()
1963 Constant *Function::getPersonalityFn() const { in getPersonalityFn()
1968 void Function::setPersonalityFn(Constant *Fn) { in setPersonalityFn()
1973 Constant *Function::getPrefixData() const { in getPrefixData()
1978 void Function::setPrefixData(Constant *PrefixData) { in setPrefixData()
1983 Constant *Function::getPrologueData() const { in getPrologueData()
1988 void Function::setPrologueData(Constant *PrologueData) { in setPrologueData()
1993 void Function::allocHungoffUselist() { in allocHungoffUselist()
2009 void Function::setHungoffOperand(Constant *C) { in setHungoffOperand()
2018 void Function::setValueSubclassDataBit(unsigned Bit, bool On) { in setValueSubclassDataBit()
2026 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
2043 void Function::setEntryCount(uint64_t Count, Function::ProfileCountType Type, in setEntryCount()
2048 std::optional<ProfileCount> Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
2070 DenseSet<GlobalValue::GUID> Function::getImportGUIDs() const { in getImportGUIDs()
2082 void Function::setSectionPrefix(StringRef Prefix) { in setSectionPrefix()
2088 std::optional<StringRef> Function::getSectionPrefix() const { in getSectionPrefix()
2098 bool Function::nullPointerIsDefined() const { in nullPointerIsDefined()
2102 bool llvm::NullPointerIsDefined(const Function *F, unsigned AS) { in NullPointerIsDefined()