HomeSort by: relevance | last modified time | path
    Searched refs:NewF (Results 1 - 24 of 24) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblyAddMissingPrototypes.cpp 125 Function *NewF =
127 NewF->setAttributes(F.getAttributes());
128 NewF->removeFnAttr("no-prototype");
129 Replacements.emplace_back(&F, NewF);
134 Function *NewF = Pair.second;
136 M.getFunctionList().push_back(NewF);
138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType()));
140 NewF->setName(Name);
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPUPropagateAttributes.cpp 103 Clone(const FnProperties &Props, Function *OrigF, Function *NewF) :
104 Properties(Props), OrigF(OrigF), NewF(NewF) {}
108 Function *NewF;
208 return C.NewF;
268 Function *NewF = findFunction(CallerProps, &F);
269 if (!NewF) {
283 NewF = cloneWithProperties(F, NewProps);
284 Clones.push_back(Clone(CallerProps, &F, NewF));
285 NewRoots.insert(NewF);
    [all...]
R600OpenCLImageTypeLoweringPass.cpp 291 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName());
293 auto NewFArgIt = NewF->arg_begin();
304 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly,
309 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF));
314 return std::make_tuple(NewF, NewMDNode);
329 Function *NewF;
331 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode);
332 if (NewF) {
335 M.getFunctionList().push_back(NewF);
336 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType()
    [all...]
AMDGPUInstCombineIntrinsic.cpp 583 Function *NewF = Intrinsic::getDeclaration(
588 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args);
683 Function *NewF = Intrinsic::getDeclaration(
687 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args);
709 Function *NewF = Intrinsic::getDeclaration(
714 CallInst *NewCall = IC.Builder.CreateCall(NewF, Args);
  /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
IndirectionUtils.cpp 289 Function *NewF =
292 NewF->copyAttributesFrom(&F);
295 (*VMap)[&F] = NewF;
296 auto NewArgI = NewF->arg_begin();
302 return NewF;
307 Function *NewF) {
309 if (!NewF)
310 NewF = cast<Function>(VMap[&OrigF]);
312 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap.");
313 assert(NewF && "Function mapping missing from VMap.")
    [all...]
  /src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/
ReduceArguments.cpp 22 /// Goes over OldF calls and replaces them with a call to NewF
23 static void replaceFunctionCalls(Function &OldF, Function &NewF,
33 CallInst *NewCI = CallInst::Create(&NewF, Args);
34 NewCI->setCallingConv(NewF.getCallingConv());
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
CoroSplit.cpp 101 Function *NewF;
117 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape),
124 Function *NewF, AnyCoroSuspendInst *ActiveSuspend)
125 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape),
130 assert(NewF && "need existing function for continuation");
135 assert(NewF != nullptr && "declaration not yet set");
136 return NewF;
475 Function *NewF =
478 NewF->addParamAttr(0, Attribute::NonNull)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Basic/Targets/
AMDGPU.cpp 396 std::string NewF = F.str();
397 std::replace(NewF.begin(), NewF.end(), '-', '_');
398 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) +
  /src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
