Home
last modified time | relevance | path

Searched refs:FirstInst (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp26 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() local
27 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); in FoldPHIArgBinOpIntoPHI()
28 unsigned Opc = FirstInst->getOpcode(); in FoldPHIArgBinOpIntoPHI()
29 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI()
30 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI()
37 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { in FoldPHIArgBinOpIntoPHI()
41 dyn_cast<PossiblyExactOperator>(FirstInst)) in FoldPHIArgBinOpIntoPHI()
56 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) in FoldPHIArgBinOpIntoPHI()
80 Value *InLHS = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI()
81 Value *InRHS = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI()
[all …]
DInstCombineLoadStoreAlloca.cpp246 Instruction *FirstInst = EntryBlock.getFirstNonPHIOrDbg(); in visitAllocaInst() local
247 if (FirstInst != &AI) { in visitAllocaInst()
251 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst()
254 AI.moveBefore(FirstInst); in visitAllocaInst()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerStructArgs.cpp61 Instruction *FirstInst = &(Func->getEntryBlock().front()); in handleParam() local
67 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleParam()
88 Arg->getName(), FirstInst)}; in handleParam()
90 CallInst::Create(CvtFunc, BitcastArgs, "cvt_to_param", FirstInst); in handleParam()
94 Arg->getName(), FirstInst); in handleParam()
95 LoadInst *LI = new LoadInst(BitCast, Arg->getName(), FirstInst); in handleParam()
96 new StoreInst(LI, AllocA, FirstInst); in handleParam()
/external/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp1206 static Instruction *getFirstInst(Instruction *FirstInst, Value *V, in getFirstInst() argument
1208 if (FirstInst) in getFirstInst()
1209 return FirstInst; in getFirstInst()
1226 Instruction *FirstInst = nullptr; in addRuntimeCheck() local
1275 FirstInst = getFirstInst(FirstInst, Cmp0, Loc); in addRuntimeCheck()
1277 FirstInst = getFirstInst(FirstInst, Cmp1, Loc); in addRuntimeCheck()
1279 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeCheck()
1283 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeCheck()
1298 FirstInst = getFirstInst(FirstInst, Check, Loc); in addRuntimeCheck()
1299 return std::make_pair(FirstInst, Check); in addRuntimeCheck()
/external/llvm/utils/TableGen/
DAsmWriterEmitter.cpp90 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions() local
96 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions()
110 O << " case " << FirstInst.CGI->Namespace << "::" in EmitInstructions()
111 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions()
115 for (unsigned i = 0, e = FirstInst.Operands.size(); i != e; ++i) { in EmitInstructions()
118 O << " " << FirstInst.Operands[i].getCode(); in EmitInstructions()
124 OpsToPrint.push_back(std::make_pair(FirstInst.CGI->Namespace + "::" + in EmitInstructions()
125 FirstInst.CGI->TheDef->getName(), in EmitInstructions()
126 FirstInst.Operands[i])); in EmitInstructions()
203 const AsmWriterInst *FirstInst = in FindUniqueOperandCommands() local
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DR600KernelParameters.cpp314 Instruction *FirstInst = Fun->front().begin(); in ConstantRead() local
315 IRBuilder <> Builder (FirstInst); in ConstantRead()
340 FirstInst); in ConstantRead()
344 Arg->getName(), FirstInst); in ConstantRead()
392 Instruction *FirstInst = Fun->front().begin(); in handleSpecial() local
396 "resourceID", FirstInst); in handleSpecial()
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp264 Instruction &FirstInst = (*BBs.begin())->front(); in findConstantInsertionPoint() local
265 return findMatInsertPt(&FirstInst); in findConstantInsertionPoint()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2012 static Instruction *getFirstInst(Instruction *FirstInst, Value *V, in getFirstInst() argument
2014 if (FirstInst) in getFirstInst()
2015 return FirstInst; in getFirstInst()
2031 Instruction *FirstInst = nullptr; in addStrideCheck() local
2039 FirstInst = getFirstInst(FirstInst, C, Loc); in addStrideCheck()
2053 FirstInst = getFirstInst(FirstInst, TheCheck, Loc); in addStrideCheck()
2055 return std::make_pair(FirstInst, TheCheck); in addStrideCheck()