/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86GenDisassemblerTables.inc | 19 "PHI" 46378 0 /* PHI*/ 47320 0 /* PHI*/ 47337 0, /* PHI*/ 47338 0, /* PHI*/ 47339 0, /* PHI*/ 47340 0, /* PHI*/ 47341 0, /* PHI*/ 47342 0, /* PHI*/ 47343 0, /* PHI*/ [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/PhiValues/ |
D | basic.ll | 5 ; CHECK-LABEL: PHI Values for function: simple 17 ; CHECK: PHI %phi1 has values: 21 ; CHECK: PHI %phi2 has values: 28 ; CHECK-LABEL: PHI Values for function: chain 40 ; CHECK: PHI %phi1 has values: 53 ; CHECK: PHI %phi2 has values: 61 ; CHECK-LABEL: PHI Values for function: no_values 67 ; CHECK: PHI %phi has values: 73 ; CHECK-LABEL: PHI Values for function: simple_loop 79 ; CHECK: PHI %phi has values: [all …]
|
D | long_phi_chain.ll | 6 ; CHECK-LABEL: PHI Values for function: fn 12 ; CHECK: PHI %phi1 has values: 24 ; CHECK: PHI %phi2 has values: 33 ; CHECK: PHI %phi3 has values: 42 ; CHECK: PHI %phi4 has values: 51 ; CHECK: PHI %phi5 has values: 60 ; CHECK: PHI %phi6 has values: 66 ; CHECK: PHI %phi7 has values: 78 ; CHECK: PHI %phi8 has values: 87 ; CHECK: PHI %phi9 has values: [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineSSAUpdater.cpp | 186 MachineInstr *InsertedPHI = InsertNewDef(TargetOpcode::PHI, BB, in GetValueInMiddleOfBlock() 250 MachineInstr *PHI; member in __anonc9144f730111::MachinePHIiter 255 : PHI(P), idx(1) {} in MachinePHIiter() 257 : PHI(P), idx(PHI->getNumOperands()) {} in MachinePHIiter() 262 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue() 264 return PHI->getOperand(idx+1).getMBB(); in getIncomingBlock() 284 static inline PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument 285 static inline PHI_iterator PHI_end(PhiT *PHI) { in PHI_end() argument 286 return PHI_iterator(PHI, true); in PHI_end() 315 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc, in CreateEmptyPHI() local [all …]
|
D | StrongPHIElimination.cpp | 305 MachineInstr *PHI = BBI; in runOnMachineFunction() local 307 assert(PHI->getNumOperands() > 0); in runOnMachineFunction() 309 unsigned SrcReg = PHI->getOperand(1).getReg(); in runOnMachineFunction() 318 unsigned DestReg = PHI->getOperand(0).getReg(); in runOnMachineFunction() 322 for (unsigned i = 3; i < PHI->getNumOperands(); i += 2) { in runOnMachineFunction() 323 unsigned SrcReg = PHI->getOperand(i).getReg(); in runOnMachineFunction() 328 LI->RemoveMachineInstrFromMaps(PHI); in runOnMachineFunction() 329 PHI->eraseFromParent(); in runOnMachineFunction() 460 unsigned StrongPHIElimination::getPHIColor(MachineInstr *PHI) { in getPHIColor() argument 461 assert(PHI->isPHI()); in getPHIColor() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineSSAUpdater.cpp | 187 MachineInstrBuilder InsertedPHI = InsertNewDef(TargetOpcode::PHI, BB, in GetValueInMiddleOfBlock() 251 MachineInstr *PHI; member in llvm::SSAUpdaterTraits::PHI_iterator 256 : PHI(P), idx(1) {} in PHI_iterator() 258 : PHI(P), idx(PHI->getNumOperands()) {} in PHI_iterator() 263 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue() 265 return PHI->getOperand(idx+1).getMBB(); in getIncomingBlock() 268 static inline PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument 269 static inline PHI_iterator PHI_end(PhiT *PHI) { in PHI_end() argument 270 return PHI_iterator(PHI, true); in PHI_end() 299 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc, in CreateEmptyPHI() local [all …]
|
D | EarlyIfConversion.cpp | 111 MachineInstr *PHI; member 117 : PHI(phi), TReg(0), FReg(0), CondCycles(0), TCycles(0), FCycles(0) {} in PHIInfo() 413 for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) { in canConvertIf() 414 if (PI.PHI->getOperand(i+1).getMBB() == TPred) in canConvertIf() 415 PI.TReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 416 if (PI.PHI->getOperand(i+1).getMBB() == FPred) in canConvertIf() 417 PI.FReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 425 DEBUG(dbgs() << "Can't convert: " << *PI.PHI); in canConvertIf() 462 DEBUG(dbgs() << "If-converting " << *PI.PHI); in replacePHIInstrs() 463 unsigned DstReg = PI.PHI->getOperand(0).getReg(); in replacePHIInstrs() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | MachineSSAUpdater.cpp | 190 MachineInstrBuilder InsertedPHI = InsertNewDef(TargetOpcode::PHI, BB, in GetValueInMiddleOfBlock() 255 MachineInstr *PHI; member in llvm::SSAUpdaterTraits::PHI_iterator 260 : PHI(P), idx(1) {} in PHI_iterator() 262 : PHI(P), idx(PHI->getNumOperands()) {} in PHI_iterator() 268 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue() 271 return PHI->getOperand(idx+1).getMBB(); in getIncomingBlock() 275 static inline PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument 277 static inline PHI_iterator PHI_end(PhiT *PHI) { in PHI_end() argument 278 return PHI_iterator(PHI, true); in PHI_end() 307 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc, in CreateEmptyPHI() local [all …]
|
D | EarlyIfConversion.cpp | 111 MachineInstr *PHI; member 117 : PHI(phi), TReg(0), FReg(0), CondCycles(0), TCycles(0), FCycles(0) {} in PHIInfo() 414 for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) { in canConvertIf() 415 if (PI.PHI->getOperand(i+1).getMBB() == TPred) in canConvertIf() 416 PI.TReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 417 if (PI.PHI->getOperand(i+1).getMBB() == FPred) in canConvertIf() 418 PI.FReg = PI.PHI->getOperand(i).getReg(); in canConvertIf() 426 LLVM_DEBUG(dbgs() << "Can't convert: " << *PI.PHI); in canConvertIf() 463 LLVM_DEBUG(dbgs() << "If-converting " << *PI.PHI); in replacePHIInstrs() 464 unsigned DstReg = PI.PHI->getOperand(0).getReg(); in replacePHIInstrs() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 65 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI() argument 67 unsigned PHINumValues = PHI->getNumIncomingValues(); in IsEquivalentPHI() 73 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 74 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 221 PHINode *PHI; member in llvm::SSAUpdaterTraits::PHI_iterator 226 : PHI(P), idx(0) {} in PHI_iterator() 228 : PHI(P), idx(PHI->getNumIncomingValues()) {} in PHI_iterator() 233 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() 234 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() 237 static PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 79 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI() argument 81 unsigned PHINumValues = PHI->getNumIncomingValues(); in IsEquivalentPHI() 87 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 88 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 234 PHINode *PHI; member in llvm::SSAUpdaterTraits::PHI_iterator 239 : PHI(P), idx(0) {} in PHI_iterator() 241 : PHI(P), idx(PHI->getNumIncomingValues()) {} in PHI_iterator() 247 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() 248 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() 251 static PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 73 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI() argument 75 unsigned PHINumValues = PHI->getNumIncomingValues(); in IsEquivalentPHI() 81 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 82 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 238 PHINode *PHI; member in __anon53fdc8780111::PHIiter 243 : PHI(P), idx(0) {} in PHIiter() 245 : PHI(P), idx(PHI->getNumIncomingValues()) {} in PHIiter() 250 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() 251 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() 270 static inline PHI_iterator PHI_begin(PhiT *PHI) { return PHI_iterator(PHI); } in PHI_begin() argument [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 325 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater); in FindAvailableVals() local 326 Info->AvailableVal = PHI; in FindAvailableVals() 327 (*AvailableVals)[Info->BB] = PHI; in FindAvailableVals() 345 PhiT *PHI = Traits::ValueIsNewPHI(Info->AvailableVal, Updater); in FindAvailableVals() local 346 if (!PHI) in FindAvailableVals() 356 Traits::AddPHIOperand(PHI, PredInfo->AvailableVal, Pred); in FindAvailableVals() 359 DEBUG(dbgs() << " Inserted PHI: " << *PHI << "\n"); in FindAvailableVals() 362 if (InsertedPHIs) InsertedPHIs->push_back(PHI); in FindAvailableVals() 387 bool CheckIfPHIMatches(PhiT *PHI) { in CheckIfPHIMatches() argument 389 WorkList.push_back(PHI); in CheckIfPHIMatches() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUMachineCFGStructurizer.cpp | 303 static unsigned getPHINumInputs(MachineInstr &PHI) { in getPHINumInputs() argument 304 assert(PHI.isPHI()); in getPHINumInputs() 305 return (PHI.getNumOperands() - 1) / 2; in getPHINumInputs() 308 static MachineBasicBlock *getPHIPred(MachineInstr &PHI, unsigned Index) { in getPHIPred() argument 309 assert(PHI.isPHI()); in getPHIPred() 310 return PHI.getOperand(Index * 2 + 2).getMBB(); in getPHIPred() 313 static void setPhiPred(MachineInstr &PHI, unsigned Index, in setPhiPred() argument 315 PHI.getOperand(Index * 2 + 2).setMBB(NewPred); in setPhiPred() 318 static unsigned getPHISourceReg(MachineInstr &PHI, unsigned Index) { in getPHISourceReg() argument 319 assert(PHI.isPHI()); in getPHISourceReg() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 348 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater); in FindAvailableVals() local 349 Info->AvailableVal = PHI; in FindAvailableVals() 350 (*AvailableVals)[Info->BB] = PHI; in FindAvailableVals() 367 PhiT *PHI = Traits::ValueIsNewPHI(Info->AvailableVal, Updater); in FindAvailableVals() local 368 if (!PHI) in FindAvailableVals() 378 Traits::AddPHIOperand(PHI, PredInfo->AvailableVal, Pred); in FindAvailableVals() 381 LLVM_DEBUG(dbgs() << " Inserted PHI: " << *PHI << "\n"); in FindAvailableVals() 384 if (InsertedPHIs) InsertedPHIs->push_back(PHI); in FindAvailableVals() 405 bool CheckIfPHIMatches(PhiT *PHI) { in CheckIfPHIMatches() argument 407 WorkList.push_back(PHI); in CheckIfPHIMatches() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 336 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater); in FindAvailableVals() local 337 Info->AvailableVal = PHI; in FindAvailableVals() 338 (*AvailableVals)[Info->BB] = PHI; in FindAvailableVals() 356 PhiT *PHI = Traits::ValueIsNewPHI(Info->AvailableVal, Updater); in FindAvailableVals() local 357 if (!PHI) in FindAvailableVals() 367 Traits::AddPHIOperand(PHI, PredInfo->AvailableVal, Pred); in FindAvailableVals() 370 DEBUG(dbgs() << " Inserted PHI: " << *PHI << "\n"); in FindAvailableVals() 373 if (InsertedPHIs) InsertedPHIs->push_back(PHI); in FindAvailableVals() 398 bool CheckIfPHIMatches(PhiT *PHI) { in CheckIfPHIMatches() argument 400 WorkList.push_back(PHI); in CheckIfPHIMatches() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/GlobalISel/ |
D | localizer.mir | 102 ; CHECK: [[PHI:%[0-9]+]]:gpr(s32) = PHI [[C1]](s32), %bb.1 103 ; CHECK: [[ADD1:%[0-9]+]]:gpr(s32) = G_ADD [[PHI]], [[PHI]] 118 %3:gpr(s32) = PHI %0(s32), %bb.1 137 ; CHECK: [[PHI:%[0-9]+]]:gpr(s32) = PHI [[C1]](s32), %bb.1 139 ; CHECK: [[ADD1:%[0-9]+]]:gpr(s32) = G_ADD [[PHI]], [[C2]] 154 %3:gpr(s32) = PHI %0(s32), %bb.1 173 ; CHECK: [[PHI:%[0-9]+]]:gpr(s32) = PHI [[FRAME_INDEX1]](s32), %bb.1 175 ; CHECK: [[ADD1:%[0-9]+]]:gpr(s32) = G_ADD [[PHI]], [[FRAME_INDEX2]] 190 %3:gpr(s32) = PHI %0(s32), %bb.1 209 ; CHECK: [[PHI:%[0-9]+]]:fpr(s32) = PHI [[C1]](s32), %bb.1 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SpeculateAroundPHIs/ |
D | basic-x86.ll | 1 ; Test the basic functionality of speculating around PHI nodes based on reduced 2 ; cost of the constant operands to the PHI nodes using the x86 cost model. 32 ; CHECK-NEXT: %[[PHI:.*]] = phi i32 [ %[[SUM_A]], %a ], [ %[[SUM_B]], %b ] 33 ; CHECK-NEXT: ret i32 %[[PHI]] 60 ; CHECK-NEXT: %[[PHI:.*]] = phi i32 [ %[[SUM_A]], %a ], [ %[[SUM_B]], %b ] 61 ; CHECK-NEXT: ret i32 %[[PHI]] 86 ; CHECK-NEXT: %[[PHI:.*]] = phi i32 [ %[[SUM_ENTRY_SPLIT]], %[[ENTRY_SPLIT]] ], [ %[[SUM_A]], %a… 87 ; CHECK-NEXT: ret i32 %[[PHI]] 115 ; CHECK-NEXT: %[[PHI:.*]] = phi i32 [ %[[SUM_A]], %a ], [ %[[SUM_B]], %b ] 116 ; CHECK-NEXT: ret i32 %[[PHI]] [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | verifier-phi-fail0.mir | 3 # CHECK: Bad machine code: PHI operand is not live-out from predecessor 6 # CHECK: - instruction: %0:gr32 = PHI 9 # CHECK: Bad machine code: PHI operand is not live-out from predecessor 12 # CHECK: - instruction: %0:gr32 = PHI 29 %0:gr32 = PHI %1, %bb.1, %0, %bb.2
|
D | verifier-phi.mir | 5 # CHECK: %0:gr32 = PHI undef %1:gr32, %bb.0, undef %1:gr32, %bb.1 16 %0 : gr32 = PHI undef %1 : gr32, %bb.0, undef %1 : gr32, %bb.1 20 # CHECK: %2:gr32 = PHI %0, %bb.0, %1, %bb.1 33 %2 : gr32 = PHI %0, %bb.0, %1, %bb.1
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | IndirectCallPromotion.cpp | 361 PHINode *PHI = dyn_cast<PHINode>(&I); in getCallRetPHINode() local 362 if (!PHI) in getCallRetPHINode() 364 int IX = PHI->getBasicBlockIndex(From); in getCallRetPHINode() 367 Value *V = PHI->getIncomingValue(IX); in getCallRetPHINode() 385 PHINode *PHI = dyn_cast<PHINode>(&I); in fixupPHINodeForUnwind() local 386 if (!PHI) in fixupPHINodeForUnwind() 388 int IX = PHI->getBasicBlockIndex(OrigBB); in fixupPHINodeForUnwind() 391 Value *V = PHI->getIncomingValue(IX); in fixupPHINodeForUnwind() 392 PHI->addIncoming(V, IndirectCallBB); in fixupPHINodeForUnwind() 393 PHI->setIncomingBlock(IX, DirectCallBB); in fixupPHINodeForUnwind() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | phi-preserve-ir-flags.ll | 20 ; CHECK [[PHI:%[^ ]*]] = phi float [ %b, %cond.true ], [ %c, %cond.false ] 21 ; CHECK fsub fast float %a, [[PHI]] 42 ; CHECK [[PHI:%[^ ]*]] = phi float [ %b, %cond.true ], [ %c, %cond.false ] 43 ; CHECK fsub float %a, [[PHI]] 63 ; CHECK [[PHI:%[^ ]*]] = phi float [ %a, %cond.true ], [ %b, %cond.false ] 64 ; CHECK fadd fast float %a, [[PHI]] 84 ; CHECK [[PHI:%[^ ]*]] = phi float [ %a, %cond.true ], [ %b, %cond.false ] 85 ; CHECK fadd float %a, [[PHI]]
|
/external/llvm/test/Transforms/InstCombine/ |
D | phi-preserve-ir-flags.ll | 20 ; CHECK [[PHI:%[^ ]*]] = phi float [ %b, %cond.true ], [ %c, %cond.false ] 21 ; CHECK fsub fast float %a, [[PHI]] 42 ; CHECK [[PHI:%[^ ]*]] = phi float [ %b, %cond.true ], [ %c, %cond.false ] 43 ; CHECK fsub float %a, [[PHI]] 63 ; CHECK [[PHI:%[^ ]*]] = phi float [ %a, %cond.true ], [ %b, %cond.false ] 64 ; CHECK fadd fast float %a, [[PHI]] 84 ; CHECK [[PHI:%[^ ]*]] = phi float [ %a, %cond.true ], [ %b, %cond.false ] 85 ; CHECK fadd float %a, [[PHI]]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopInterchange.cpp | 710 for (PHINode &PHI : L->getHeader()->phis()) { in findInductionAndReductions() 713 if (InductionDescriptor::isInductionPHI(&PHI, L, SE, ID)) in findInductionAndReductions() 714 Inductions.push_back(&PHI); in findInductionAndReductions() 715 else if (RecurrenceDescriptor::isReductionPHI(&PHI, L, RD)) in findInductionAndReductions() 716 Reductions.push_back(&PHI); in findInductionAndReductions() 727 for (PHINode &PHI : Block->phis()) { in containsSafePHI() 729 if (PHI.getNumIncomingValues() > 1) in containsSafePHI() 731 Instruction *Ins = dyn_cast<Instruction>(PHI.getIncomingValue(0)); in containsSafePHI() 956 for (PHINode &PHI : LoopNestExit->phis()) { in areLoopExitPHIsSupported() 960 if (PHI.getType()->isFloatingPointTy()) in areLoopExitPHIsSupported() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | peephole-phi.mir | 22 # CHECK: %5:gpr = PHI %1, %bb.1, %4, %bb.2 41 %5:gpr = PHI %1, %bb.1, %4, %bb.2 46 # CHECK: %6:spr = PHI %0, %bb.1, %2, %bb.2 65 %4:gpr = PHI %0, %bb.1, %2, %bb.2 84 # CHECK: %4:gpr = PHI %0, %bb.1, %2, %bb.2 101 %4:gpr = PHI %0, %bb.1, %2, %bb.2
|