ValueEnumerator.h 79 /// Check if this has a function tag, and it's different from NewF.
80 bool hasDifferentFunction(unsigned NewF) const { return F && F != NewF; }
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
ThinLTOBitcodeWriter.cpp 158 Function *NewF =
161 NewF->copyAttributesFrom(&F);
163 NewF->setAttributes(
166 NewF->takeName(&F);
167 F.replaceAllUsesWith(ConstantExpr::getBitCast(NewF, F.getType()));
MergeFunctions.cpp 804 // create aliases for G and NewF, or because a thunk for F is profitable.
805 // F here has the same signature as NewF below, so that's what we check.
811 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
813 NewF->copyAttributesFrom(F);
814 NewF->takeName(F);
816 F->replaceAllUsesWith(NewF);
818 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment()));
821 writeThunkOrAlias(F, NewF);
ArgumentPromotion.cpp 1035 Function *NewF =
1037 if (!NewF)
1046 C.getOuterRefSCC().replaceNodeFunction(N, *NewF);
1141 if (Function *NewF = promoteArguments(OldF, AARGetter, MaxElements,
1146 CallGraphNode *NewNode = CG.getOrInsertFunction(NewF);
Attributor.cpp 2357 Function *NewF = internalizeFunction(*F);
2358 Functions.insert(NewF);
2361 CGUpdater.replaceFunctionWith(*F, *NewF);
2362 for (const Use &U : NewF->uses())
  /src/external/apache2/llvm/dist/llvm/tools/bugpoint/
Miscompilation.cpp 402 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
404 assert(NewF && "Function not found??");
405 MiscompiledFunctions.push_back(NewF);
434 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
436 assert(NewF && "Function not found??");
437 MiscompiledFunctions.push_back(NewF);
601 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first);
602 assert(NewF && "Function not found??");
603 MiscompiledFunctions.push_back(NewF);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
Float2Int.cpp 326 APFloat NewF = F;
327 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven);
328 if (Res != APFloat::opOK || NewF != F) {
LoopStrengthReduce.cpp 4226 Formula NewF = F;
4227 NewF.BaseOffset = Offset;
4229 NewF))
4231 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg);
4236 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg))
4237 if (C->getValue()->isNegative() != (NewF.BaseOffset < 0) &&
4239 .ule(std::abs(NewF.BaseOffset)))
4243 NewF.canonicalize(*this->L);
4244 (void)InsertFormula(LU, LUIdx, NewF);
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
DataFlowSanitizer.cpp 1215 Function *NewF = Function::Create(NewFT, NewFLink, F->getAddressSpace(),
1217 NewF->copyAttributesFrom(F);
1218 NewF->removeAttributes(
1222 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF);
1224 NewF->removeAttributes(AttributeList::FunctionIndex,
1231 auto ArgIt = pointer_iterator<Argument *>(NewF->arg_begin());
1241 return NewF;
1540 Function *NewF =
1542 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
1543 NewF->takeName(GA)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
LazyCallGraph.cpp 136 void LazyCallGraph::Node::replaceFunction(Function &NewF) {
137 assert(F != &NewF && "Must not replace a function with itself!");
138 F = &NewF;
1458 void LazyCallGraph::RefSCC::replaceNodeFunction(Node &N, Function &NewF) {
1467 assert(G->NodeMap.find(&NewF) == G->NodeMap.end() &&
1476 assert(&OldF != &NewF && "Cannot replace a function with itself!");
1481 N.replaceFunction(NewF);
1485 G->NodeMap[&NewF] = &N;
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
CloneFunction.cpp 301 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getAddressSpace(),
305 Function::arg_iterator DestI = NewF->arg_begin();
313 CloneFunctionInto(NewF, F, VMap, CloneFunctionChangeType::LocalChangesOnly,
316 return NewF;
  /src/external/apache2/llvm/dist/llvm/lib/Linker/
IRMover.cpp 735 if (auto *NewF = dyn_cast<Function>(NewGV)) {
736 NewF->setPersonalityFn(nullptr);
737 NewF->setPrefixData(nullptr);
738 NewF->setPrologueData(nullptr);
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
LazyCallGraph.h 397 void replaceFunction(Function &NewF);
861 void replaceNodeFunction(Node &N, Function &NewF);
  /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/
IndirectionUtils.h 526 /// If the target function declaration is not supplied via the NewF parameter
533 Function *NewF = nullptr);
  /src/external/apache2/llvm/dist/llvm/lib/IR/
Constants.cpp 1862 Function *NewF = getFunction();
1865 if (From == NewF)
1866 NewF = cast<Function>(To->stripPointerCasts());
1875 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)];
1886 setOperand(0, NewF);
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CodeGenModule.cpp 279 auto *NewF = dyn_cast<llvm::Function>(Replacement);
280 if (!NewF) {
282 NewF = dyn_cast<llvm::Function>(Alias->getAliasee());
287 NewF = dyn_cast<llvm::Function>(CE->getOperand(0));
293 if (NewF) {
294 NewF->removeFromParent();
296 NewF);

Completed in 64 milliseconds