Searched defs:Fn (Results 26 - 50 of 99) sorted by relevance

1234

/external/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp237 void *LLVMRecompileAndRelinkFunction(LLVMExecutionEngineRef EE, LLVMValueRef Fn) { argument
238 return unwrap(EE)->recompileAndRelinkFunction(unwrap<Function>(Fn));
/external/llvm/lib/Support/
H A DCrashRecoveryContext.cpp296 bool CrashRecoveryContext::RunSafely(void (*Fn)(void*), void *UserData) { argument
308 Fn(UserData);
341 bool CrashRecoveryContext::RunSafelyOnThread(void (*Fn)(void*), void *UserData, argument
343 RunSafelyOnThreadInfo Info = { Fn, UserData, this, false };
/external/llvm/lib/Target/ARM/
H A DThumb2ITBlockPass.cpp35 virtual bool runOnMachineFunction(MachineFunction &Fn);
248 bool Thumb2ITBlockPass::runOnMachineFunction(MachineFunction &Fn) { argument
249 const TargetMachine &TM = Fn.getTarget();
250 AFI = Fn.getInfo<ARMFunctionInfo>();
258 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; ) {
H A DA15SDOptimizer.cpp54 virtual bool runOnMachineFunction(MachineFunction &Fn);
672 bool A15SDOptimizer::runOnMachineFunction(MachineFunction &Fn) { argument
673 TII = static_cast<const ARMBaseInstrInfo*>(Fn.getTarget().getInstrInfo());
674 TRI = Fn.getTarget().getRegisterInfo();
675 MRI = &Fn.getRegInfo();
678 DEBUG(dbgs() << "Running on function " << Fn.getName()<< "\n");
683 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
H A DMLxExpansionPass.cpp43 virtual bool runOnMachineFunction(MachineFunction &Fn);
379 bool MLxExpansion::runOnMachineFunction(MachineFunction &Fn) { argument
380 TII = static_cast<const ARMBaseInstrInfo*>(Fn.getTarget().getInstrInfo());
381 TRI = Fn.getTarget().getRegisterInfo();
382 MRI = &Fn.getRegInfo();
383 const ARMSubtarget *STI = &Fn.getTarget().getSubtarget<ARMSubtarget>();
388 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
/external/llvm/lib/Target/Mips/
H A DMipsJITInfo.cpp202 void *MipsJITInfo::emitFunctionStub(const Function *F, void *Fn, argument
210 if (Fn != (void*)(intptr_t)MipsCompilationCallback)
211 EmittedAddr = (intptr_t)Fn;
/external/llvm/lib/Target/PowerPC/
H A DPPCJITInfo.cpp347 PPCJITInfo::getLazyResolverFunction(JITCompilerFn Fn) { argument
348 JITCompilerFunction = Fn;
366 void *PPCJITInfo::emitFunctionStub(const Function* F, void *Fn, argument
370 if (Fn != (void*)(intptr_t)PPC32CompilationCallback &&
371 Fn != (void*)(intptr_t)PPC64CompilationCallback) {
380 EmitBranchToAt((intptr_t)Addr, (intptr_t)Fn, false, is64Bit);
407 EmitBranchToAt(BranchAddr, (intptr_t)Fn, true, is64Bit);
/external/clang/lib/CodeGen/
H A DCGDeclCXX.cpp228 llvm::Function *Fn = local
235 Fn->setSection(Section);
238 Fn->setCallingConv(CGM.getRuntimeCC());
241 Fn->setDoesNotThrow();
244 Fn->addFnAttr(llvm::Attribute::SanitizeAddress);
246 Fn->addFnAttr(llvm::Attribute::SanitizeThread);
248 Fn->addFnAttr(llvm::Attribute::SanitizeMemory);
250 return Fn;
260 llvm::Function *Fn = local
263 CodeGenFunction(*this).GenerateCXXGlobalVarDeclInitFunc(Fn,
316 llvm::Function *Fn = local
330 llvm::Function *Fn = local
349 llvm::Function *Fn = local
357 GenerateCXXGlobalVarDeclInitFunc(llvm::Function *Fn, const VarDecl *D, llvm::GlobalVariable *Addr, bool PerformInit) argument
382 GenerateCXXGlobalInitFunc(llvm::Function *Fn, llvm::Constant **Decls, unsigned NumDecls) argument
410 GenerateCXXGlobalDtorsFunc(llvm::Function *Fn, const std::vector<std::pair<llvm::WeakVH, llvm::Constant*> > &DtorsAndObjects) argument
[all...]
H A DCGObjCRuntime.cpp155 CallObjCEndCatch(bool MightThrow, llvm::Value *Fn) : argument
156 MightThrow(MightThrow), Fn(Fn) {}
158 llvm::Value *Fn; member in struct:__anon3739::CallObjCEndCatch
162 CGF.Builder.CreateCall(Fn)->setDoesNotThrow();
166 CGF.EmitRuntimeCallOrInvoke(Fn);
H A DCGVTables.cpp100 const ThunkInfo &Thunk, llvm::Function *Fn) {
101 CGM.setGlobalVisibility(Fn, MD);
114 if ((Fn->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage &&
115 Fn->getLinkage() != llvm::GlobalVariable::WeakODRLinkage) ||
116 Fn->getVisibility() != llvm::GlobalVariable::DefaultVisibility)
143 Fn->setVisibility(llvm::GlobalValue::HiddenVisibility);
216 llvm::Function *Fn,
234 Fn->replaceAllUsesWith(NewFn);
235 NewFn->takeName(Fn);
236 Fn
99 setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, const ThunkInfo &Thunk, llvm::Function *Fn) argument
215 GenerateVarArgsThunk( llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
285 GenerateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
313 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, local
[all...]
/external/llvm/include/llvm/ADT/
H A DSTLExtras.h78 UnaryFunc Fn; member in class:llvm::mapped_iterator
94 inline const UnaryFunc &getFunc() const { return Fn; }
97 : current(I), Fn(F) {}
99 : current(It.current), Fn(It.Fn) {}
102 return Fn(*current); // little change
110 return _Self(current + n, Fn);
114 return _Self(current - n, Fn);
/external/llvm/lib/AsmParser/
H A DLLParser.cpp80 if (Function *Fn = dyn_cast<Function>(V)) {
81 AttributeSet AS = Fn->getAttributes();
91 Fn->setAlignment(FnAttrs.getAlignment());
99 Fn->setAttributes(AS);
132 const ValID &Fn = ForwardRefBlockAddresses.begin()->first; local
133 if (Fn.Kind == ValID::t_GlobalName)
134 TheFn = M->getFunction(Fn.StrVal);
135 else if (Fn.UIntVal < NumberedVals.size())
136 TheFn = dyn_cast<Function>(NumberedVals[Fn.UIntVal]);
139 return Error(Fn
[all...]
/external/llvm/lib/CodeGen/
H A DPostRASchedulerList.cpp100 bool runOnMachineFunction(MachineFunction &Fn);
253 bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { argument
254 TII = Fn.getTarget().getInstrInfo();
260 RegClassInfo.runOnMachineFunction(Fn);
272 const TargetSubtargetInfo &ST = Fn.getTarget().getSubtarget<TargetSubtargetInfo>();
289 SchedulePostRATDList Scheduler(Fn, MLI, MDT, AA, RegClassInfo, AntiDepMode,
293 for (MachineFunction::iterator MBB = Fn.begin(), MBBe = Fn.end();
301 dbgs() << "*** DEBUG scheduling " << Fn.getName()
318 if (MI->isCall() || TII->isSchedulingBoundary(MI, MBB, Fn)) {
[all...]
H A DPrologEpilogInserter.cpp66 bool PEI::runOnMachineFunction(MachineFunction &Fn) { argument
67 const Function* F = Fn.getFunction();
68 const TargetRegisterInfo *TRI = Fn.getTarget().getRegisterInfo();
69 const TargetFrameLowering *TFI = Fn.getTarget().getFrameLowering();
71 assert(!Fn.getRegInfo().getNumVirtRegs() && "Regalloc must assign all vregs");
73 RS = TRI->requiresRegisterScavenging(Fn) ? new RegScavenger() : NULL;
74 FrameIndexVirtualScavenging = TRI->requiresFrameIndexScavenging(Fn);
79 calculateCallsInformation(Fn);
83 TFI->processFunctionBeforeCalleeSavedScan(Fn, RS);
87 calculateCalleeSavedRegisters(Fn);
140 calculateCallsInformation(MachineFunction &Fn) argument
277 insertCSRSpillsAndRestores(MachineFunction &Fn) argument
479 calculateFrameObjectOffsets(MachineFunction &Fn) argument
675 insertPrologEpilogCode(MachineFunction &Fn) argument
707 replaceFrameIndices(MachineFunction &Fn) argument
813 scavengeFrameVirtualRegs(MachineFunction &Fn) argument
[all...]
H A DLiveVariables.cpp704 void LiveVariables::analyzePHINodes(const MachineFunction& Fn) { argument
705 for (MachineFunction::const_iterator I = Fn.begin(), E = Fn.end();
H A DMachineModuleInfo.cpp59 Function *Fn; // The containing function of the BasicBlock. member in struct:llvm::MMIAddrLabelMap::AddrLabelSymEntry
107 assert(BB->getParent() == Entry.Fn && "Parent changed");
118 Entry.Fn = BB->getParent();
168 assert((BB->getParent() == 0 || BB->getParent() == Entry.Fn) &&
180 DeletedAddrLabelsNeedingEmission[Entry.Fn].push_back(Sym);
193 DeletedAddrLabelsNeedingEmission[Entry.Fn].push_back(Sym);
H A DRegAllocFast.cpp163 bool runOnMachineFunction(MachineFunction &Fn);
1071 bool RAFast::runOnMachineFunction(MachineFunction &Fn) { argument
1073 << "********** Function: " << Fn.getName() << '\n');
1074 MF = &Fn;
1076 TM = &Fn.getTarget();
1079 MRI->freezeReservedRegs(Fn);
1080 RegClassInfo.runOnMachineFunction(Fn);
1092 for (MachineFunction::iterator MBBi = Fn.begin(), MBBe = Fn.end();
H A DShrinkWrapping.cpp181 void PEI::placeCSRSpillsAndRestores(MachineFunction &Fn) { argument
183 DEBUG(MF = &Fn);
192 if (calculateSets(Fn))
193 placeSpillsAndRestores(Fn);
276 void PEI::calculateAnticAvail(MachineFunction &Fn) { argument
286 for (MachineFunction::iterator MBBI = Fn.begin(), MBBE = Fn.end();
311 for (MachineFunction::iterator MBBI = Fn.begin(), MBBE = Fn.end();
358 bool PEI::calculateSets(MachineFunction &Fn) { argument
796 placeSpillsAndRestores(MachineFunction &Fn) argument
[all...]
/external/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp181 static bool ffiInvoke(RawFunc Fn, Function *F, argument
225 ffi_call(&cif, Fn, ret.data(), values.data());
256 if (ExFunc Fn = (FI == ExportedFunctions->end()) ? lookupFunction(F)
259 return Fn(F->getFunctionType(), ArgVals);
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFStreamer.cpp199 SectionKind Kind, const MCSymbol &Fn);
221 const MCSymbol &Fn) {
223 static_cast<const MCSectionELF &>(Fn.getSection());
217 SwitchToEHSection(const char *Prefix, unsigned Type, unsigned Flags, SectionKind Kind, const MCSymbol &Fn) argument
/external/llvm/include/llvm/ExecutionEngine/
H A DExecutionEngine.h275 int runFunctionAsMain(Function *Fn, const std::vector<std::string> &argv,
446 void DeregisterTable(const Function *Fn) { argument
449 AllExceptionTables.find(Fn);
/external/llvm/lib/Target/Hexagon/
H A DHexagonVLIWPacketizer.cpp74 bool runOnMachineFunction(MachineFunction &Fn);
162 bool HexagonPacketizer::runOnMachineFunction(MachineFunction &Fn) { argument
163 const TargetInstrInfo *TII = Fn.getTarget().getInstrInfo();
168 HexagonPacketizerList Packetizer(Fn, MLI, MDT);
183 for (MachineFunction::iterator MBB = Fn.begin(), MBBe = Fn.end();
200 for (MachineFunction::iterator MBB = Fn.begin(), MBBe = Fn.end();
210 if (TII->isSchedulingBoundary(llvm::prior(I), MBB, Fn))
/external/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp164 bool DeleteDeadVarargs(Function &Fn);
165 bool RemoveDeadArgumentsFromCallers(Function &Fn);
225 bool DAE::DeleteDeadVarargs(Function &Fn) { argument
226 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!");
227 if (Fn.isDeclaration() || !Fn.hasLocalLinkage()) return false;
230 if (Fn.hasAddressTaken())
235 for (Function::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB) {
249 FunctionType *FTy = Fn
341 RemoveDeadArgumentsFromCallers(Function &Fn) argument
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp457 static void fixupLineNumbers(Function *Fn, Function::iterator FI, argument
463 for (; FI != Fn->end(); ++FI) {
/external/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h54 Func Fn; member in class:clang::ento::CheckerFn
57 CheckerFn(CheckerBase *checker, Func fn) : Fn(fn), Checker(checker) { }
59 return Fn(Checker, p1, p2, p3, p4, p5);
66 Func Fn; member in class:clang::ento::CheckerFn
69 CheckerFn(CheckerBase *checker, Func fn) : Fn(fn), Checker(checker) { }
71 return Fn(Checker, p1, p2, p3, p4);
78 Func Fn; member in class:clang::ento::CheckerFn
81 CheckerFn(CheckerBase *checker, Func fn) : Fn(fn), Checker(checker) { }
82 RET operator()(P1 p1, P2 p2, P3 p3) const { return Fn(Checker, p1, p2, p3); }
88 Func Fn; member in class:clang::ento::CheckerFn
98 Func Fn; member in class:clang::ento::CheckerFn
108 Func Fn; member in class:clang::ento::CheckerFn
[all...]

Completed in 1500 milliseconds

1234