Home
last modified time | relevance | path

Searched refs:NewG (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp668 Function *NewG = nullptr; in writeThunk() local
682 NewG = Function::Create(G->getFunctionType(), G->getLinkage(), "", in writeThunk()
684 BB = BasicBlock::Create(F->getContext(), "", NewG); in writeThunk()
688 Function *H = MergeFunctionsPDI ? G : NewG; in writeThunk()
726 NewG->copyAttributesFrom(G); in writeThunk()
727 NewG->takeName(G); in writeThunk()
729 G->replaceAllUsesWith(NewG); in writeThunk()
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp1694 Function *NewG = Function::Create(G->getFunctionType(), G->getLinkage(), "", in writeThunk() local
1696 BasicBlock *BB = BasicBlock::Create(F->getContext(), "", NewG); in writeThunk()
1702 for (Argument & AI : NewG->args()) { in writeThunk()
1711 if (NewG->getReturnType()->isVoidTy()) { in writeThunk()
1714 Builder.CreateRet(createCast(Builder, CI, NewG->getReturnType())); in writeThunk()
1717 NewG->copyAttributesFrom(G); in writeThunk()
1718 NewG->takeName(G); in writeThunk()
1720 G->replaceAllUsesWith(NewG); in writeThunk()
1723 DEBUG(dbgs() << "writeThunk: " << NewG->getName() << '\n'); in writeThunk()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3391 const SCEV *NewG = SE.getAddExpr(SE.getConstant(G->getType(), Offset), G); in GenerateConstantOffsetsImpl() local
3393 if (NewG->isZero()) { in GenerateConstantOffsetsImpl()
3401 F.ScaledReg = NewG; in GenerateConstantOffsetsImpl()
3403 F.BaseRegs[Idx] = NewG; in GenerateConstantOffsetsImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3713 const SCEV *NewG = SE.getAddExpr(SE.getConstant(G->getType(), Offset), G); in GenerateConstantOffsetsImpl() local
3715 if (NewG->isZero()) { in GenerateConstantOffsetsImpl()
3723 F.ScaledReg = NewG; in GenerateConstantOffsetsImpl()
3725 F.BaseRegs[Idx] = NewG; in GenerateConstantOffsetsImpl()