Lines Matching refs:Function
74 using ProfileCount = Function::ProfileCount;
84 void Function::convertToNewDbgValues() { in convertToNewDbgValues()
91 void Function::convertFromNewDbgValues() { in convertFromNewDbgValues()
98 void Function::setIsNewDbgInfoFormat(bool NewFlag) { in setIsNewDbgInfoFormat()
109 Argument::Argument(Type *Ty, const Twine &Name, Function *Par, unsigned ArgNo) in Argument()
114 void Argument::setParent(Function *parent) { in setParent()
341 LLVMContext &Function::getContext() const { in getContext()
345 unsigned Function::getInstructionCount() const { in getInstructionCount()
353 Function *Function::Create(FunctionType *Ty, LinkageTypes Linkage, in Create()
358 Function *Function::createWithDefaultAttr(FunctionType *Ty, in createWithDefaultAttr()
362 auto *F = new Function(Ty, Linkage, AddrSpace, N, M); in createWithDefaultAttr()
384 void Function::removeFromParent() { in removeFromParent()
388 void Function::eraseFromParent() { in eraseFromParent()
392 void Function::splice(Function::iterator ToIt, Function *FromF, in splice()
393 Function::iterator FromBeginIt, in splice()
394 Function::iterator FromEndIt) { in splice()
404 Function::iterator Function::erase(Function::iterator FromIt, in erase()
405 Function::iterator ToIt) { in erase()
421 Function::Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace, in Function() function in Function
424 OperandTraits<Function>::op_begin(this), 0, Linkage, name, in Function()
450 Function::~Function() { in ~Function()
461 void Function::BuildLazyArguments() const { in BuildLazyArguments()
469 new (Arguments + i) Argument(ArgTy, "", const_cast<Function *>(this), i); in BuildLazyArguments()
476 const_cast<Function*>(this)->setValueSubclassData(SDC); in BuildLazyArguments()
484 bool Function::isConstrainedFPIntrinsic() const { in isConstrainedFPIntrinsic()
496 void Function::clearArguments() { in clearArguments()
505 void Function::stealArgumentListFrom(Function &Src) { in stealArgumentListFrom()
542 void Function::deleteBodyImpl(bool ShouldDrop) { in deleteBodyImpl()
572 void Function::addAttributeAtIndex(unsigned i, Attribute Attr) { in addAttributeAtIndex()
576 void Function::addFnAttr(Attribute::AttrKind Kind) { in addFnAttr()
580 void Function::addFnAttr(StringRef Kind, StringRef Val) { in addFnAttr()
584 void Function::addFnAttr(Attribute Attr) { in addFnAttr()
588 void Function::addFnAttrs(const AttrBuilder &Attrs) { in addFnAttrs()
592 void Function::addRetAttr(Attribute::AttrKind Kind) { in addRetAttr()
596 void Function::addRetAttr(Attribute Attr) { in addRetAttr()
600 void Function::addRetAttrs(const AttrBuilder &Attrs) { in addRetAttrs()
604 void Function::addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in addParamAttr()
608 void Function::addParamAttr(unsigned ArgNo, Attribute Attr) { in addParamAttr()
612 void Function::addParamAttrs(unsigned ArgNo, const AttrBuilder &Attrs) { in addParamAttrs()
616 void Function::removeAttributeAtIndex(unsigned i, Attribute::AttrKind Kind) { in removeAttributeAtIndex()
620 void Function::removeAttributeAtIndex(unsigned i, StringRef Kind) { in removeAttributeAtIndex()
624 void Function::removeFnAttr(Attribute::AttrKind Kind) { in removeFnAttr()
628 void Function::removeFnAttr(StringRef Kind) { in removeFnAttr()
632 void Function::removeFnAttrs(const AttributeMask &AM) { in removeFnAttrs()
636 void Function::removeRetAttr(Attribute::AttrKind Kind) { in removeRetAttr()
640 void Function::removeRetAttr(StringRef Kind) { in removeRetAttr()
644 void Function::removeRetAttrs(const AttributeMask &Attrs) { in removeRetAttrs()
648 void Function::removeParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in removeParamAttr()
652 void Function::removeParamAttr(unsigned ArgNo, StringRef Kind) { in removeParamAttr()
656 void Function::removeParamAttrs(unsigned ArgNo, const AttributeMask &Attrs) { in removeParamAttrs()
661 void Function::addDereferenceableParamAttr(unsigned ArgNo, uint64_t Bytes) { in addDereferenceableParamAttr()
666 bool Function::hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute()
670 bool Function::hasFnAttribute(StringRef Kind) const { in hasFnAttribute()
674 bool Function::hasRetAttribute(Attribute::AttrKind Kind) const { in hasRetAttribute()
678 bool Function::hasParamAttribute(unsigned ArgNo, in hasParamAttribute()
683 Attribute Function::getAttributeAtIndex(unsigned i, in getAttributeAtIndex()
688 Attribute Function::getAttributeAtIndex(unsigned i, StringRef Kind) const { in getAttributeAtIndex()
692 Attribute Function::getFnAttribute(Attribute::AttrKind Kind) const { in getFnAttribute()
696 Attribute Function::getFnAttribute(StringRef Kind) const { in getFnAttribute()
700 uint64_t Function::getFnAttributeAsParsedInteger(StringRef Name, in getFnAttributeAsParsedInteger()
714 Attribute Function::getParamAttribute(unsigned ArgNo, in getParamAttribute()
719 void Function::addDereferenceableOrNullParamAttr(unsigned ArgNo, in addDereferenceableOrNullParamAttr()
725 DenormalMode Function::getDenormalMode(const fltSemantics &FPType) const { in getDenormalMode()
737 DenormalMode Function::getDenormalModeRaw() const { in getDenormalModeRaw()
743 DenormalMode Function::getDenormalModeF32Raw() const { in getDenormalModeF32Raw()
753 const std::string &Function::getGC() const { in getGC()
758 void Function::setGC(std::string Str) { in setGC()
763 void Function::clearGC() { in clearGC()
770 bool Function::hasStackProtectorFnAttr() const { in hasStackProtectorFnAttr()
778 void Function::copyAttributesFrom(const Function *Src) { in copyAttributesFrom()
794 MemoryEffects Function::getMemoryEffects() const { in getMemoryEffects()
797 void Function::setMemoryEffects(MemoryEffects ME) { in setMemoryEffects()
802 bool Function::doesNotAccessMemory() const { in doesNotAccessMemory()
805 void Function::setDoesNotAccessMemory() { in setDoesNotAccessMemory()
810 bool Function::onlyReadsMemory() const { in onlyReadsMemory()
813 void Function::setOnlyReadsMemory() { in setOnlyReadsMemory()
818 bool Function::onlyWritesMemory() const { in onlyWritesMemory()
821 void Function::setOnlyWritesMemory() { in setOnlyWritesMemory()
827 bool Function::onlyAccessesArgMemory() const { in onlyAccessesArgMemory()
830 void Function::setOnlyAccessesArgMemory() { in setOnlyAccessesArgMemory()
836 bool Function::onlyAccessesInaccessibleMemory() const { in onlyAccessesInaccessibleMemory()
839 void Function::setOnlyAccessesInaccessibleMemory() { in setOnlyAccessesInaccessibleMemory()
845 bool Function::onlyAccessesInaccessibleMemOrArgMem() const { in onlyAccessesInaccessibleMemOrArgMem()
848 void Function::setOnlyAccessesInaccessibleMemOrArgMem() { in setOnlyAccessesInaccessibleMemOrArgMem()
866 bool Function::isTargetIntrinsic(Intrinsic::ID IID) { in isTargetIntrinsic()
870 bool Function::isTargetIntrinsic() const { in isTargetIntrinsic()
895 Intrinsic::ID Function::lookupIntrinsicID(StringRef Name) { in lookupIntrinsicID()
915 void Function::updateAfterNameChange() { in updateAfterNameChange()
1444 Function *Intrinsic::getDeclaration(Module *M, ID id, ArrayRef<Type*> Tys) { in getDeclaration()
1448 return cast<Function>( in getDeclaration()
1716 bool Intrinsic::getIntrinsicSignature(Function *F, in getIntrinsicSignature()
1737 std::optional<Function *> Intrinsic::remangleIntrinsicFunction(Function *F) { in remangleIntrinsicFunction()
1749 Function *NewDecl = [&] { in remangleIntrinsicFunction()
1751 if (auto *ExistingF = dyn_cast<Function>(ExistingGV)) in remangleIntrinsicFunction()
1774 bool Function::hasAddressTaken(const User **PutOffender, in hasAddressTaken()
1842 bool Function::isDefTriviallyDead() const { in isDefTriviallyDead()
1858 bool Function::callsFunctionThatReturnsTwice() const { in callsFunctionThatReturnsTwice()
1867 Constant *Function::getPersonalityFn() const { in getPersonalityFn()
1872 void Function::setPersonalityFn(Constant *Fn) { in setPersonalityFn()
1877 Constant *Function::getPrefixData() const { in getPrefixData()
1882 void Function::setPrefixData(Constant *PrefixData) { in setPrefixData()
1887 Constant *Function::getPrologueData() const { in getPrologueData()
1892 void Function::setPrologueData(Constant *PrologueData) { in setPrologueData()
1897 void Function::allocHungoffUselist() { in allocHungoffUselist()
1913 void Function::setHungoffOperand(Constant *C) { in setHungoffOperand()
1922 void Function::setValueSubclassDataBit(unsigned Bit, bool On) { in setValueSubclassDataBit()
1930 void Function::setEntryCount(ProfileCount Count, in setEntryCount()
1947 void Function::setEntryCount(uint64_t Count, Function::ProfileCountType Type, in setEntryCount()
1952 std::optional<ProfileCount> Function::getEntryCount(bool AllowSynthetic) const { in getEntryCount()
1974 DenseSet<GlobalValue::GUID> Function::getImportGUIDs() const { in getImportGUIDs()
1986 void Function::setSectionPrefix(StringRef Prefix) { in setSectionPrefix()
1992 std::optional<StringRef> Function::getSectionPrefix() const { in getSectionPrefix()
2003 bool Function::nullPointerIsDefined() const { in nullPointerIsDefined()
2007 bool llvm::NullPointerIsDefined(const Function *F, unsigned AS) { in NullPointerIsDefined()