/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 29 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() local 30 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); in FoldPHIArgBinOpIntoPHI() 31 unsigned Opc = FirstInst->getOpcode(); in FoldPHIArgBinOpIntoPHI() 32 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() 33 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() 50 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) in FoldPHIArgBinOpIntoPHI() 67 Value *InLHS = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() 68 Value *InRHS = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() 72 FirstInst->getOperand(0)->getName() + ".pn"); in FoldPHIArgBinOpIntoPHI() 80 FirstInst->getOperand(1)->getName() + ".pn"); in FoldPHIArgBinOpIntoPHI() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 249 Instruction *FirstInst = EntryBlock.getFirstNonPHIOrDbg(); in visitAllocaInst() local 250 if (FirstInst != &AI) { in visitAllocaInst() 254 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 257 AI.moveBefore(FirstInst); in visitAllocaInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 34 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in PHIArgMergedDebugLoc() local 35 Inst->setDebugLoc(FirstInst->getDebugLoc()); in PHIArgMergedDebugLoc() 296 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() local 297 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); in FoldPHIArgBinOpIntoPHI() 298 unsigned Opc = FirstInst->getOpcode(); in FoldPHIArgBinOpIntoPHI() 299 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() 300 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() 317 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) in FoldPHIArgBinOpIntoPHI() 334 Value *InLHS = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() 335 Value *InRHS = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 365 Instruction *FirstInst = EntryBlock.getFirstNonPHIOrDbg(); in visitAllocaInst() local 366 if (FirstInst != &AI) { in visitAllocaInst() 370 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 373 AI.moveBefore(FirstInst); in visitAllocaInst()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 43 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in PHIArgMergedDebugLoc() local 44 Inst->setDebugLoc(FirstInst->getDebugLoc()); in PHIArgMergedDebugLoc() 382 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in foldPHIArgBinOpIntoPHI() local 383 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); in foldPHIArgBinOpIntoPHI() 384 unsigned Opc = FirstInst->getOpcode(); in foldPHIArgBinOpIntoPHI() 385 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() 386 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() 403 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) in foldPHIArgBinOpIntoPHI() 420 Value *InLHS = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() 421 Value *InRHS = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 376 Instruction *FirstInst = EntryBlock.getFirstNonPHIOrDbg(); in visitAllocaInst() local 377 if (FirstInst != &AI) { in visitAllocaInst() 381 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 385 AI.moveBefore(FirstInst); in visitAllocaInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineOutliner.h | 46 MachineBasicBlock::iterator FirstInst; member 106 MachineBasicBlock::iterator &front() { return FirstInst; } in front() 121 MachineBasicBlock::iterator &FirstInst, in Candidate() 124 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MachineOutliner.h | 47 MachineBasicBlock::iterator FirstInst; member 107 MachineBasicBlock::iterator &front() { return FirstInst; } in front() 122 MachineBasicBlock::iterator &FirstInst, in Candidate() 125 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerKernelArgs.cpp | 145 Instruction *FirstInst = &(Func->getEntryBlock().front()); in handleByValParam() local 151 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleByValParam() 160 FirstInst); in handleByValParam() 161 LoadInst *LI = new LoadInst(ArgInParam, Arg->getName(), FirstInst); in handleByValParam() 162 new StoreInst(LI, AllocA, FirstInst); in handleByValParam()
|
/external/llvm-project/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerArgs.cpp | 156 Instruction *FirstInst = &(Func->getEntryBlock().front()); in handleByValParam() local 164 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam() 174 FirstInst); in handleByValParam() 180 /*isVolatile=*/false, AllocA->getAlign(), FirstInst); in handleByValParam() 181 new StoreInst(LI, AllocA, FirstInst); in handleByValParam()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerArgs.cpp | 156 Instruction *FirstInst = &(Func->getEntryBlock().front()); in handleByValParam() local 163 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam() 172 FirstInst); in handleByValParam() 174 new LoadInst(StructType, ArgInParam, Arg->getName(), FirstInst); in handleByValParam() 175 new StoreInst(LI, AllocA, FirstInst); in handleByValParam()
|
/external/llvm/utils/TableGen/ |
D | AsmWriterEmitter.cpp | 84 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions() local 90 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions() 104 O << " case " << FirstInst.CGI->Namespace << "::" in EmitInstructions() 105 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 109 for (unsigned i = 0, e = FirstInst.Operands.size(); i != e; ++i) { in EmitInstructions() 112 O << " " << FirstInst.Operands[i].getCode(PassSubtarget); in EmitInstructions() 119 OpsToPrint.push_back(std::make_pair(FirstInst.CGI->Namespace + "::" + in EmitInstructions() 120 FirstInst.CGI->TheDef->getName(), in EmitInstructions() 121 FirstInst.Operands[i])); in EmitInstructions() 188 const AsmWriterInst &FirstInst = Instructions[Idxs.front()]; in FindUniqueOperandCommands() local [all …]
|
/external/llvm-project/llvm/utils/TableGen/ |
D | AsmWriterEmitter.cpp | 111 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions() local 117 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions() 131 O << " case " << FirstInst.CGI->Namespace << "::" in EmitInstructions() 132 << FirstInst.CGI->TheDef->getName() << ":\n"; in EmitInstructions() 136 for (unsigned i = 0, e = FirstInst.Operands.size(); i != e; ++i) { in EmitInstructions() 139 O << " " << FirstInst.Operands[i].getCode(PassSubtarget); in EmitInstructions() 146 OpsToPrint.push_back(std::make_pair(FirstInst.CGI->Namespace.str() + "::" + in EmitInstructions() 147 FirstInst.CGI->TheDef->getName().str(), in EmitInstructions() 148 FirstInst.Operands[i])); in EmitInstructions() 213 const AsmWriterInst &FirstInst = Instructions[Idxs.front()]; in FindUniqueOperandCommands() local [all …]
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | IRSimilarityIdentifier.h | 449 IRInstructionData *FirstInst = nullptr; variable 530 IRInstructionData *front() const { return FirstInst; } in front() 535 Instruction *frontInstruction() { return FirstInst->Inst; } in frontInstruction() 540 BasicBlock *getStartBB() { return FirstInst->Inst->getParent(); } in getStartBB()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 1673 Instruction *FirstInst = nullptr; in addRuntimeChecks() local 1680 auto GetFirstInst = [](Instruction *FirstInst, Value *V, in addRuntimeChecks() 1682 if (FirstInst) in addRuntimeChecks() 1683 return FirstInst; in addRuntimeChecks() 1717 FirstInst = GetFirstInst(FirstInst, Cmp0, Loc); in addRuntimeChecks() 1719 FirstInst = GetFirstInst(FirstInst, Cmp1, Loc); in addRuntimeChecks() 1721 FirstInst = GetFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 1725 FirstInst = GetFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 1739 FirstInst = GetFirstInst(FirstInst, Check, Loc); in addRuntimeChecks() 1740 return std::make_pair(FirstInst, Check); in addRuntimeChecks()
|
/external/llvm/lib/Analysis/ |
D | LoopAccessAnalysis.cpp | 1759 static Instruction *getFirstInst(Instruction *FirstInst, Value *V, in getFirstInst() argument 1761 if (FirstInst) in getFirstInst() 1762 return FirstInst; in getFirstInst() 1842 Instruction *FirstInst = nullptr; in addRuntimeChecks() local 1867 FirstInst = getFirstInst(FirstInst, Cmp0, Loc); in addRuntimeChecks() 1869 FirstInst = getFirstInst(FirstInst, Cmp1, Loc); in addRuntimeChecks() 1871 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 1875 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 1889 FirstInst = getFirstInst(FirstInst, Check, Loc); in addRuntimeChecks() 1890 return std::make_pair(FirstInst, Check); in addRuntimeChecks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | LoopAccessAnalysis.cpp | 2121 static Instruction *getFirstInst(Instruction *FirstInst, Value *V, in getFirstInst() argument 2123 if (FirstInst) in getFirstInst() 2124 return FirstInst; in getFirstInst() 2215 Instruction *FirstInst = nullptr; in addRuntimeChecks() local 2248 FirstInst = getFirstInst(FirstInst, Cmp0, Loc); in addRuntimeChecks() 2250 FirstInst = getFirstInst(FirstInst, Cmp1, Loc); in addRuntimeChecks() 2252 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 2256 FirstInst = getFirstInst(FirstInst, IsConflict, Loc); in addRuntimeChecks() 2270 FirstInst = getFirstInst(FirstInst, Check, Loc); in addRuntimeChecks() 2271 return std::make_pair(FirstInst, Check); in addRuntimeChecks()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 168 Instruction &FirstInst = (*BBs.begin())->front(); in findConstantInsertionPoint() local 169 return findMatInsertPt(&FirstInst); in findConstantInsertionPoint()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceCfg.cpp | 1545 Inst *FirstInst = nullptr; in validateLiveness() local 1549 if (FirstInst == nullptr) in validateLiveness() 1550 FirstInst = &Instr; in validateLiveness() 1564 if (&Instr != FirstInst && !Instr.isDestRedefined() && in validateLiveness()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 347 Instruction &FirstInst = (*BBs.begin())->front(); in findConstantInsertionPoint() local 348 InsertPts.insert(findMatInsertPt(&FirstInst)); in findConstantInsertionPoint()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 347 Instruction &FirstInst = (*BBs.begin())->front(); in findConstantInsertionPoint() local 348 InsertPts.insert(findMatInsertPt(&FirstInst)); in findConstantInsertionPoint()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | IRSimilarityIdentifier.cpp | 222 FirstInst = FirstInstIt; in IRSimilarityCandidate()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | OpenMPOpt.cpp | 1109 Instruction *FirstInst = &(F->getEntryBlock().front()); in splitTargetDataBeginRTC() local 1111 IRBuilder.AsyncInfo, F->getAddressSpace(), "handle", FirstInst); in splitTargetDataBeginRTC()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPURegisterBankInfo.cpp | 819 MachineInstr &FirstInst = *Range.begin(); in executeInWaterfallLoop() local 826 MachineBasicBlock::iterator NewBegin = FirstInst.getIterator(); in executeInWaterfallLoop()
|