Lines Matching refs:Function

96   typedef std::unordered_set<llvm::Function *> FunctionSet;
144 uint32_t getRootSignature(llvm::Function *Function) { in getRootSignature() argument
150 for (llvm::Function::arg_iterator B = Function->arg_begin(), in getRootSignature()
151 E = Function->arg_end(); in getRootSignature()
341 llvm::Function *createEmptyExpandedForEachKernel(llvm::StringRef OldName) { in createEmptyExpandedForEachKernel()
342 llvm::Function *ExpandedFunction = in createEmptyExpandedForEachKernel()
343 llvm::Function::Create(ExpandedForEachType, in createEmptyExpandedForEachKernel()
347 llvm::Function::arg_iterator AI = ExpandedFunction->arg_begin(); in createEmptyExpandedForEachKernel()
366 llvm::Function *createEmptyExpandedReduceAccumulator(llvm::StringRef OldName, in createEmptyExpandedReduceAccumulator()
374 llvm::Function *FnExpandedAccumulator = in createEmptyExpandedReduceAccumulator()
375 llvm::Function::Create(ExpandedReduceAccumulatorType, in createEmptyExpandedReduceAccumulator()
380 llvm::Function::arg_iterator AI = FnExpandedAccumulator->arg_begin(); in createEmptyExpandedReduceAccumulator()
491 const llvm::Function &CalleeFunction, in finishArgList()
641 llvm::Function::arg_iterator ArgIter, in ExpandInputsLoopInvariant()
777 bool ExpandOldStyleForEach(llvm::Function *Function, uint32_t Signature) { in ExpandOldStyleForEach() argument
779 Function->getName().str().c_str()); in ExpandOldStyleForEach()
782 Signature = getRootSignature(Function); in ExpandOldStyleForEach()
795 llvm::Function *ExpandedFunction = in ExpandOldStyleForEach()
796 createEmptyExpandedForEachKernel(Function->getName()); in ExpandOldStyleForEach()
805 llvm::Function::arg_iterator ExpandedFunctionArgIter = in ExpandOldStyleForEach()
821 llvm::Function::arg_iterator FunctionArgIter = Function->arg_begin(); in ExpandOldStyleForEach()
867 bccAssert(FunctionArgIter == Function->arg_end()); in ExpandOldStyleForEach()
909 finishArgList(RootArgs, CalleeArgs, CalleeArgsContextIdx, *Function, Builder); in ExpandOldStyleForEach()
911 Builder.CreateCall(Function, RootArgs); in ExpandOldStyleForEach()
918 bool ExpandForEach(llvm::Function *Function, uint32_t Signature) { in ExpandForEach() argument
920 ALOGV("Expanding kernel Function %s", Function->getName().str().c_str()); in ExpandForEach()
929 llvm::Function *ExpandedFunction = in ExpandForEach()
930 createEmptyExpandedForEachKernel(Function->getName()); in ExpandForEach()
939 llvm::Function::arg_iterator ExpandedFunctionArgIter = in ExpandForEach()
972 size_t NumRemainingInputs = Function->arg_size(); in ExpandForEach()
978 llvm::Function::arg_iterator ArgIter = Function->arg_begin(); in ExpandForEach()
988 llvm::Type *OutBaseTy = Function->getReturnType(); in ExpandForEach()
1084 finishArgList(RootArgs, CalleeArgs, CalleeArgsContextIdx, *Function, Builder); in ExpandForEach()
1086 llvm::Value *RetVal = Builder.CreateCall(Function, RootArgs); in ExpandForEach()
1111 llvm::Function *Fn = Module->getFunction(Name); in PromoteReduceFunction()
1145 …bool ExpandReduceAccumulator(llvm::Function *FnAccumulator, uint32_t Signature, size_t NumInputs) { in ExpandReduceAccumulator()
1168 llvm::Function *FnExpandedAccumulator = in ExpandReduceAccumulator()
1225 bool CreateReduceCombinerFromAccumulator(llvm::Function *FnAccumulator) { in CreateReduceCombinerFromAccumulator()
1241 llvm::Function *FnCombiner = in CreateReduceCombinerFromAccumulator()
1242 llvm::Function::Create(CombinerType, llvm::GlobalValue::ExternalLinkage, in CreateReduceCombinerFromAccumulator()
1333 llvm::Function *Function = Module.getFunction(FI); in allocPointersExposed() local
1335 if (!Function) { in allocPointersExposed()
1340 if (Function->getNumUses() > 0) { in allocPointersExposed()
1391 llvm::Function *kernel = Module.getFunction(name); in runOnModule()
1419 llvm::Function *accumulator = Module.getFunction(ExportReduceList[i].mAccumulatorName); in runOnModule()