| /minix3/external/bsd/llvm/dist/llvm/unittests/Bitcode/ |
| H A D | BitReaderTest.cpp | 72 M->getFunction("func")->materialize(); in TEST() 73 EXPECT_FALSE(M->getFunction("func")->empty()); in TEST() 74 EXPECT_TRUE(M->getFunction("func")->getLinkage() == in TEST() 78 M->getFunction("func")->Dematerialize(); in TEST() 79 EXPECT_TRUE(M->getFunction("func")->empty()); in TEST() 80 EXPECT_TRUE(M->getFunction("func")->getLinkage() == in TEST() 99 M->getFunction("func")->Dematerialize(); in TEST() 100 EXPECT_FALSE(M->getFunction("func")->empty()); in TEST() 119 EXPECT_TRUE(M->getFunction("before")->empty()); in TEST() 120 EXPECT_TRUE(M->getFunction("func")->empty()); in TEST() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/Analysis/ |
| H A D | LazyCallGraphTest.cpp | 132 EXPECT_EQ("a1", A1.getFunction().getName()); in TEST() 134 EXPECT_EQ("a2", A2.getFunction().getName()); in TEST() 136 EXPECT_EQ("a3", A3.getFunction().getName()); in TEST() 138 EXPECT_EQ("b1", B1.getFunction().getName()); in TEST() 140 EXPECT_EQ("b2", B2.getFunction().getName()); in TEST() 142 EXPECT_EQ("b3", B3.getFunction().getName()); in TEST() 144 EXPECT_EQ("c1", C1.getFunction().getName()); in TEST() 146 EXPECT_EQ("c2", C2.getFunction().getName()); in TEST() 148 EXPECT_EQ("c3", C3.getFunction().getName()); in TEST() 150 EXPECT_EQ("d1", D1.getFunction().getName()); in TEST() [all …]
|
| H A D | CFGTest.cpp | 44 Function *F = M->getFunction("test"); in ParseAssembly() 381 succ_iterator S = succ_begin(++M->getFunction("test")->begin()); in TEST_F()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
| H A D | MachineBlockFrequencyInfo.cpp | 60 return G->getFunction()->begin(); in getEntryNode() 72 return G->getFunction()->begin(); in nodes_begin() 76 return G->getFunction()->end(); in nodes_end() 87 return G->getFunction()->getName(); in getGraphName() 175 const MachineFunction *MachineBlockFrequencyInfo::getFunction() const { in getFunction() function in MachineBlockFrequencyInfo 176 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
|
| H A D | TargetOptionsImpl.cpp | 25 if (MF.getFunction()->hasFnAttribute("no-frame-pointer-elim-non-leaf") && in DisableFramePointerElim()
|
| H A D | LexicalScopes.cpp | 110 DL.getScopeAndInlinedAt(Scope, IA, MF->getFunction()->getContext()); in findInlinedScope() 120 DL.getScopeAndInlinedAt(Scope, IA, MF->getFunction()->getContext()); in findLexicalScope() 144 DL.getScopeAndInlinedAt(Scope, InlinedAt, MF->getFunction()->getContext()); in getOrCreateLexicalScope() 179 assert(DISubprogram(Scope).describes(MF->getFunction())); in getOrCreateRegularScope()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/ |
| H A D | BlockFrequencyInfo.cpp | 58 return G->getFunction()->begin(); in getEntryNode() 67 return G->getFunction()->begin(); in nodes_begin() 70 return G->getFunction()->end(); in nodes_end() 80 return G->getFunction()->getName(); in getGraphName() 165 const Function *BlockFrequencyInfo::getFunction() const { in getFunction() function in BlockFrequencyInfo 166 return BFI ? BFI->getFunction() : nullptr; in getFunction()
|
| H A D | Trace.cpp | 24 Function *Trace::getFunction() const { in getFunction() function in Trace 29 return getFunction()->getParent(); in getModule() 35 Function *F = getFunction(); in print()
|
| H A D | LazyCallGraph.cpp | 87 CalleeIndexMap.insert(std::make_pair(&CalleeN.getFunction(), Callees.size())); in insertEdgeInternal() 129 SCCEntryNodes.push_back(&Entry.get<Node *>()->getFunction()); in LazyCallGraph() 326 CallerN.removeEdgeInternal(CalleeN.getFunction()); in removeInterSCCEdge() 367 DEBUG(dbgs() << "LCG: Update removing " << CallerN.getFunction().getName() in removeInterSCCEdge() 368 << " -> " << CalleeN.getFunction().getName() in removeInterSCCEdge() 460 CallerN.removeEdgeInternal(CalleeN.getFunction()); in removeIntraSCCEdge() 694 OS << " Call edges in function: " << N.getFunction().getName() << "\n"; in printNodes() 696 OS << " -> " << I->getFunction().getName() << "\n"; in printNodes() 706 OS << " " << N->getFunction().getName() << "\n"; in printSCC()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/Mips/ |
| H A D | MipsCCState.cpp | 71 Function *F = G->getGlobal()->getParent()->getFunction(Sym); in getSpecialCallingConvForCallee() 97 originalTypeIsF128(MF.getFunction()->getReturnType(), nullptr)); in PreAnalyzeReturnForF128() 99 MF.getFunction()->getReturnType()->isFloatingPointTy()); in PreAnalyzeReturnForF128() 124 Function::const_arg_iterator FuncArg = MF.getFunction()->arg_begin(); in PreAnalyzeFormalArgumentsForF128() 135 assert(Ins[i].getOrigArgIndex() < MF.getFunction()->arg_size()); in PreAnalyzeFormalArgumentsForF128()
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/Linker/ |
| H A D | LinkModulesTest.cpp | 112 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F() 113 LinkedModule->getFunction("ba_func")); in TEST_F() 115 LinkedModule->getFunction("ba_func")); in TEST_F() 119 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F() 120 LinkedModule->getFunction("ba_func")); in TEST_F() 122 LinkedModule->getFunction("ba_func")); in TEST_F()
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/Transforms/Utils/ |
| H A D | Cloning.cpp | 309 EXPECT_TRUE((Sub1.getFunction() == OldFunc && Sub2.getFunction() == NewFunc) in TEST_F() 310 || (Sub1.getFunction() == NewFunc && Sub2.getFunction() == OldFunc)); in TEST_F() 354 EXPECT_EQ(OldFunc, OldSubprogram.getFunction()); in TEST_F() 355 EXPECT_EQ(NewFunc, NewSubprogram.getFunction()); in TEST_F() 388 .getContext()).getFunction()); in TEST_F() 391 .getContext()).getFunction()); in TEST_F() 398 .getContext()).getFunction()); in TEST_F() 401 .getContext()).getFunction()); in TEST_F()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/ |
| H A D | CallGraphSCCPass.cpp | 147 if (Function *F = (*I)->getFunction()) { in RunPassOnSCC() 197 Function *F = CGN->getFunction(); in RefreshCallGraph() 225 if (!I->second->getFunction()) in RefreshCallGraph() 279 if (ExistingNode->getFunction() == CS.getCalledFunction()) in RefreshCallGraph() 288 ExistingNode->getFunction() == nullptr) in RefreshCallGraph() 301 if (!ExistingNode->getFunction()) { in RefreshCallGraph() 613 if ((*I)->getFunction()) in runOnSCC() 614 (*I)->getFunction()->print(Out); in runOnSCC()
|
| H A D | GlobalsModRef.cpp | 365 if (!SCC[0]->getFunction()) { in AnalyzeCallGraph() 369 FunctionInfo.erase(SCC[i]->getFunction()); in AnalyzeCallGraph() 373 FunctionRecord &FR = FunctionInfo[SCC[0]->getFunction()]; in AnalyzeCallGraph() 381 Function *F = SCC[i]->getFunction(); in AnalyzeCallGraph() 408 if (Function *Callee = CI->second->getFunction()) { in AnalyzeCallGraph() 433 FunctionInfo.erase(SCC[i]->getFunction()); in AnalyzeCallGraph() 439 for (inst_iterator II = inst_begin(SCC[i]->getFunction()), in AnalyzeCallGraph() 440 E = inst_end(SCC[i]->getFunction()); in AnalyzeCallGraph() 471 FunctionInfo[SCC[i]->getFunction()] = FR; in AnalyzeCallGraph()
|
| H A D | CallGraph.cpp | 95 if (Function *F = Root->getFunction()) in print() 118 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule() 158 if (Function *F = getFunction()) in print() 167 if (Function *FI = I->second->getFunction()) in print()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | OcamlGCPrinter.cpp | 143 report_fatal_error("Function '" + FI.getFunction().getName() + in finishAssembly() 150 Twine(FI.getFunction().getName())); in finishAssembly() 157 report_fatal_error("Function '" + FI.getFunction().getName() + in finishAssembly()
|
| H A D | ErlangGCPrinter.cpp | 107 unsigned StackArity = MD.getFunction().arg_size() > RegisteredArgs ? in finishAssembly() 108 MD.getFunction().arg_size() - RegisteredArgs : 0; in finishAssembly()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | PruneEH.cpp | 75 if (Function *F = (*I)->getFunction()) in runOnSCC() 88 Function *F = (*I)->getFunction(); in runOnSCC() 148 Function *F = (*I)->getFunction(); in runOnSCC() 163 if (Function *F = (*I)->getFunction()) in runOnSCC()
|
| /minix3/external/bsd/llvm/dist/llvm/tools/llvm-diff/ |
| H A D | llvm-diff.cpp | 49 Function *LFn = L.getFunction(Name); in diffGlobal() 50 Function *RFn = R.getFunction(Name); in diffGlobal()
|
| /minix3/external/bsd/llvm/dist/llvm/tools/opt/ |
| H A D | PrintSCC.cpp | 103 errs() << ((*I)->getFunction() ? (*I)->getFunction()->getName() in runOnModule()
|
| /minix3/external/bsd/llvm/dist/llvm/unittests/IR/ |
| H A D | UseTest.cpp | 42 Function *F = M->getFunction("f"); in TEST() 87 Function *F = M->getFunction("f"); in TEST()
|
| /minix3/external/bsd/llvm/dist/llvm/examples/BrainF/ |
| H A D | BrainFDriver.cpp | 78 CallInst *brainf_call = CallInst::Create(mod->getFunction("brainf"), in addMainFunction() 146 Function *brainf_func = M.getFunction("brainf"); in main()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/ |
| H A D | AMDGPUMachineFunction.cpp | 18 AttributeSet Set = MF.getFunction()->getAttributes(); in AMDGPUMachineFunction()
|
| /minix3/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy.cpp | 657 Function *getFunction(const std::string FnName); 730 Function *MCJITHelper::getFunction(const std::string FnName) { in getFunction() function in MCJITHelper 735 Function *F = (*it)->getFunction(FnName); in getFunction() 744 Function *PF = OpenModule->getFunction(FnName); in getFunction() 782 Function *MF = (*it)->getFunction(FnName); in getPointerToFunction() 863 Function *F = (*it)->getFunction(Name); in getPointerToNamedFunction() 929 Function *F = TheHelper->getFunction(MakeLegalFunctionName(std::string("unary")+Opcode)); in Codegen() 974 Function *F = TheHelper->getFunction(MakeLegalFunctionName(std::string("binary")+Op)); in Codegen() 983 Function *CalleeF = TheHelper->getFunction(Callee); in Codegen() 1214 F = M->getFunction(Name); in Codegen()
|
| /minix3/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 781 virtual Function *getFunction(const std::string FnName) = 0; 807 Function *getFunction(const std::string FnName); 887 Function *MCJITHelper::getFunction(const std::string FnName) { in getFunction() function in MCJITHelper 892 Function *F = (*it)->getFunction(FnName); in getFunction() 901 Function *PF = CurrentModule->getFunction(FnName); in getFunction() 1005 Function *MF = (*it)->getFunction(FnName); in getPointerToFunction() 1037 Function *F = (*it)->getFunction(Name); in getPointerToNamedFunction() 1101 F = TheHelper->getFunction( in Codegen() 1151 F = TheHelper->getFunction(MakeLegalFunctionName(std::string("binary")+Op)); in Codegen() 1160 Function *CalleeF = TheHelper->getFunction(Callee); in Codegen() [all …]
|