|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/lib/Target/AArch64/AArch64GenDAGISel.inc115495 return SelectArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115495 return SelectArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115498 return SelectArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115498 return SelectArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115501 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115501 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115504 return SelectNegArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115504 return SelectNegArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115507 return SelectArithShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115507 return SelectArithShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115510 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115510 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115513 return SelectNegArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115513 return SelectNegArithImmed(N, Result[NextRes+0].first, Result[NextRes+1].first);
115516 return SelectArithShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115516 return SelectArithShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115519 return SelectAddrModeWRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115519 return SelectAddrModeWRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115519 return SelectAddrModeWRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115519 return SelectAddrModeWRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115522 return SelectAddrModeXRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115522 return SelectAddrModeXRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115522 return SelectAddrModeXRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115522 return SelectAddrModeXRO<16>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115525 return SelectAddrModeIndexed16(N, Result[NextRes+0].first, Result[NextRes+1].first);
115525 return SelectAddrModeIndexed16(N, Result[NextRes+0].first, Result[NextRes+1].first);
115528 return SelectAddrModeUnscaled128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115528 return SelectAddrModeUnscaled128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115531 return SelectAddrModeWRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115531 return SelectAddrModeWRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115531 return SelectAddrModeWRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115531 return SelectAddrModeWRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115534 return SelectAddrModeXRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115534 return SelectAddrModeXRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115534 return SelectAddrModeXRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115534 return SelectAddrModeXRO<32>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115537 return SelectAddrModeIndexed32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115537 return SelectAddrModeIndexed32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115540 return SelectAddrModeWRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115540 return SelectAddrModeWRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115540 return SelectAddrModeWRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115540 return SelectAddrModeWRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115543 return SelectAddrModeXRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115543 return SelectAddrModeXRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115543 return SelectAddrModeXRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115543 return SelectAddrModeXRO<64>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115546 return SelectAddrModeIndexed64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115546 return SelectAddrModeIndexed64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115549 return SelectAddrModeWRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115549 return SelectAddrModeWRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115549 return SelectAddrModeWRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115549 return SelectAddrModeWRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115552 return SelectAddrModeXRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115552 return SelectAddrModeXRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115552 return SelectAddrModeXRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115552 return SelectAddrModeXRO<8>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115555 return SelectAddrModeIndexed8(N, Result[NextRes+0].first, Result[NextRes+1].first);
115555 return SelectAddrModeIndexed8(N, Result[NextRes+0].first, Result[NextRes+1].first);
115558 return SelectAddrModeIndexed7S32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115558 return SelectAddrModeIndexed7S32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115561 return SelectAddrModeWRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115561 return SelectAddrModeWRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115561 return SelectAddrModeWRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115561 return SelectAddrModeWRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115564 return SelectAddrModeXRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115564 return SelectAddrModeXRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115564 return SelectAddrModeXRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115564 return SelectAddrModeXRO<128>(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
115567 return SelectAddrModeIndexed128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115567 return SelectAddrModeIndexed128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115570 return SelectAddrModeUnscaled64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115570 return SelectAddrModeUnscaled64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115573 return SelectAddrModeIndexed7S64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115573 return SelectAddrModeIndexed7S64(N, Result[NextRes+0].first, Result[NextRes+1].first);
115576 return SelectAddrModeUnscaled32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115576 return SelectAddrModeUnscaled32(N, Result[NextRes+0].first, Result[NextRes+1].first);
115579 return SelectAddrModeUnscaled16(N, Result[NextRes+0].first, Result[NextRes+1].first);
115579 return SelectAddrModeUnscaled16(N, Result[NextRes+0].first, Result[NextRes+1].first);
115582 return SelectAddrModeUnscaled8(N, Result[NextRes+0].first, Result[NextRes+1].first);
115582 return SelectAddrModeUnscaled8(N, Result[NextRes+0].first, Result[NextRes+1].first);
115585 return SelectAddrModeIndexedU6S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115585 return SelectAddrModeIndexedU6S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115588 return SelectCVTFixedPosOperand<32>(N, Result[NextRes+0].first);
115591 return SelectCVTFixedPosOperand<64>(N, Result[NextRes+0].first);
115594 return SelectCVTFixedPosOperand<32>(N, Result[NextRes+0].first);
115597 return SelectCVTFixedPosOperand<64>(N, Result[NextRes+0].first);
115600 return SelectCVTFixedPosOperand<32>(N, Result[NextRes+0].first);
115603 return SelectCVTFixedPosOperand<64>(N, Result[NextRes+0].first);
115606 return SelectLogicalShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115606 return SelectLogicalShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115609 return SelectLogicalShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115609 return SelectLogicalShiftedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115612 return SelectAddrModeIndexedS9S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115612 return SelectAddrModeIndexedS9S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115615 return SelectAddrModeIndexed7S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115615 return SelectAddrModeIndexed7S128(N, Result[NextRes+0].first, Result[NextRes+1].first);
115618 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
115618 return SelectArithExtendedRegister(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc79673 return SelectVOP3PMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79673 return SelectVOP3PMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79673 return SelectVOP3PMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79676 return SelectVOP3PMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79676 return SelectVOP3PMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79679 return SelectSMRDImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
79679 return SelectSMRDImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
79682 return SelectSMRDImm32(N, Result[NextRes+0].first, Result[NextRes+1].first);
79682 return SelectSMRDImm32(N, Result[NextRes+0].first, Result[NextRes+1].first);
79685 return SelectSMRDSgpr(N, Result[NextRes+0].first, Result[NextRes+1].first);
79685 return SelectSMRDSgpr(N, Result[NextRes+0].first, Result[NextRes+1].first);
79688 return SelectDS1Addr1Offset(N, Result[NextRes+0].first, Result[NextRes+1].first);
79688 return SelectDS1Addr1Offset(N, Result[NextRes+0].first, Result[NextRes+1].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79691 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first, Result[NextRes+8].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79694 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first, Result[NextRes+6].first, Result[NextRes+7].first);
79697 return SelectMUBUFScratchOffset(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79697 return SelectMUBUFScratchOffset(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79697 return SelectMUBUFScratchOffset(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79700 return SelectMUBUFScratchOffen(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79700 return SelectMUBUFScratchOffen(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79700 return SelectMUBUFScratchOffen(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79700 return SelectMUBUFScratchOffen(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79703 return SelectFlatOffset<true>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79703 return SelectFlatOffset<true>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79703 return SelectFlatOffset<true>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79706 return SelectFlatOffset<false>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79706 return SelectFlatOffset<false>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79706 return SelectFlatOffset<false>(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79709 return SelectDS64Bit4ByteAligned(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79709 return SelectDS64Bit4ByteAligned(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79709 return SelectDS64Bit4ByteAligned(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79712 return SelectSMRDBufferImm(N, Result[NextRes+0].first);
79715 return SelectSMRDBufferImm32(N, Result[NextRes+0].first);
79718 return SelectVOP3Mods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79718 return SelectVOP3Mods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79718 return SelectVOP3Mods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79718 return SelectVOP3Mods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79721 return SelectVOP3Mods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79721 return SelectVOP3Mods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79724 return SelectVOP3Mods0Clamp0OMod(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79724 return SelectVOP3Mods0Clamp0OMod(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79724 return SelectVOP3Mods0Clamp0OMod(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79724 return SelectVOP3Mods0Clamp0OMod(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79727 return SelectVOP3OpSelMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79727 return SelectVOP3OpSelMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79727 return SelectVOP3OpSelMods0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79730 return SelectVOP3OpSelMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79730 return SelectVOP3OpSelMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79733 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79733 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79733 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79736 return SelectFlatAtomic(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79736 return SelectFlatAtomic(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79736 return SelectFlatAtomic(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79739 return SelectFlatAtomicSigned(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79739 return SelectFlatAtomicSigned(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79739 return SelectFlatAtomicSigned(Root, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79742 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
79742 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
79742 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
79742 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
79742 return SelectMUBUFAddr64(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
79745 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79745 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79745 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79745 return SelectMUBUFOffset(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first);
79748 return SelectVOP3Mods_f32(N, Result[NextRes+0].first, Result[NextRes+1].first);
79748 return SelectVOP3Mods_f32(N, Result[NextRes+0].first, Result[NextRes+1].first);
79751 return SelectMOVRELOffset(N, Result[NextRes+0].first, Result[NextRes+1].first);
79751 return SelectMOVRELOffset(N, Result[NextRes+0].first, Result[NextRes+1].first);
79754 return SelectVOP3OpSel0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79754 return SelectVOP3OpSel0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79754 return SelectVOP3OpSel0(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79757 return SelectVOP3OpSel(N, Result[NextRes+0].first, Result[NextRes+1].first);
79757 return SelectVOP3OpSel(N, Result[NextRes+0].first, Result[NextRes+1].first);
79760 return SelectVOP3Mods_NNaN(N, Result[NextRes+0].first, Result[NextRes+1].first);
79760 return SelectVOP3Mods_NNaN(N, Result[NextRes+0].first, Result[NextRes+1].first);
79763 return SelectVOP3NoMods(N, Result[NextRes+0].first);
79766 return SelectVOP3PMadMixMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79766 return SelectVOP3PMadMixMods(N, Result[NextRes+0].first, Result[NextRes+1].first);
79769 return SelectVOP3OMods(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79769 return SelectVOP3OMods(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
79769 return SelectVOP3OMods(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
gen/lib/Target/AMDGPU/R600GenDAGISel.inc12594 return SelectADDRIndirect(N, Result[NextRes+0].first, Result[NextRes+1].first);
12594 return SelectADDRIndirect(N, Result[NextRes+0].first, Result[NextRes+1].first);
12597 return SelectADDRVTX_READ(N, Result[NextRes+0].first, Result[NextRes+1].first);
12597 return SelectADDRVTX_READ(N, Result[NextRes+0].first, Result[NextRes+1].first);
12600 return SelectGlobalValueConstantOffset(N, Result[NextRes+0].first);
12603 return SelectGlobalValueVariableOffset(N, Result[NextRes+0].first, Result[NextRes+1].first);
12603 return SelectGlobalValueVariableOffset(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/ARC/ARCGenDAGISel.inc 1230 return SelectAddrModeFar(N, Result[NextRes+0].first, Result[NextRes+1].first);
1230 return SelectAddrModeFar(N, Result[NextRes+0].first, Result[NextRes+1].first);
1233 return SelectAddrModeS9(N, Result[NextRes+0].first, Result[NextRes+1].first);
1233 return SelectAddrModeS9(N, Result[NextRes+0].first, Result[NextRes+1].first);
1236 return SelectAddrModeImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
1236 return SelectAddrModeImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
1239 return SelectCMOVPred(N, Result[NextRes+0].first, Result[NextRes+1].first);
1239 return SelectCMOVPred(N, Result[NextRes+0].first, Result[NextRes+1].first);
1242 return SelectFrameADDR_ri(N, Result[NextRes+0].first, Result[NextRes+1].first);
1242 return SelectFrameADDR_ri(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/ARM/ARMGenDAGISel.inc54880 return SelectShiftImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54880 return SelectShiftImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54883 return SelectRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54883 return SelectRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54883 return SelectRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54886 return SelectAddLikeOr(Parent, N, Result[NextRes+0].first);
54889 return SelectImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54889 return SelectImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54892 return SelectAddrOffsetNone(N, Result[NextRes+0].first);
54895 return SelectAddrMode3(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54895 return SelectAddrMode3(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54895 return SelectAddrMode3(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54898 return SelectThumbAddrModeImm5S2(N, Result[NextRes+0].first, Result[NextRes+1].first);
54898 return SelectThumbAddrModeImm5S2(N, Result[NextRes+0].first, Result[NextRes+1].first);
54901 return SelectThumbAddrModeRR(N, Result[NextRes+0].first, Result[NextRes+1].first);
54901 return SelectThumbAddrModeRR(N, Result[NextRes+0].first, Result[NextRes+1].first);
54904 return SelectShiftRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54904 return SelectShiftRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54904 return SelectShiftRegShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54907 return SelectShiftImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54907 return SelectShiftImmShifterOperand(N, Result[NextRes+0].first, Result[NextRes+1].first);
54910 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
54910 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
54913 return SelectAddrMode6Offset(Root, N, Result[NextRes+0].first);
54916 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
54916 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
54919 return SelectAddrModePC(N, Result[NextRes+0].first, Result[NextRes+1].first);
54919 return SelectAddrModePC(N, Result[NextRes+0].first, Result[NextRes+1].first);
54922 return SelectAddrMode2OffsetReg(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54922 return SelectAddrMode2OffsetReg(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54925 return SelectAddrMode2OffsetImm(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54925 return SelectAddrMode2OffsetImm(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54928 return SelectAddrMode3Offset(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54928 return SelectAddrMode3Offset(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
54931 return SelectLdStSOReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54931 return SelectLdStSOReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54931 return SelectLdStSOReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54934 return SelectT2AddrModeSoReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54934 return SelectT2AddrModeSoReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54934 return SelectT2AddrModeSoReg(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
54937 return SelectT2AddrModeImm8Offset(Root, N, Result[NextRes+0].first);
54940 return SelectAddrMode5(N, Result[NextRes+0].first, Result[NextRes+1].first);
54940 return SelectAddrMode5(N, Result[NextRes+0].first, Result[NextRes+1].first);
54943 return SelectAddrModeImm12(N, Result[NextRes+0].first, Result[NextRes+1].first);
54943 return SelectAddrModeImm12(N, Result[NextRes+0].first, Result[NextRes+1].first);
54946 return SelectThumbAddrModeSP(N, Result[NextRes+0].first, Result[NextRes+1].first);
54946 return SelectThumbAddrModeSP(N, Result[NextRes+0].first, Result[NextRes+1].first);
54949 return SelectThumbAddrModeImm5S4(N, Result[NextRes+0].first, Result[NextRes+1].first);
54949 return SelectThumbAddrModeImm5S4(N, Result[NextRes+0].first, Result[NextRes+1].first);
54952 return SelectThumbAddrModeImm5S1(N, Result[NextRes+0].first, Result[NextRes+1].first);
54952 return SelectThumbAddrModeImm5S1(N, Result[NextRes+0].first, Result[NextRes+1].first);
54955 return SelectT2AddrModeImm12(N, Result[NextRes+0].first, Result[NextRes+1].first);
54955 return SelectT2AddrModeImm12(N, Result[NextRes+0].first, Result[NextRes+1].first);
54958 return SelectT2AddrModeImm8(N, Result[NextRes+0].first, Result[NextRes+1].first);
54958 return SelectT2AddrModeImm8(N, Result[NextRes+0].first, Result[NextRes+1].first);
54961 return SelectAddrMode5FP16(N, Result[NextRes+0].first, Result[NextRes+1].first);
54961 return SelectAddrMode5FP16(N, Result[NextRes+0].first, Result[NextRes+1].first);
54964 return SelectT2AddrModeImm7<0>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54964 return SelectT2AddrModeImm7<0>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54967 return SelectT2AddrModeImm7<1>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54967 return SelectT2AddrModeImm7<1>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54970 return SelectT2AddrModeImm7<2>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54970 return SelectT2AddrModeImm7<2>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54973 return SelectT2AddrModeImm7Offset<0>(Root, N, Result[NextRes+0].first);
54976 return SelectT2AddrModeImm7Offset<1>(Root, N, Result[NextRes+0].first);
54979 return SelectT2AddrModeImm7Offset<2>(Root, N, Result[NextRes+0].first);
54982 return SelectTAddrModeImm7<0>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54982 return SelectTAddrModeImm7<0>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54985 return SelectTAddrModeImm7<1>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54985 return SelectTAddrModeImm7<1>(N, Result[NextRes+0].first, Result[NextRes+1].first);
54988 return SelectCMOVPred(N, Result[NextRes+0].first, Result[NextRes+1].first);
54988 return SelectCMOVPred(N, Result[NextRes+0].first, Result[NextRes+1].first);
54991 return SelectThumbAddrModeRRSext(N, Result[NextRes+0].first, Result[NextRes+1].first);
54991 return SelectThumbAddrModeRRSext(N, Result[NextRes+0].first, Result[NextRes+1].first);
54994 return SelectT2AddrModeExclusive(N, Result[NextRes+0].first, Result[NextRes+1].first);
54994 return SelectT2AddrModeExclusive(N, Result[NextRes+0].first, Result[NextRes+1].first);
54997 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
54997 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55000 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55000 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55003 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55003 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55006 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
55006 return SelectAddrMode6(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/AVR/AVRGenDAGISel.inc 1735 return SelectAddr(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
1735 return SelectAddr(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/BPF/BPFGenDAGISel.inc 2115 return SelectAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
2115 return SelectAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
2118 return SelectFIAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
2118 return SelectFIAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/Hexagon/HexagonGenDAGISel.inc72912 return SelectAddrFI(N, Result[NextRes+0].first);
72915 return SelectAddrGP(N, Result[NextRes+0].first);
72918 return SelectAnyImm3(N, Result[NextRes+0].first);
72921 return SelectAnyImm0(N, Result[NextRes+0].first);
72924 return SelectAnyImm1(N, Result[NextRes+0].first);
72927 return SelectAnyImm2(N, Result[NextRes+0].first);
72930 return SelectAnyImm(N, Result[NextRes+0].first);
72933 return SelectAnyInt(N, Result[NextRes+0].first);
72936 return DetectUseSxtw(N, Result[NextRes+0].first);
gen/lib/Target/Lanai/LanaiGenDAGISel.inc 1523 return selectAddrRi(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1523 return selectAddrRi(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1523 return selectAddrRi(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1526 return selectAddrRr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1526 return selectAddrRr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1526 return selectAddrRr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1529 return selectAddrSpls(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1529 return selectAddrSpls(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1529 return selectAddrSpls(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
1532 return selectAddrSls(N, Result[NextRes+0].first);
gen/lib/Target/MSP430/MSP430GenDAGISel.inc 4896 return SelectAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
4896 return SelectAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/Mips/MipsGenDAGISel.inc30490 return selectAddrRegImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
30490 return selectAddrRegImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
30493 return selectIntAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
30493 return selectIntAddr(N, Result[NextRes+0].first, Result[NextRes+1].first);
30496 return selectAddrDefault(N, Result[NextRes+0].first, Result[NextRes+1].first);
30496 return selectAddrDefault(N, Result[NextRes+0].first, Result[NextRes+1].first);
30499 return selectAddr16(N, Result[NextRes+0].first, Result[NextRes+1].first);
30499 return selectAddr16(N, Result[NextRes+0].first, Result[NextRes+1].first);
30502 return selectAddr16SP(N, Result[NextRes+0].first, Result[NextRes+1].first);
30502 return selectAddr16SP(N, Result[NextRes+0].first, Result[NextRes+1].first);
30505 return selectIntAddrLSL2MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30505 return selectIntAddrLSL2MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30508 return selectIntAddr11MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30508 return selectIntAddr11MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30511 return selectIntAddr16MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30511 return selectIntAddr16MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30514 return selectIntAddrSImm10(N, Result[NextRes+0].first, Result[NextRes+1].first);
30514 return selectIntAddrSImm10(N, Result[NextRes+0].first, Result[NextRes+1].first);
30517 return selectIntAddrSImm10Lsl1(N, Result[NextRes+0].first, Result[NextRes+1].first);
30517 return selectIntAddrSImm10Lsl1(N, Result[NextRes+0].first, Result[NextRes+1].first);
30520 return selectIntAddrSImm10Lsl2(N, Result[NextRes+0].first, Result[NextRes+1].first);
30520 return selectIntAddrSImm10Lsl2(N, Result[NextRes+0].first, Result[NextRes+1].first);
30523 return selectIntAddrSImm10Lsl3(N, Result[NextRes+0].first, Result[NextRes+1].first);
30523 return selectIntAddrSImm10Lsl3(N, Result[NextRes+0].first, Result[NextRes+1].first);
30526 return selectIntAddr12MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30526 return selectIntAddr12MM(N, Result[NextRes+0].first, Result[NextRes+1].first);
30529 return selectVSplatUimmPow2(N, Result[NextRes+0].first);
30532 return selectVSplatUimm8(N, Result[NextRes+0].first);
30535 return selectVSplatUimmInvPow2(N, Result[NextRes+0].first);
30538 return selectVSplatUimm5(N, Result[NextRes+0].first);
30541 return selectVSplatUimm5(N, Result[NextRes+0].first);
30544 return selectVSplatUimm5(N, Result[NextRes+0].first);
30547 return selectVSplatUimm5(N, Result[NextRes+0].first);
30550 return selectVSplatSimm5(N, Result[NextRes+0].first);
30553 return selectVSplatSimm5(N, Result[NextRes+0].first);
30556 return selectVSplatSimm5(N, Result[NextRes+0].first);
30559 return selectVSplatSimm5(N, Result[NextRes+0].first);
30562 return selectVSplatUimm3(N, Result[NextRes+0].first);
30565 return selectVSplatUimm4(N, Result[NextRes+0].first);
30568 return selectVSplatUimm6(N, Result[NextRes+0].first);
30571 return selectVSplatUimm4(N, Result[NextRes+0].first);
30574 return selectVSplatUimm3(N, Result[NextRes+0].first);
30577 return selectVSplatUimm2(N, Result[NextRes+0].first);
30580 return selectVSplatUimm1(N, Result[NextRes+0].first);
30583 return selectVSplatMaskL(N, Result[NextRes+0].first);
30586 return selectVSplatMaskL(N, Result[NextRes+0].first);
30589 return selectVSplatMaskL(N, Result[NextRes+0].first);
30592 return selectVSplatMaskL(N, Result[NextRes+0].first);
30595 return selectVSplatMaskR(N, Result[NextRes+0].first);
30598 return selectVSplatMaskR(N, Result[NextRes+0].first);
30601 return selectVSplatMaskR(N, Result[NextRes+0].first);
30604 return selectVSplatMaskR(N, Result[NextRes+0].first);
gen/lib/Target/NVPTX/NVPTXGenDAGISel.inc72330 return SelectADDRri(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
72330 return SelectADDRri(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
72333 return SelectADDRri64(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
72333 return SelectADDRri64(Root, N, Result[NextRes+0].first, Result[NextRes+1].first);
72336 return SelectDirectAddr(N, Result[NextRes+0].first);
gen/lib/Target/PowerPC/PPCGenDAGISel.inc44838 return SelectAddrIdxOnly(N, Result[NextRes+0].first, Result[NextRes+1].first);
44838 return SelectAddrIdxOnly(N, Result[NextRes+0].first, Result[NextRes+1].first);
44841 return SelectAddrImmX4(N, Result[NextRes+0].first, Result[NextRes+1].first);
44841 return SelectAddrImmX4(N, Result[NextRes+0].first, Result[NextRes+1].first);
44844 return SelectAddrIdxX4(N, Result[NextRes+0].first, Result[NextRes+1].first);
44844 return SelectAddrIdxX4(N, Result[NextRes+0].first, Result[NextRes+1].first);
44847 return SelectAddrIdxX16(N, Result[NextRes+0].first, Result[NextRes+1].first);
44847 return SelectAddrIdxX16(N, Result[NextRes+0].first, Result[NextRes+1].first);
44850 return SelectAddrImmX16(N, Result[NextRes+0].first, Result[NextRes+1].first);
44850 return SelectAddrImmX16(N, Result[NextRes+0].first, Result[NextRes+1].first);
44853 return SelectAddrImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
44853 return SelectAddrImm(N, Result[NextRes+0].first, Result[NextRes+1].first);
44856 return SelectAddrIdx(N, Result[NextRes+0].first, Result[NextRes+1].first);
44856 return SelectAddrIdx(N, Result[NextRes+0].first, Result[NextRes+1].first);
44859 return SelectAddrImmOffs(N, Result[NextRes+0].first);
44862 return SelectAddr(N, Result[NextRes+0].first);
gen/lib/Target/RISCV/RISCVGenDAGISel.inc14170 return SelectAddrFI(N, Result[NextRes+0].first);
gen/lib/Target/Sparc/SparcGenDAGISel.inc 3613 return SelectADDRrr(N, Result[NextRes+0].first, Result[NextRes+1].first);
3613 return SelectADDRrr(N, Result[NextRes+0].first, Result[NextRes+1].first);
3616 return SelectADDRri(N, Result[NextRes+0].first, Result[NextRes+1].first);
3616 return SelectADDRri(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/SystemZ/SystemZGenDAGISel.inc30446 return selectBDXAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30446 return selectBDXAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30446 return selectBDXAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30449 return selectBDAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30449 return selectBDAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30452 return selectBDAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30452 return selectBDAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30455 return selectBDAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30455 return selectBDAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30458 return selectBDAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30458 return selectBDAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30461 return selectBDXAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30461 return selectBDXAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30461 return selectBDXAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30464 return selectPCRelAddress(N, Result[NextRes+0].first);
30467 return selectMVIAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30467 return selectMVIAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30470 return selectBDXAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30470 return selectBDXAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30470 return selectBDXAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30473 return selectBDXAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30473 return selectBDXAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30473 return selectBDXAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30476 return selectBDXAddr20Only128(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30476 return selectBDXAddr20Only128(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30476 return selectBDXAddr20Only128(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30479 return selectMVIAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30479 return selectMVIAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first);
30482 return selectDynAlloc12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30482 return selectDynAlloc12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30482 return selectDynAlloc12Only(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30485 return selectLAAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30485 return selectLAAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30485 return selectLAAddr12Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30488 return selectLAAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30488 return selectLAAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30488 return selectLAAddr20Pair(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first);
30491 return selectBDAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30491 return selectBDAddr12Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30494 return selectBDAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
30494 return selectBDAddr20Only(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/lib/Target/X86/X86GenDAGISel.inc254678 return selectAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254678 return selectAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254678 return selectAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254678 return selectAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254678 return selectAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254681 return selectRelocImm(N, Result[NextRes+0].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254684 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254687 return selectScalarSSELoad(Root, Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first, Result[NextRes+5].first);
254690 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254690 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254690 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254690 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254690 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254693 return selectLEA64_32Addr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254693 return selectLEA64_32Addr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254693 return selectLEA64_32Addr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254693 return selectLEA64_32Addr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254693 return selectLEA64_32Addr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254696 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254696 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254696 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254696 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254696 return selectLEAAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254699 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254699 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254699 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254699 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254699 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254702 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254702 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254702 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254702 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254702 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254705 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254705 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254705 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254705 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254705 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254708 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254708 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254708 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254708 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254708 return selectTLSADDRAddr(N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254711 return selectMOV64Imm32(N, Result[NextRes+0].first);
254714 return selectVectorAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254714 return selectVectorAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254714 return selectVectorAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254714 return selectVectorAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
254714 return selectVectorAddr(Parent, N, Result[NextRes+0].first, Result[NextRes+1].first, Result[NextRes+2].first, Result[NextRes+3].first, Result[NextRes+4].first);
gen/lib/Target/XCore/XCoreGenDAGISel.inc 2457 return SelectADDRspii(N, Result[NextRes+0].first, Result[NextRes+1].first);
2457 return SelectADDRspii(N, Result[NextRes+0].first, Result[NextRes+1].first);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 91 tags.push_back(tagsStorage[i]);
1326 sanitizers.push_back(sanitizersStorage[i]);
1490 implVendors.push_back(implVendorsStorage[i]);
2198 diagnosticIdentifiers.push_back(diagnosticIdentifiersStorage[i]);
gen/tools/clang/lib/Sema/OpenCLBuiltins.inc16876 QT[I] = Context.getExtVectorType(QT[I],
16876 QT[I] = Context.getExtVectorType(QT[I],
16885 QT[Index] = Context.getExtVectorType(QT[Index], Ty.VectorWidth);
16885 QT[Index] = Context.getExtVectorType(QT[Index], Ty.VectorWidth);
16891 QT[Index] = Context.getVolatileType(QT[Index]);
16891 QT[Index] = Context.getVolatileType(QT[Index]);
16897 QT[Index] = Context.getConstType(QT[Index]);
16897 QT[Index] = Context.getConstType(QT[Index]);
16906 QT[Index] = Context.getAddrSpaceQualType(QT[Index], Ty.AS);
16906 QT[Index] = Context.getAddrSpaceQualType(QT[Index], Ty.AS);
16907 QT[Index] = Context.getPointerType(QT[Index]);
16907 QT[Index] = Context.getPointerType(QT[Index]);
include/llvm/ADT/IndexedMap.h 47 return storage_[toIndex_(n)];
include/llvm/ADT/IntervalMap.h 799 unsigned &offset(unsigned Level) { return path[Level].offset; }
828 path[Level] = Entry(subtree(Level - 1), offset(Level));
848 path[Level].size = Size;
920 ++path[Level].offset;
1259 for (unsigned j = 0, s = Refs[i].size(); j != s; ++j)
1260 NextRefs.push_back(Refs[i].subtree(j));
1261 (this->*f)(Refs[i], h);
1269 (this->*f)(Refs[i], 0);
include/llvm/ADT/MapVector.h 106 return Vector[I].second;
include/llvm/ADT/PriorityWorklist.h 101 assert(V[Index] == X && "Value not actually at index in map!");
104 V[Index] = T();
125 auto InsertResult = M.insert({V[i], i});
133 V[Index] = T();
140 V[i] = T();
168 assert(V[I->second] == X && "Value not actually at index in map!");
174 V[I->second] = T();
include/llvm/ADT/SmallVector.h 687 std::swap((*this)[i], RHS[i]);
687 std::swap((*this)[i], RHS[i]);
include/llvm/ADT/SparseMultiSet.h 167 unsigned NextFree = Dense[Idx].Next;
168 assert(Dense[Idx].isTombstone() && "Non-tombstone free?");
170 Dense[Idx] = SMSNode(V, Prev, Next);
178 Dense[Idx].Prev = SMSNode::INVALID;
179 Dense[Idx].Next = FreelistIdx;
243 unsigned Prev() const { return SMS->Dense[Idx].Prev; }
244 unsigned Next() const { return SMS->Dense[Idx].Next; }
246 void setPrev(unsigned P) { SMS->Dense[Idx].Prev = P; }
257 assert(isKeyed() && SMS->sparseIndex(SMS->Dense[Idx].Data) == SparseIdx &&
260 return SMS->Dense[Idx].Data;
283 assert((isEnd() || !SMS->isHead(SMS->Dense[Idx])) &&
358 const unsigned FoundIdx = sparseIndex(Dense[i]);
361 if (Idx == FoundIdx && Dense[i].isValid() && isHead(Dense[i]))
361 if (Idx == FoundIdx && Dense[i].isValid() && isHead(Dense[i]))
428 Dense[NodeIdx].Prev = NodeIdx;
435 Dense[TailIdx].Next = NodeIdx;
436 Dense[HeadIdx].Prev = NodeIdx;
437 Dense[NodeIdx].Prev = TailIdx;
467 assert(I.isKeyed() && !I.isEnd() && !Dense[I.Idx].isTombstone() &&
472 iterator NextI = unlink(Dense[I.Idx]);
499 Dense[N.Next].Prev = N.Prev;
506 Dense[N.Prev].Next = N.Next;
514 Dense[N.Next].Prev = N.Prev;
515 Dense[N.Prev].Next = N.Next;
include/llvm/ADT/SparseSet.h 208 const unsigned FoundIdx = ValIndexOf(Dense[i]);
include/llvm/ADT/TinyPtrVector.h 227 return (*Val.template get<VecTy*>())[i];
include/llvm/Analysis/BlockFrequencyInfoImpl.h 1166 auto &HeaderNode = Loop.Nodes[H];
1168 IsIrrLoopHeader.set(Loop.Nodes[H].Index);
1196 auto &HeaderNode = Loop.Nodes[H];
include/llvm/Analysis/DominanceFrontier.h 136 calculate(DT, DT[this->Roots[0]]);
include/llvm/Analysis/LazyCallGraph.h 261 Edge &operator[](int i) { return Edges[i]; }
264 auto &E = Edges[EdgeIndexMap.find(&N)->second];
273 auto &E = Edges[EI->second];
624 SCC &operator[](int Idx) { return *SCCs[Idx]; }
911 return G.PostOrderRefSCCs[Index];
1205 assert(PostOrderRefSCCs[IndexIt->second] == &RC &&
include/llvm/Analysis/LoopAccessAnalysis.h 390 : RtCheck(RtCheck), High(RtCheck.Pointers[Index].End),
391 Low(RtCheck.Pointers[Index].Start) {
include/llvm/Analysis/LoopInfoImpl.h 54 return ExitingBlocks[0];
80 return ExitBlocks[0];
135 return UniqueExitBlocks[0];
327 assert(CB != OutsideLoopPreds[i] &&
include/llvm/Analysis/LoopPass.h 119 LoopPass *LP = static_cast<LoopPass *>(PassVector[N]);
include/llvm/Analysis/RegionPass.h 119 Pass *FP = static_cast<Pass *>(PassVector[N]);
include/llvm/Analysis/SparsePropagation.h 295 Succs[0] = true;
310 Succs[0] = Succs[1] = true;
310 Succs[0] = Succs[1] = true;
323 Succs[0] = Succs[1] = true;
323 Succs[0] = Succs[1] = true;
328 Succs[C->isNullValue()] = true;
365 Succs[Case.getSuccessorIndex()] = true;
376 if (TI->getSuccessor(i) == To && SuccFeasible[i])
392 if (SuccFeasible[i])
include/llvm/Bitstream/BitstreamWriter.h 108 &Out[ByteNo], BitNo & 7)) &&
111 &Out[ByteNo], NewWord, BitNo & 7);
include/llvm/CodeGen/DbgEntityHistoryCalculator.h 88 return Entries[Index];
include/llvm/CodeGen/GlobalISel/GISelWorkList.h 70 if (!WorklistMap.try_emplace(Worklist[i], i).second)
92 Worklist[It->second] = nullptr;
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h 93 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
111 State.MIs[NewInsnID] = NewMI;
142 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
143 unsigned Opcode = State.MIs[InsnID]->getOpcode();
162 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
163 const int64_t Opcode = State.MIs[InsnID]->getOpcode();
190 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
191 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
233 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
234 if (State.MIs[InsnID]->getNumOperands() != Expected) {
247 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
248 assert(State.MIs[InsnID]->getOpcode() == TargetOpcode::G_CONSTANT &&
252 if (State.MIs[InsnID]->getOperand(1).isCImm())
253 Value = State.MIs[InsnID]->getOperand(1).getCImm()->getSExtValue();
254 else if (State.MIs[InsnID]->getOperand(1).isImm())
255 Value = State.MIs[InsnID]->getOperand(1).getImm();
271 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
272 assert(State.MIs[InsnID]->getOpcode() == TargetOpcode::G_CONSTANT &&
276 if (State.MIs[InsnID]->getOperand(1).isCImm())
277 Value = State.MIs[InsnID]->getOperand(1).getCImm()->getValue();
293 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
294 assert(State.MIs[InsnID]->getOpcode() == TargetOpcode::G_FCONSTANT &&
296 assert(State.MIs[InsnID]->getOperand(1).isFPImm() && "Expected FPImm operand");
298 APFloat Value = State.MIs[InsnID]->getOperand(1).getFPImm()->getValueAPF();
312 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
315 if (!testMIPredicate_MI(Predicate, *State.MIs[InsnID]))
326 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
327 if (!State.MIs[InsnID]->hasOneMemOperand())
331 for (const auto &MMO : State.MIs[InsnID]->memoperands())
344 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
345 if (!State.MIs[InsnID]->hasOneMemOperand())
349 for (const auto &MMO : State.MIs[InsnID]->memoperands())
362 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
363 if (!State.MIs[InsnID]->hasOneMemOperand())
367 for (const auto &MMO : State.MIs[InsnID]->memoperands())
379 if (State.MIs[InsnID]->getNumMemOperands() <= MMOIdx) {
390 = *(State.MIs[InsnID]->memoperands_begin() + MMOIdx);
417 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
419 if (State.MIs[InsnID]->getNumMemOperands() <= MMOIdx) {
426 = *(State.MIs[InsnID]->memoperands_begin() + MMOIdx);
446 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
448 if (State.MIs[InsnID]->getNumMemOperands() <= MMOIdx) {
454 MachineMemOperand *MMO = *(State.MIs[InsnID]->memoperands_begin() + MMOIdx);
482 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
484 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
493 if (State.MIs[InsnID]->getNumMemOperands() <= MMOIdx) {
499 MachineMemOperand *MMO = *(State.MIs[InsnID]->memoperands_begin() + MMOIdx);
525 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
526 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
543 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
544 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
549 MachineFunction *MF = State.MIs[InsnID]->getParent()->getParent();
573 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
574 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
595 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
599 State.MIs[InsnID]->getOperand(OpIdx));
616 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
617 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
641 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
642 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
658 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
659 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
673 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
674 MachineOperand &MO = State.MIs[InsnID]->getOperand(OpIdx);
686 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
687 if (!State.MIs[InsnID]->getOperand(OpIdx).isMBB()) {
699 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
700 if (!State.MIs[InsnID]->getOperand(OpIdx).isImm()) {
711 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
712 if (!isObviouslySafeToFold(*State.MIs[InsnID], *State.MIs[0])) {
712 if (!isObviouslySafeToFold(*State.MIs[InsnID], *State.MIs[0])) {
727 assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
728 assert(State.MIs[OtherInsnID] != nullptr && "Used insn before defined");
729 if (!State.MIs[InsnID]->getOperand(OpIdx).isIdenticalTo(
730 State.MIs[OtherInsnID]->getOperand(OtherOpIdx))) {
750 OutMIs[NewInsnID] = MachineInstrBuilder(*State.MIs[OldInsnID]->getMF(),
750 OutMIs[NewInsnID] = MachineInstrBuilder(*State.MIs[OldInsnID]->getMF(),
751 State.MIs[OldInsnID]);
752 OutMIs[NewInsnID]->setDesc(TII.get(NewOpcode));
766 OutMIs[NewInsnID] = BuildMI(*State.MIs[0]->getParent(), State.MIs[0],
766 OutMIs[NewInsnID] = BuildMI(*State.MIs[0]->getParent(), State.MIs[0],
766 OutMIs[NewInsnID] = BuildMI(*State.MIs[0]->getParent(), State.MIs[0],
767 State.MIs[0]->getDebugLoc(), TII.get(Opcode));
778 assert(OutMIs[NewInsnID] && "Attempted to add to undefined instruction");
779 OutMIs[NewInsnID].add(State.MIs[OldInsnID]->getOperand(OpIdx));
779 OutMIs[NewInsnID].add(State.MIs[OldInsnID]->getOperand(OpIdx));
792 assert(OutMIs[NewInsnID] && "Attempted to add to undefined instruction");
793 MachineOperand &MO = State.MIs[OldInsnID]->getOperand(OpIdx);
795 OutMIs[NewInsnID].addReg(ZeroReg);
797 OutMIs[NewInsnID].add(MO);
810 assert(OutMIs[NewInsnID] && "Attempted to add to undefined instruction");
811 OutMIs[NewInsnID].addReg(State.MIs[OldInsnID]->getOperand(OpIdx).getReg(),
811 OutMIs[NewInsnID].addReg(State.MIs[OldInsnID]->getOperand(OpIdx).getReg(),
823 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
824 OutMIs[InsnID].addDef(RegNum, RegState::Implicit);
834 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
835 OutMIs[InsnID].addUse(RegNum, RegState::Implicit);
846 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
847 OutMIs[InsnID].addReg(RegNum, RegFlags);
859 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
860 OutMIs[InsnID].addReg(State.TempRegisters[TempRegID], TempRegFlags);
871 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
872 OutMIs[InsnID].addImm(Imm);
882 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
884 RenderOpFn(OutMIs[InsnID]);
894 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
895 State.Renderers[RendererID][RenderOpID](OutMIs[InsnID]);
895 State.Renderers[RendererID][RenderOpID](OutMIs[InsnID]);
907 assert(OutMIs[NewInsnID] && "Attempted to add to undefined instruction");
908 assert(State.MIs[OldInsnID]->getOpcode() == TargetOpcode::G_CONSTANT && "Expected G_CONSTANT");
909 if (State.MIs[OldInsnID]->getOperand(1).isCImm()) {
910 OutMIs[NewInsnID].addImm(
911 State.MIs[OldInsnID]->getOperand(1).getCImm()->getSExtValue());
912 } else if (State.MIs[OldInsnID]->getOperand(1).isImm())
913 OutMIs[NewInsnID].add(State.MIs[OldInsnID]->getOperand(1));
913 OutMIs[NewInsnID].add(State.MIs[OldInsnID]->getOperand(1));
926 assert(OutMIs[NewInsnID] && "Attempted to add to undefined instruction");
927 assert(State.MIs[OldInsnID]->getOpcode() == TargetOpcode::G_FCONSTANT && "Expected G_FCONSTANT");
928 if (State.MIs[OldInsnID]->getOperand(1).isFPImm())
929 OutMIs[NewInsnID].addFPImm(
930 State.MIs[OldInsnID]->getOperand(1).getFPImm());
943 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
948 (ISel.*ISelInfo.CustomRenderers[RendererFnID])(OutMIs[InsnID],
949 *State.MIs[OldInsnID]);
956 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
957 constrainOperandRegToRegClass(*OutMIs[InsnID].getInstr(), OpIdx,
968 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
969 constrainSelectedInstRegOperands(*OutMIs[InsnID].getInstr(), TII, TRI,
980 assert(OutMIs[InsnID] && "Attempted to add to undefined instruction");
990 for (const auto &MMO : State.MIs[MergeInsnID]->memoperands())
991 OutMIs[InsnID].addMemOperand(MMO);
999 assert(State.MIs[InsnID] &&
1001 State.MIs[InsnID]->eraseFromParent();
include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h 308 Builder.buildInstr(ConvertOp, {DstRegs[j]}, {TmpRegs[j]});
308 Builder.buildInstr(ConvertOp, {DstRegs[j]}, {TmpRegs[j]});
include/llvm/CodeGen/GlobalISel/LegalizerInfo.h 973 SpecifiedActions[OpcodeIdx][Aspect.Idx][Aspect.Type] = Action;
998 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] = S;
1009 VectorElementSizeChangeStrategies[OpcodeIdx][TypeIdx] = S;
1300 Actions[TypeIndex] = SizeAndActions;
include/llvm/CodeGen/LiveInterval.h 254 segments.push_back(Segment(S.start, S.end, valnos[S.valno->id]));
309 return valnos[ValNo];
include/llvm/CodeGen/LiveIntervals.h 394 LiveRange *LR = RegUnitRanges[Unit];
398 RegUnitRanges[Unit] = LR = new LiveRange(UseSegmentSetForPhysRegs);
407 return RegUnitRanges[Unit];
417 delete RegUnitRanges[Unit];
418 RegUnitRanges[Unit] = nullptr;
include/llvm/CodeGen/LiveRangeEdit.h 163 unsigned get(unsigned idx) const { return NewRegs[idx + FirstNew]; }
include/llvm/CodeGen/MachineTraceMetrics.h 259 unsigned getBlockNum() const { return &TBI - &TE.BlockInfo[0]; }
include/llvm/CodeGen/ScheduleDAG.h 631 return Node->Preds[Operand].getSUnit();
659 return Node->Preds[Operand];
include/llvm/CodeGen/SlotIndexes.h 630 MBBRanges[prevMBB->getNumber()].second = startIdx;
include/llvm/DebugInfo/DIContext.h 94 return &Frames[Index];
include/llvm/DebugInfo/DWARF/DWARFContext.h 216 return NormalUnits[index].get();
222 return DWOUnits[index].get();
include/llvm/IR/LegacyPassManagers.h 513 FunctionPass *FP = static_cast<FunctionPass *>(PassVector[N]);
include/llvm/MC/MCInst.h 180 MCOperand &getOperand(unsigned i) { return Operands[i]; }
include/llvm/MCA/CodeEmitter.h 65 return StringRef(&Code[EI.first], EI.second);
include/llvm/MCA/HardwareUnits/ResourceManager.h 396 return setCustomStrategyImpl(std::move(S), ProcResID2Mask[ResourceID]);
include/llvm/Option/ArgList.h 412 return ArgStrings[Index];
include/llvm/Support/Allocator.h 300 const char *S = static_cast<const char *>(Slabs[Idx]);
309 const char *S = static_cast<const char *>(CustomSizedSlabs[Idx].first);
310 size_t Size = CustomSizedSlabs[Idx].second;
include/llvm/Support/ArrayRecycler.h 46 FreeList *Entry = Bucket[Idx];
50 Bucket[Idx] = Entry->Next;
61 Entry->Next = Bucket[Idx];
62 Bucket[Idx] = Entry;
include/llvm/Support/CommandLine.h 801 if (Values[i].Name == ArgVal) {
802 V = Values[i].V.getValue();
include/llvm/Support/GenericDomTree.h 598 Roots[0] = BB;
include/llvm/Support/GenericDomTreeConstruction.h 518 auto &Root = Roots[i];
586 NodePtr Root = IsPostDom ? nullptr : DT.Roots[0];
1454 if (Children[i]->getDFSNumOut() + 1 != Children[i + 1]->getDFSNumIn()) {
1454 if (Children[i]->getDFSNumOut() + 1 != Children[i + 1]->getDFSNumIn()) {
1455 PrintChildrenError(Children[i], Children[i + 1]);
1455 PrintChildrenError(Children[i], Children[i + 1]);
include/llvm/Support/YAMLTraits.h 1890 return seq[index];
include/llvm/TableGen/Record.h 1552 if (Values[i].getNameInit() == Name) {
1814 return Parts[i];
include/llvm/Transforms/InstCombine/InstCombineWorklist.h 74 Worklist[It->second] = nullptr;
include/llvm/Transforms/Utils/SSAUpdaterImpl.h 139 BlkT *Pred = Preds[p];
lib/Analysis/BasicAliasAnalysis.cpp 613 if (Decomposed.VarIndices[i].V == Index &&
614 Decomposed.VarIndices[i].ZExtBits == ZExtBits &&
615 Decomposed.VarIndices[i].SExtBits == SExtBits) {
616 Scale += Decomposed.VarIndices[i].Scale;
1476 Modulo |= DecompGEP1.VarIndices[i].Scale;
1482 const Value *V = DecompGEP1.VarIndices[i].V;
1490 bool IsZExt = DecompGEP1.VarIndices[i].ZExtBits > 0 || isa<ZExtInst>(V);
1497 APInt Scale = DecompGEP1.VarIndices[i].Scale;
1707 AliasResult Alias = aliasCheck(V2, V2Size, V2AAInfo, V1Srcs[0], PNSize,
1718 Value *V = V1Srcs[i];
1955 if (!isValueEqualInPotentialCycles(Dest[j].V, V) ||
1956 Dest[j].ZExtBits != ZExtBits || Dest[j].SExtBits != SExtBits)
1956 Dest[j].ZExtBits != ZExtBits || Dest[j].SExtBits != SExtBits)
1961 if (Dest[j].Scale != Scale)
1962 Dest[j].Scale -= Scale;
lib/Analysis/BlockFrequencyInfoImpl.cpp 448 OuterLoop->BackedgeMass[OuterLoop->getHeaderIndex(W.TargetNode)] += Taken;
819 auto &HeaderNode = Loop.Nodes[H];
820 auto &BackedgeMass = Loop.BackedgeMass[Loop.getHeaderIndex(HeaderNode)];
lib/Analysis/BranchProbabilityInfo.cpp 304 Weights[i] /= ScalingFactor;
305 WeightSum += Weights[i];
313 Weights[i] = 1;
320 BP.push_back({ Weights[i], static_cast<uint32_t>(WeightSum) });
328 if (UnreachableProb < BP[i]) {
329 ToDistribute += BP[i] - UnreachableProb;
330 BP[i] = UnreachableProb;
338 BP[i] += PerEdge;
343 setEdgeProbability(BB, i, BP[i]);
lib/Analysis/CallGraphSCCPass.cpp 96 return static_cast<Pass *>(PassVector[N]);
lib/Analysis/CodeMetrics.cpp 52 const Value *V = Worklist[i];
lib/Analysis/ConstantFolding.cpp 992 if (NewIdxs[I] != InnermostGEP->getOperand(I + 1))
1106 return ConstantFoldCompareInstOperands(CE->getPredicate(), Ops[0], Ops[1],
1106 return ConstantFoldCompareInstOperands(CE->getPredicate(), Ops[0], Ops[1],
1167 return ConstantFoldCompareInstOperands(CI->getPredicate(), Ops[0], Ops[1],
1167 return ConstantFoldCompareInstOperands(CI->getPredicate(), Ops[0], Ops[1],
2444 Lane[J] = Operands[J];
2452 Lane[J] = Agg;
2460 Result[I] = Folded;
lib/Analysis/Delinearization.cpp 111 O << "[" << *Sizes[i] << "]";
112 O << " with elements of " << *Sizes[Size - 1] << " bytes.\n";
116 O << "[" << *Subscripts[i] << "]";
lib/Analysis/DependenceAnalysis.cpp 3074 LLVM_DEBUG(Constraints[LI].dump(dbgs()));
3075 if (Constraints[LI].isDistance())
3076 Result |= propagateDistance(Src, Dst, Constraints[LI], Consistent);
3077 else if (Constraints[LI].isLine())
3078 Result |= propagateLine(Src, Dst, Constraints[LI], Consistent);
3079 else if (Constraints[LI].isPoint())
3080 Result |= propagatePoint(Src, Dst, Constraints[LI]);
3329 if (!isKnownNonNegative(SrcSubscripts[i], SrcPtr))
3332 if (!isKnownLessThan(SrcSubscripts[i], Sizes[i - 1]))
3332 if (!isKnownLessThan(SrcSubscripts[i], Sizes[i - 1]))
3335 if (!isKnownNonNegative(DstSubscripts[i], DstPtr))
3338 if (!isKnownLessThan(DstSubscripts[i], Sizes[i - 1]))
3338 if (!isKnownLessThan(DstSubscripts[i], Sizes[i - 1]))
3345 dbgs() << *SrcSubscripts[i];
3348 dbgs() << *DstSubscripts[i];
3357 Pair[i].Src = SrcSubscripts[i];
3357 Pair[i].Src = SrcSubscripts[i];
3358 Pair[i].Dst = DstSubscripts[i];
3358 Pair[i].Dst = DstSubscripts[i];
3359 unifySubscriptType(&Pair[i]);
3456 Pair[0].Src = SrcSCEV;
3457 Pair[0].Dst = DstSCEV;
3467 Pair[P].Loops.resize(MaxLevels + 1);
3468 Pair[P].GroupLoops.resize(MaxLevels + 1);
3469 Pair[P].Group.resize(Pairs);
3470 removeMatchingExtensions(&Pair[P]);
3471 Pair[P].Classification =
3472 classifyPair(Pair[P].Src, LI->getLoopFor(Src->getParent()),
3473 Pair[P].Dst, LI->getLoopFor(Dst->getParent()),
3474 Pair[P].Loops);
3475 Pair[P].GroupLoops = Pair[P].Loops;
3475 Pair[P].GroupLoops = Pair[P].Loops;
3476 Pair[P].Group.set(P);
3478 LLVM_DEBUG(dbgs() << "\tsrc = " << *Pair[P].Src << "\n");
3479 LLVM_DEBUG(dbgs() << "\tdst = " << *Pair[P].Dst << "\n");
3480 LLVM_DEBUG(dbgs() << "\tclass = " << Pair[P].Classification << "\n");
3482 LLVM_DEBUG(dumpSmallBitVector(Pair[P].Loops));
3546 if (Pair[SI].Classification == Subscript::NonLinear) {
3549 collectCommonLoops(Pair[SI].Src,
3551 Pair[SI].Loops);
3552 collectCommonLoops(Pair[SI].Dst,
3554 Pair[SI].Loops);
3556 } else if (Pair[SI].Classification == Subscript::ZIV) {
3564 SmallBitVector Intersection = Pair[SI].GroupLoops;
3565 Intersection &= Pair[SJ].GroupLoops;
3568 Pair[SJ].GroupLoops |= Pair[SI].GroupLoops;
3568 Pair[SJ].GroupLoops |= Pair[SI].GroupLoops;
3570 Pair[SJ].Group |= Pair[SI].Group;
3570 Pair[SJ].Group |= Pair[SI].Group;
3575 if (Pair[SI].Group.count() == 1) {
3598 switch (Pair[SI].Classification) {
3601 if (testZIV(Pair[SI].Src, Pair[SI].Dst, Result))
3601 if (testZIV(Pair[SI].Src, Pair[SI].Dst, Result))
3608 if (testSIV(Pair[SI].Src, Pair[SI].Dst, Level, Result, NewConstraint,
3608 if (testSIV(Pair[SI].Src, Pair[SI].Dst, Level, Result, NewConstraint,
3615 if (testRDIV(Pair[SI].Src, Pair[SI].Dst, Result))
3615 if (testRDIV(Pair[SI].Src, Pair[SI].Dst, Result))
3620 if (testMIV(Pair[SI].Src, Pair[SI].Dst, Pair[SI].Loops, Result))
3620 if (testMIV(Pair[SI].Src, Pair[SI].Dst, Pair[SI].Loops, Result))
3620 if (testMIV(Pair[SI].Src, Pair[SI].Dst, Pair[SI].Loops, Result))
3634 Constraints[II].setAny(SE);
3637 SmallBitVector Group(Pair[SI].Group);
3644 if (Pair[SJ].Classification == Subscript::SIV)
3648 PairsInGroup.push_back(&Pair[SJ]);
3660 if (testSIV(Pair[SJ].Src, Pair[SJ].Dst, Level, Result, NewConstraint,
3660 if (testSIV(Pair[SJ].Src, Pair[SJ].Dst, Level, Result, NewConstraint,
3664 if (intersectConstraints(&Constraints[Level], &NewConstraint)) {
3665 if (Constraints[Level].isEmpty()) {
3681 if (propagate(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops,
3681 if (propagate(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops,
3681 if (propagate(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops,
3685 Pair[SJ].Classification =
3686 classifyPair(Pair[SJ].Src, LI->getLoopFor(Src->getParent()),
3687 Pair[SJ].Dst, LI->getLoopFor(Dst->getParent()),
3688 Pair[SJ].Loops);
3689 switch (Pair[SJ].Classification) {
3692 if (testZIV(Pair[SJ].Src, Pair[SJ].Dst, Result))
3692 if (testZIV(Pair[SJ].Src, Pair[SJ].Dst, Result))
3713 if (Pair[SJ].Classification == Subscript::RDIV) {
3715 if (testRDIV(Pair[SJ].Src, Pair[SJ].Dst, Result))
3715 if (testRDIV(Pair[SJ].Src, Pair[SJ].Dst, Result))
3726 if (Pair[SJ].Classification == Subscript::MIV) {
3728 if (testMIV(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops, Result))
3728 if (testMIV(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops, Result))
3728 if (testMIV(Pair[SJ].Src, Pair[SJ].Dst, Pair[SJ].Loops, Result))
3740 updateDirection(Result.DV[SJ - 1], Constraints[SJ]);
3750 CompleteLoops |= Pair[SI].Loops;
3857 Pair[0].Src = SrcSCEV;
3858 Pair[0].Dst = DstSCEV;
3868 Pair[P].Loops.resize(MaxLevels + 1);
3869 Pair[P].GroupLoops.resize(MaxLevels + 1);
3870 Pair[P].Group.resize(Pairs);
3871 removeMatchingExtensions(&Pair[P]);
3872 Pair[P].Classification =
3873 classifyPair(Pair[P].Src, LI->getLoopFor(Src->getParent()),
3874 Pair[P].Dst, LI->getLoopFor(Dst->getParent()),
3875 Pair[P].Loops);
3876 Pair[P].GroupLoops = Pair[P].Loops;
3876 Pair[P].GroupLoops = Pair[P].Loops;
3877 Pair[P].Group.set(P);
3885 if (Pair[SI].Classification == Subscript::NonLinear) {
3887 collectCommonLoops(Pair[SI].Src,
3889 Pair[SI].Loops);
3890 collectCommonLoops(Pair[SI].Dst,
3892 Pair[SI].Loops);
3895 else if (Pair[SI].Classification == Subscript::ZIV)
3901 SmallBitVector Intersection = Pair[SI].GroupLoops;
3902 Intersection &= Pair[SJ].GroupLoops;
3905 Pair[SJ].GroupLoops |= Pair[SI].GroupLoops;
3905 Pair[SJ].GroupLoops |= Pair[SI].GroupLoops;
3907 Pair[SJ].Group |= Pair[SI].Group;
3907 Pair[SJ].Group |= Pair[SI].Group;
3912 if (Pair[SI].Group.count() == 1)
3925 switch (Pair[SI].Classification) {
3929 (void) testSIV(Pair[SI].Src, Pair[SI].Dst, Level,
3929 (void) testSIV(Pair[SI].Src, Pair[SI].Dst, Level,
3950 Constraints[II].setAny(SE);
3952 SmallBitVector Group(Pair[SI].Group);
3957 if (Pair[SJ].Classification == Subscript::SIV)
3968 (void) testSIV(Pair[SJ].Src, Pair[SJ].Dst, Level,
3968 (void) testSIV(Pair[SJ].Src, Pair[SJ].Dst, Level,
3973 if (intersectConstraints(&Constraints[Level], &NewConstraint))
3981 if (propagate(Pair[SJ].Src, Pair[SJ].Dst,
3981 if (propagate(Pair[SJ].Src, Pair[SJ].Dst,
3982 Pair[SJ].Loops, Constraints, Result.Consistent)) {
3983 Pair[SJ].Classification =
3984 classifyPair(Pair[SJ].Src, LI->getLoopFor(Src->getParent()),
3985 Pair[SJ].Dst, LI->getLoopFor(Dst->getParent()),
3986 Pair[SJ].Loops);
3987 switch (Pair[SJ].Classification) {
lib/Analysis/InlineCost.cpp 634 return ConstantExpr::getBitCast(COps[0], I.getType());
658 return ConstantExpr::getPtrToInt(COps[0], I.getType());
691 return ConstantExpr::getIntToPtr(COps[0], I.getType());
717 return ConstantExpr::getCast(I.getOpcode(), COps[0], I.getType());
747 return ConstantFoldInstOperands(&I, COps[0], DL);
986 return ConstantExpr::getCompare(I.getPredicate(), COps[0], COps[1]);
986 return ConstantExpr::getCompare(I.getPredicate(), COps[0], COps[1]);
1176 return ConstantExpr::getExtractValue(COps[0], I.getIndices());
1187 return ConstantExpr::getInsertValue(/*AggregateOperand*/ COps[0],
1188 /*InsertedValueOperand*/ COps[1],
lib/Analysis/InstructionSimplify.cpp 3748 return ConstantFoldCompareInstOperands(C->getPredicate(), ConstOps[0],
3749 ConstOps[1], Q.DL, Q.TLI);
3753 return ConstantFoldLoadFromConstPtr(ConstOps[0], LI->getType(), Q.DL);
4385 if (Indices[i] == -1)
4387 if ((unsigned)Indices[i] < InVecNumElts)
4433 foldIdentityShuffles(i, Op0, Op1, Indices[i], RootVec, MaxRecurse);
lib/Analysis/LazyCallGraph.cpp 49 Edges[EdgeIndexMap.find(&TargetN)->second].setKind(EK);
57 Edges[IndexMapI->second] = Edge();
330 assert(SCCs[i] == C && "Index doesn't point to SCC!");
335 SCC &SourceSCC = *SCCs[i];
480 SCCIndices.find(SCCs[i])->second = i;
495 assert(SCCs[TargetIdx] == &TargetSCC &&
498 assert(SCCs[SourceIdx] == &SourceSCC &&
515 SCCIndices.find(SCCs[i])->second = i;
517 assert(SCCs[TargetIdx] == &TargetSCC &&
881 SCCIndices[SCCs[Idx]] = Idx;
1328 G->RefSCCIndices[G->PostOrderRefSCCs[i]] = i;
1341 RefSCC &RC = *Result[SCCNumber];
1403 Edge &E = SourceN->Edges[InsertResult.first->second];
1541 RefSCCIndices[PostOrderRefSCCs[i]] = i;
1697 RC.SCCIndices[RC.SCCs[i]] = i;
lib/Analysis/LoopAccessAnalysis.cpp 280 const SCEV *Start = RtCheck.Pointers[Index].Start;
281 const SCEV *End = RtCheck.Pointers[Index].End;
362 PositionMap[Pointers[Index].PointerValue] = Index;
377 MemoryDepChecker::MemAccessInfo Access(Pointers[I].PointerValue,
378 Pointers[I].IsWritePtr);
783 if (RtCheck.Pointers[i].DependencySetId ==
784 RtCheck.Pointers[j].DependencySetId)
787 if (RtCheck.Pointers[i].AliasSetId != RtCheck.Pointers[j].AliasSetId)
787 if (RtCheck.Pointers[i].AliasSetId != RtCheck.Pointers[j].AliasSetId)
790 Value *PtrI = RtCheck.Pointers[i].PointerValue;
791 Value *PtrJ = RtCheck.Pointers[j].PointerValue;
1148 return OffValPairs[Left].first < OffValPairs[Right].first;
1148 return OffValPairs[Left].first < OffValPairs[Right].first;
1153 return I == SortedIndices[I];
1481 LLVM_DEBUG(dbgs() << "LAA: Distance for " << *InstMap[AIdx] << " to "
1482 << *InstMap[BIdx] << ": " << *Dist << "\n");
lib/Analysis/MemoryDependenceAnalysis.cpp 1299 Visited.erase(NewBlocks[i]);
1307 Visited.erase(NewBlocks[i]);
1366 Visited.erase(PredList[i].first);
1378 BasicBlock *Pred = PredList[i].first;
1379 PHITransAddr &PredPointer = PredList[i].second;
lib/Analysis/MemorySSA.cpp 597 auto UpwardDefs = make_range(upward_defs_begin({Phi, Paths[PriorNode].Loc}),
632 DefPath &Node = Paths[PathIndex];
716 T &curNode() const { return W->Paths[*N]; }
862 UpwardsWalkResult WR = walkToPhiOrClobber(Paths[Paused]);
898 [&](ListIndex I) { return Paths[I].Last == DefChainEnd; }));
1386 LocInfo.LowerBoundBlock = VersionStack[0]->getBlock();
1425 if (isa<MemoryPhi>(VersionStack[UpperBound])) {
1430 while (VersionStack[UpperBound] != Result) {
1438 MemoryDef *MD = cast<MemoryDef>(VersionStack[UpperBound]);
1463 if (MSSA->isLiveOnEntryDef(VersionStack[UpperBound]))
1465 MU->setDefiningAccess(VersionStack[UpperBound], true, LocInfo.AR);
1470 MU->setDefiningAccess(VersionStack[LocInfo.LastKill], true, LocInfo.AR);
lib/Analysis/MemorySSAUpdater.cpp 124 Phi->addIncoming(&*PhiOps[i++], Pred);
427 tryRemoveTrivialPhis(ArrayRef<WeakVH>(&InsertedPHIs[NewPhiIndex], NewPhiSize));
lib/Analysis/PHITransAddr.cpp 232 RemoveInstInputs(GEPOps[i], InstInputs);
238 Value *APHIOp = GEPOps[0];
407 GEP->getSourceElementType(), GEPOps[0], makeArrayRef(GEPOps).slice(1),
lib/Analysis/ScalarEvolution.cpp 811 const SCEV *&LHS = Ops[0], *&RHS = Ops[1];
811 const SCEV *&LHS = Ops[0], *&RHS = Ops[1];
828 const SCEV *S = Ops[i];
833 for (unsigned j = i+1; j != e && Ops[j]->getSCEVType() == Complexity; ++j) {
834 if (Ops[j] == S) { // Found a duplicate.
836 std::swap(Ops[i+1], Ops[j]);
836 std::swap(Ops[i+1], Ops[j]);
1006 Quotient = Qs[0];
1007 Remainder = Rs[0];
1049 Quotient = Qs[0];
2412 if (Ops.size() == 1) return Ops[0];
2414 Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
2416 assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
2427 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) {
2430 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) {
2432 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt());
2433 if (Ops.size() == 2) return Ops[0];
2435 LHSC = cast<SCEVConstant>(Ops[0]);
2444 if (Ops.size() == 1) return Ops[0];
2454 Type *Ty = Ops[0]->getType();
2457 if (Ops[i] == Ops[i+1]) { // X + Y + Y --> X + Y*2
2457 if (Ops[i] == Ops[i+1]) { // X + Y + Y --> X + Y*2
2460 while (i+Count != e && Ops[i+Count] == Ops[i])
2460 while (i+Count != e && Ops[i+Count] == Ops[i])
2464 const SCEV *Mul = getMulExpr(Scale, Ops[i], SCEV::FlagAnyWrap, Depth + 1);
2467 Ops[i] = Mul;
2484 if (auto *T = dyn_cast<SCEVTruncateExpr>(Ops[Idx]))
2486 if (const auto *Mul = dyn_cast<SCEVMulExpr>(Ops[Idx])) {
2499 if (const SCEVTruncateExpr *T = dyn_cast<SCEVTruncateExpr>(Ops[i])) {
2505 } else if (const SCEVConstant *C = dyn_cast<SCEVConstant>(Ops[i])) {
2507 } else if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(Ops[i])) {
2541 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < scAddExpr)
2547 while (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[Idx])) {
2566 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < scMulExpr)
2571 if (Idx < Ops.size() && isa<SCEVMulExpr>(Ops[Idx])) {
2604 return Ops[0];
2612 for (; Idx < Ops.size() && isa<SCEVMulExpr>(Ops[Idx]); ++Idx) {
2613 const SCEVMulExpr *Mul = cast<SCEVMulExpr>(Ops[Idx]);
2619 if (MulOpSCEV == Ops[AddOp]) {
2648 OtherMulIdx < Ops.size() && isa<SCEVMulExpr>(Ops[OtherMulIdx]);
2650 const SCEVMulExpr *OtherMul = cast<SCEVMulExpr>(Ops[OtherMulIdx]);
2689 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < scAddRecExpr)
2693 for (; Idx < Ops.size() && isa<SCEVAddRecExpr>(Ops[Idx]); ++Idx) {
2697 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);
2700 if (isAvailableAtLoopEntry(Ops[i], AddRecLoop)) {
2701 LIOps.push_back(Ops[i]);
2716 AddRecOps[0] = getAddExpr(LIOps, Flags, Depth + 1);
2729 if (Ops[i] == AddRec) {
2730 Ops[i] = NewRec;
2740 OtherIdx < Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
2745 cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()->getHeader(),
2748 if (AddRecLoop == cast<SCEVAddRecExpr>(Ops[OtherIdx])->getLoop()) {
2752 for (; OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
2754 const auto *OtherAddRec = cast<SCEVAddRecExpr>(Ops[OtherIdx]);
2764 AddRecOps[i], OtherAddRec->getOperand(i)};
2765 AddRecOps[i] = getAddExpr(TwoOps, SCEV::FlagAnyWrap, Depth + 1);
2771 Ops[Idx] = getAddRecExpr(AddRecOps, AddRecLoop, SCEV::FlagAnyWrap);
2913 if (Ops.size() == 1) return Ops[0];
2915 Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
2917 assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
2932 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) {
2936 if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1]))
2951 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) {
2955 Ops[0] = getConstant(Fold);
2957 if (Ops.size() == 1) return Ops[0];
2958 LHSC = cast<SCEVConstant>(Ops[0]);
2962 if (cast<SCEVConstant>(Ops[0])->getValue()->isOne()) {
2965 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isZero()) {
2967 return Ops[0];
2968 } else if (Ops[0]->isAllOnesValue()) {
2972 if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1])) {
2976 const SCEV *Mul = getMulExpr(Ops[0], AddOp, SCEV::FlagAnyWrap,
2983 } else if (const auto *AddRec = dyn_cast<SCEVAddRecExpr>(Ops[1])) {
2987 Operands.push_back(getMulExpr(Ops[0], AddRecOp, SCEV::FlagAnyWrap,
2997 return Ops[0];
3001 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < scMulExpr)
3007 while (const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(Ops[Idx])) {
3027 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < scAddRecExpr)
3031 for (; Idx < Ops.size() && isa<SCEVAddRecExpr>(Ops[Idx]); ++Idx) {
3035 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);
3038 if (isAvailableAtLoopEntry(Ops[i], AddRecLoop)) {
3039 LIOps.push_back(Ops[i]);
3067 if (Ops[i] == AddRec) {
3068 Ops[i] = NewRec;
3090 OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
3093 dyn_cast<SCEVAddRecExpr>(Ops[OtherIdx]);
3137 Ops[Idx] = NewAddRec;
3257 Operands[i] = Div;
3412 if (Operands.size() == 1) return Operands[0];
3414 Type *ETy = getEffectiveSCEVType(Operands[0]->getType());
3416 assert(getEffectiveSCEVType(Operands[i]->getType()) == ETy &&
3419 assert(isLoopInvariant(Operands[i], L) &&
3437 if (const SCEVAddRecExpr *NestedAR = dyn_cast<SCEVAddRecExpr>(Operands[0])) {
3445 Operands[0] = NestedAR->getStart();
3460 NestedOperands[0] = getAddRecExpr(Operands, L, OuterFlags);
3476 Operands[0] = NestedAR;
3552 if (Ops.size() == 1) return Ops[0];
3554 Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
3556 assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
3573 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) {
3588 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) {
3592 Ops[0] = getConstant(Fold);
3594 if (Ops.size() == 1) return Ops[0];
3595 LHSC = cast<SCEVConstant>(Ops[0]);
3611 if (Ops.size() == 1) return Ops[0];
3615 while (Idx < Ops.size() && Ops[Idx]->getSCEVType() < Kind)
3622 while (Ops[Idx]->getSCEVType() == Kind) {
3623 const SCEVMinMaxExpr *SMME = cast<SCEVMinMaxExpr>(Ops[Idx]);
3643 if (Ops[i] == Ops[i + 1] ||
3643 if (Ops[i] == Ops[i + 1] ||
3644 isKnownViaNonRecursiveReasoning(FirstPred, Ops[i], Ops[i + 1])) {
3644 isKnownViaNonRecursiveReasoning(FirstPred, Ops[i], Ops[i + 1])) {
3650 } else if (isKnownViaNonRecursiveReasoning(SecondPred, Ops[i],
3651 Ops[i + 1])) {
3659 if (Ops.size() == 1) return Ops[0];
4139 return Ops[0];
7077 BasicBlock *ExitBB = ExitingBlocks[i];
8249 C = ConstantFoldCompareInstOperands(CI->getPredicate(), Operands[0],
8250 Operands[1], DL, &TLI);
8253 C = ConstantFoldLoadFromConstPtr(Operands[0], LI->getType(), DL);
10805 Operands[0] = SE.getZero(SC->getType());
11057 const SCEV *Step = Terms[Last];
11225 SCEVDivision::divide(*this, Res, Sizes[i], &Q, &R);
11229 dbgs() << "Sizes[i]: " << *Sizes[i] << "\n";
lib/Analysis/ScalarEvolutionExpander.cpp 287 NewMulOps[0] = SE.getConstant(C->getAPInt().sdiv(FC->getAPInt()));
320 for (unsigned i = Ops.size(); i > 0 && isa<SCEVAddRecExpr>(Ops[i-1]); --i)
351 while (const SCEVAddRecExpr *A = dyn_cast<SCEVAddRecExpr>(Ops[i])) {
360 Ops[i] = Zero;
364 Ops[i] = Start;
472 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(Ops[0]))
481 Ops[0] =
1515 NewOps[i] = SE.getAnyExtendExpr(S->op_begin()[i], CanonicalIV->getType());
1528 NewOps[0] = SE.getConstant(Ty, 0);
lib/Analysis/ScalarEvolutionNormalization.cpp 66 Operands[i] = SE.getAddExpr(Operands[i], Operands[i + 1]);
66 Operands[i] = SE.getAddExpr(Operands[i], Operands[i + 1]);
66 Operands[i] = SE.getAddExpr(Operands[i], Operands[i + 1]);
90 Operands[i] = SE.getMinusSCEV(Operands[i], Operands[i + 1]);
90 Operands[i] = SE.getMinusSCEV(Operands[i], Operands[i + 1]);
90 Operands[i] = SE.getMinusSCEV(Operands[i], Operands[i + 1]);
lib/Analysis/TargetTransformInfo.cpp 863 Mask[i] = val;
1126 ShuffleMask[j] = MaskStart + j;
1128 std::fill(&ShuffleMask[MaskStart], ShuffleMask.end(), -1);
lib/Analysis/VectorUtils.cpp 734 Value *V0 = ResList[i], *V1 = ResList[i + 1];
734 Value *V0 = ResList[i], *V1 = ResList[i + 1];
743 TmpList.push_back(ResList[NumVecs - 1]);
749 return ResList[0];
lib/AsmParser/LLParser.cpp 2657 if (!ArgList[i].Name.empty())
2658 return Error(ArgList[i].Loc, "argument name invalid in function type");
2659 if (ArgList[i].Attrs.hasAttributes())
2660 return Error(ArgList[i].Loc,
2666 ArgListTy.push_back(ArgList[i].Ty);
3121 Elts.size() * sizeof(Elts[0]));
3142 Elts.size() * sizeof(Elts[0]));
3151 if (!Elts[0]->getType()->isIntegerTy() &&
3152 !Elts[0]->getType()->isFloatingPointTy() &&
3153 !Elts[0]->getType()->isPointerTy())
3159 if (Elts[i]->getType() != Elts[0]->getType())
3159 if (Elts[i]->getType() != Elts[0]->getType())
3162 " is not of type '" + getTypeString(Elts[0]->getType()));
3184 if (!Elts[0]->getType()->isFirstClassType())
3186 getTypeString(Elts[0]->getType()));
3188 ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size());
3192 if (Elts[i]->getType() != Elts[0]->getType())
3192 if (Elts[i]->getType() != Elts[0]->getType())
3195 " is not of type '" + getTypeString(Elts[0]->getType()));
3573 !Elts[0]->getType()->isPtrOrPtrVectorTy())
3576 Type *BaseType = Elts[0]->getType();
3617 ID.ConstantVal = ConstantExpr::getGetElementPtr(Ty, Elts[0], Indices,
3622 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1],
3622 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1],
3623 Elts[2]))
3625 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]);
3625 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]);
3625 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]);
3629 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3629 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3629 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3632 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]);
3632 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]);
3632 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]);
3636 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1]))
3636 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1]))
3638 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]);
3638 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]);
3643 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3643 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3643 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
3646 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]);
3646 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]);
3646 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]);
5424 ParamTypeList.push_back(ArgList[i].Ty);
5425 Attrs.push_back(ArgList[i].Attrs);
5510 if (ArgList[i].Name.empty()) continue;
5513 ArgIt->setName(ArgList[i].Name);
5515 if (ArgIt->getName() != ArgList[i].Name)
5516 return Error(ArgList[i].Loc, "redefinition of argument '%" +
5517 ArgList[i].Name + "'");
5990 SI->addCase(Table[i].first, Table[i].second);
5990 SI->addCase(Table[i].first, Table[i].second);
6030 IBI->addDestination(DestList[i]);
6073 ParamTypes.push_back(ArgList[i].V->getType());
6102 return Error(ArgList[i].Loc, "too many arguments specified");
6105 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
6106 return Error(ArgList[i].Loc, "argument is not of expected type '" +
6108 Args.push_back(ArgList[i].V);
6109 ArgAttrs.push_back(ArgList[i].Attrs);
6400 ParamTypes.push_back(ArgList[i].V->getType());
6432 return Error(ArgList[i].Loc, "too many arguments specified");
6435 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
6436 return Error(ArgList[i].Loc, "argument is not of expected type '" +
6438 Args.push_back(ArgList[i].V);
6439 ArgAttrs.push_back(ArgList[i].Attrs);
6696 PN->addIncoming(PHIVals[i].first, PHIVals[i].second);
6696 PN->addIncoming(PHIVals[i].first, PHIVals[i].second);
6802 ParamTypes.push_back(ArgList[i].V->getType());
6832 return Error(ArgList[i].Loc, "too many arguments specified");
6835 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
6836 return Error(ArgList[i].Loc, "argument is not of expected type '" +
6838 Args.push_back(ArgList[i].V);
6839 Attrs.push_back(ArgList[i].Attrs);
lib/Bitcode/Reader/BitcodeAnalyzer.cpp 874 O->OS << " op" << i << "=" << (int64_t)Record[i];
883 auto Offset = Record[0] + (Record[1] << 32);
883 auto Offset = Record[0] + (Record[1] << 32);
918 RecordedHash[Pos++] = (Val >> 24) & 0xFF;
919 RecordedHash[Pos++] = (Val >> 16) & 0xFF;
920 RecordedHash[Pos++] = (Val >> 8) & 0xFF;
921 RecordedHash[Pos++] = (Val >> 0) & 0xFF;
941 if (!isPrint(static_cast<unsigned char>(Record[j]))) {
945 Str += (char)Record[j];
lib/Bitcode/Reader/BitcodeReader.cpp 212 unsigned epoch = (unsigned)Record[0];
656 unsigned ValNo = (unsigned)Record[Slot++];
669 unsigned TypeNo = (unsigned)Record[Slot++];
700 unsigned ValNo = (unsigned)Record[Slot];
711 unsigned ValNo = (unsigned)decodeSignRotatedValue(Record[Slot]);
1392 decodeLLVMAttributesForBitcode(B, Record[i+1]);
1393 Attrs.push_back(AttributeList::get(Context, Record[i], B));
1401 Attrs.push_back(MAttributeGroups[Record[i]]);
1602 uint64_t GrpID = Record[0];
1603 uint64_t Idx = Record[1]; // Index of the object this attribute refers to.
1607 if (Record[i] == 0) { // Enum attribute
1609 if (Error Err = parseAttrKind(Record[++i], &Kind))
1619 } else if (Record[i] == 1) { // Integer attribute
1621 if (Error Err = parseAttrKind(Record[++i], &Kind))
1624 B.addAlignmentAttr(Record[++i]);
1626 B.addStackAlignmentAttr(Record[++i]);
1628 B.addDereferenceableAttr(Record[++i]);
1630 B.addDereferenceableOrNullAttr(Record[++i]);
1632 B.addAllocSizeAttrFromRawRepr(Record[++i]);
1633 } else if (Record[i] == 3 || Record[i] == 4) { // String attribute
1633 } else if (Record[i] == 3 || Record[i] == 4) { // String attribute
1634 bool HasValue = (Record[i++] == 4);
1638 while (Record[i] != 0 && i != e)
1639 KindStr += Record[i++];
1640 assert(Record[i] == 0 && "Kind string not null terminated");
1645 while (Record[i] != 0 && i != e)
1646 ValStr += Record[i++];
1647 assert(Record[i] == 0 && "Value string not null terminated");
1652 assert((Record[i] == 5 || Record[i] == 6) &&
1652 assert((Record[i] == 5 || Record[i] == 6) &&
1654 bool HasType = Record[i] == 6;
1656 if (Error Err = parseAttrKind(Record[++i], &Kind))
1659 B.addByValAttr(HasType ? getTypeByID(Record[++i]) : nullptr);
1720 TypeList.resize(Record[0]);
1759 uint64_t NumBits = Record[0];
1772 AddressSpace = Record[1];
1773 ResultTy = getTypeByID(Record[0]);
1787 if (Type *T = getTypeByID(Record[i]))
1793 ResultTy = getTypeByID(Record[2]);
1797 ResultTy = FunctionType::get(ResultTy, ArgTys, Record[0]);
1806 if (Type *T = getTypeByID(Record[i])) {
1815 ResultTy = getTypeByID(Record[1]);
1819 ResultTy = FunctionType::get(ResultTy, ArgTys, Record[0]);
1827 if (Type *T = getTypeByID(Record[i]))
1834 ResultTy = StructType::get(Context, EltTys, Record[0]);
1860 if (Type *T = getTypeByID(Record[i]))
1867 Res->setBody(EltTys, Record[0]);
1892 ResultTy = getTypeByID(Record[1]);
1895 ResultTy = ArrayType::get(ResultTy, Record[0]);
1901 if (Record[0] == 0)
1903 ResultTy = getTypeByID(Record[1]);
1906 bool Scalable = Record.size() > 2 ? Record[2] : false;
1907 ResultTy = VectorType::get(ResultTy, Record[0], Scalable);
2014 unsigned ValueID = Record[0];
2100 cast<Function>(ValueList[Record[0]]), Record);
2205 BasicBlock *BB = getBasicBlock(Record[0]);
2372 if (Record[0] >= TypeList.size() || !TypeList[Record[0]])
2372 if (Record[0] >= TypeList.size() || !TypeList[Record[0]])
2374 if (TypeList[Record[0]] == VoidType)
2376 CurFullTy = TypeList[Record[0]];
2387 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0]));
2404 APInt(16, (uint16_t)Record[0])));
2407 APInt(32, (uint32_t)Record[0])));
2410 APInt(64, Record[0])));
2414 Rearrange[0] = (Record[1] & 0xffffLL) | (Record[0] << 16);
2414 Rearrange[0] = (Record[1] & 0xffffLL) | (Record[0] << 16);
2415 Rearrange[1] = Record[0] >> 48;
2438 Elts.push_back(ValueList.getConstantFwdRef(Record[i],
2444 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
2449 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
2521 int Opc = getDecodedUnaryOpcode(Record[0], CurTy);
2525 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy);
2534 int Opc = getDecodedBinaryOpcode(Record[0], CurTy);
2538 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy);
2539 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy);
2546 if (Record[3] & (1 << bitc::OBO_NO_SIGNED_WRAP))
2548 if (Record[3] & (1 << bitc::OBO_NO_UNSIGNED_WRAP))
2554 if (Record[3] & (1 << bitc::PEO_EXACT))
2565 int Opc = getDecodedCastOpcode(Record[0]);
2569 Type *OpTy = getTypeByID(Record[1]);
2572 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
2586 PointeeType = getTypeByID(Record[OpNum++]);
2591 uint64_t Op = Record[OpNum++];
2601 Elt0FullTy = getFullyStructuredTypeByID(Record[OpNum]);
2602 Type *ElTy = getTypeByID(Record[OpNum++]);
2605 Elts.push_back(ValueList.getConstantFwdRef(Record[OpNum++], ElTy));
2620 V = ConstantExpr::getGetElementPtr(PointeeType, Elts[0], Indices,
2633 if (Value *V = ValueList[Record[0]])
2637 V = ConstantExpr::getSelect(ValueList.getConstantFwdRef(Record[0],
2639 ValueList.getConstantFwdRef(Record[1],CurTy),
2640 ValueList.getConstantFwdRef(Record[2],CurTy));
2648 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2651 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
2654 Type *IdxTy = getTypeByID(Record[2]);
2657 Op1 = ValueList.getConstantFwdRef(Record[3], IdxTy);
2659 Op1 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
2670 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
2671 Constant *Op1 = ValueList.getConstantFwdRef(Record[1],
2675 Type *IdxTy = getTypeByID(Record[2]);
2678 Op2 = ValueList.getConstantFwdRef(Record[3], IdxTy);
2680 Op2 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
2690 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
2691 Constant *Op1 = ValueList.getConstantFwdRef(Record[1], OpTy);
2694 Constant *Op2 = ValueList.getConstantFwdRef(Record[2], ShufTy);
2701 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
2704 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
2705 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
2708 Constant *Op2 = ValueList.getConstantFwdRef(Record[3], ShufTy);
2715 Type *OpTy = getTypeByID(Record[0]);
2718 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
2719 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
2722 V = ConstantExpr::getFCmp(Record[3], Op0, Op1);
2724 V = ConstantExpr::getICmp(Record[3], Op0, Op1);
2733 bool HasSideEffects = Record[0] & 1;
2734 bool IsAlignStack = Record[0] >> 1;
2735 unsigned AsmStrSize = Record[1];
2738 unsigned ConstStrSize = Record[2+AsmStrSize];
2743 AsmStr += (char)Record[2+i];
2745 ConstrStr += (char)Record[3+AsmStrSize+i];
2758 bool HasSideEffects = Record[0] & 1;
2759 bool IsAlignStack = (Record[0] >> 1) & 1;
2760 unsigned AsmDialect = Record[0] >> 2;
2761 unsigned AsmStrSize = Record[1];
2764 unsigned ConstStrSize = Record[2+AsmStrSize];
2769 AsmStr += (char)Record[2+i];
2771 ConstrStr += (char)Record[3+AsmStrSize+i];
2782 Type *FnTy = getTypeByID(Record[0]);
2786 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy));
2793 unsigned BBID = Record[2];
2884 Order[&U] = Record[NumUses - 1];
3640 VSTOffset = Record[0] - 1;
3793 if (Record.size() < 1 || Record[0] == 0)
3796 FunctionBBs.resize(Record[0]);
3843 unsigned Line = Record[0], Col = Record[1];
3843 unsigned Line = Record[0], Col = Record[1];
3844 unsigned ScopeID = Record[2], IAID = Record[3];
3844 unsigned ScopeID = Record[2], IAID = Record[3];
3845 bool isImplicitCode = Record.size() == 5 && Record[4];
3872 int Opc = getDecodedUnaryOpcode(Record[OpNum++], LHS->getType());
3879 FastMathFlags FMF = getDecodedFastMathFlags(Record[OpNum]);
3894 int Opc = getDecodedBinaryOpcode(Record[OpNum++], LHS->getType());
3904 if (Record[OpNum] & (1 << bitc::OBO_NO_SIGNED_WRAP))
3906 if (Record[OpNum] & (1 << bitc::OBO_NO_UNSIGNED_WRAP))
3912 if (Record[OpNum] & (1 << bitc::PEO_EXACT))
3915 FastMathFlags FMF = getDecodedFastMathFlags(Record[OpNum]);
3930 FullTy = getFullyStructuredTypeByID(Record[OpNum]);
3932 int Opc = getDecodedCastOpcode(Record[OpNum + 1]);
3959 InBounds = Record[OpNum++];
3960 FullTy = getFullyStructuredTypeByID(Record[OpNum++]);
4011 uint64_t Index = Record[OpNum];
4053 uint64_t Index = Record[OpNum];
4119 FastMathFlags FMF = getDecodedFastMathFlags(Record[OpNum]);
4191 unsigned PredVal = Record[OpNum];
4195 FMF = getDecodedFastMathFlags(Record[++OpNum]);
4234 BasicBlock *TrueDest = getBasicBlock(Record[0]);
4243 BasicBlock *FalseDest = getBasicBlock(Record[1]);
4263 UnwindDest = getBasicBlock(Record[Idx++]);
4280 BasicBlock *BB = getBasicBlock(Record[Idx++]);
4298 unsigned NumHandlers = Record[Idx++];
4302 BasicBlock *BB = getBasicBlock(Record[Idx++]);
4310 UnwindDest = getBasicBlock(Record[Idx++]);
4337 unsigned NumArgOperands = Record[Idx++];
4359 if ((Record[0] >> 16) == SWITCH_INST_MAGIC) {
4365 Type *OpTy = getTypeByID(Record[1]);
4369 BasicBlock *Default = getBasicBlock(Record[3]);
4373 unsigned NumCases = Record[4];
4381 unsigned NumItems = Record[CurIdx++];
4383 bool isSingleNumber = Record[CurIdx++];
4388 ActiveWords = Record[CurIdx++];
4389 Low = readWideAPInt(makeArrayRef(&Record[CurIdx], ActiveWords),
4396 ActiveWords = Record[CurIdx++];
4398 makeArrayRef(&Record[CurIdx], ActiveWords), ValueBitWidth);
4410 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]);
4423 Type *OpTy = getTypeByID(Record[0]);
4425 BasicBlock *Default = getBasicBlock(Record[2]);
4433 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
4434 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]);
4447 Type *OpTy = getTypeByID(Record[0]);
4455 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) {
4471 AttributeList PAL = getAttributes(Record[OpNum++]);
4472 unsigned CCInfo = Record[OpNum++];
4473 BasicBlock *NormalBB = getBasicBlock(Record[OpNum++]);
4474 BasicBlock *UnwindBB = getBasicBlock(Record[OpNum++]);
4480 dyn_cast<FunctionType>(getFullyStructuredTypeByID(Record[OpNum++]));
4554 AttributeList PAL = getAttributes(Record[OpNum++]);
4555 unsigned CCInfo = Record[OpNum++];
4557 BasicBlock *DefaultDest = getBasicBlock(Record[OpNum++]);
4558 unsigned NumIndirectDests = Record[OpNum++];
4561 IndirectDests.push_back(getBasicBlock(Record[OpNum++]));
4567 dyn_cast<FunctionType>(getFullyStructuredTypeByID(Record[OpNum++]));
4596 Args.push_back(getBasicBlock(Record[OpNum]));
4635 FullTy = getFullyStructuredTypeByID(Record[0]);
4659 BasicBlock *BB = getBasicBlock(Record[i * 2 + 2]);
4669 FastMathFlags FMF = getDecodedFastMathFlags(Record[Record.size() - 1]);
4689 FullTy = getFullyStructuredTypeByID(Record[Idx++]);
4704 bool IsCleanup = !!Record[Idx++];
4705 unsigned NumClauses = Record[Idx++];
4710 LandingPadInst::ClauseType(Record[Idx++]); (void)CT;
4735 uint64_t AlignRecord = Record[3];
4743 FullTy = getFullyStructuredTypeByID(Record[0]);
4751 Type *OpTy = getTypeByID(Record[1]);
4752 Value *Size = getFnValueByID(Record[2], OpTy);
4784 FullTy = getFullyStructuredTypeByID(Record[OpNum++]);
4793 if (Error Err = parseAlignmentValue(Record[OpNum], Align))
4795 I = new LoadInst(Ty, Op, "", Record[OpNum + 1], Align);
4812 FullTy = getFullyStructuredTypeByID(Record[OpNum++]);
4820 AtomicOrdering Ordering = getDecodedOrdering(Record[OpNum + 2]);
4825 if (Ordering != AtomicOrdering::NotAtomic && Record[OpNum] == 0)
4827 SyncScope::ID SSID = getDecodedSyncScopeID(Record[OpNum + 3]);
4830 if (Error Err = parseAlignmentValue(Record[OpNum], Align))
4832 I = new LoadInst(Ty, Op, "", Record[OpNum + 1], Align, Ordering, SSID);
4852 if (Error Err = parseAlignmentValue(Record[OpNum], Align))
4854 I = new StoreInst(Val, Ptr, Record[OpNum + 1], Align);
4875 AtomicOrdering Ordering = getDecodedOrdering(Record[OpNum + 2]);
4880 SyncScope::ID SSID = getDecodedSyncScopeID(Record[OpNum + 3]);
4881 if (Ordering != AtomicOrdering::NotAtomic && Record[OpNum] == 0)
4885 if (Error Err = parseAlignmentValue(Record[OpNum], Align))
4887 I = new StoreInst(Val, Ptr, Record[OpNum + 1], Align, Ordering, SSID);
4916 AtomicOrdering SuccessOrdering = getDecodedOrdering(Record[OpNum + 1]);
4920 SyncScope::ID SSID = getDecodedSyncScopeID(Record[OpNum + 2]);
4929 FailureOrdering = getDecodedOrdering(Record[OpNum + 3]);
4934 cast<AtomicCmpXchgInst>(I)->setVolatile(Record[OpNum]);
4944 cast<AtomicCmpXchgInst>(I)->setWeak(Record[OpNum+4]);
4960 AtomicRMWInst::BinOp Operation = getDecodedRMWOperation(Record[OpNum]);
4964 AtomicOrdering Ordering = getDecodedOrdering(Record[OpNum + 2]);
4968 SyncScope::ID SSID = getDecodedSyncScopeID(Record[OpNum + 3]);
4971 cast<AtomicRMWInst>(I)->setVolatile(Record[OpNum+1]);
4978 AtomicOrdering Ordering = getDecodedOrdering(Record[0]);
4983 SyncScope::ID SSID = getDecodedSyncScopeID(Record[1]);
4994 AttributeList PAL = getAttributes(Record[OpNum++]);
4995 unsigned CCInfo = Record[OpNum++];
4999 FMF = getDecodedFastMathFlags(Record[OpNum++]);
5008 dyn_cast<FunctionType>(getFullyStructuredTypeByID(Record[OpNum++]));
5038 Args.push_back(getBasicBlock(Record[OpNum]));
5089 Type *OpTy = getTypeByID(Record[0]);
5091 FullTy = getFullyStructuredTypeByID(Record[2]);
5105 if (Record.size() < 1 || Record[0] >= BundleTags.size())
5118 OperandBundles.emplace_back(BundleTags[Record[0]], std::move(Inputs));
5214 return SSIDs[Val];
5448 unsigned ValueID = Record[0];
5462 unsigned ValueID = Record[0];
5474 unsigned ValueID = Record[0];
5475 GlobalValue::GUID RefGUID = Record[1];
5597 VSTOffset = Record[0] - 1;
5765 const uint64_t Version = Record[0];
5818 uint64_t Flags = Record[0];
5846 uint64_t ValueID = Record[0];
5847 GlobalValue::GUID RefGUID = Record[1];
5863 unsigned ValueID = Record[0];
5864 uint64_t RawFlags = Record[1];
5865 unsigned InstCount = Record[2];
5867 unsigned NumRefs = Record[3];
5871 RawFunFlags = Record[3];
5872 NumRefs = Record[4];
5875 NumRORefs = Record[5];
5878 NumWORefs = Record[6];
5923 unsigned ValueID = Record[0];
5924 uint64_t RawFlags = Record[1];
5925 unsigned AliaseeID = Record[2];
5948 unsigned ValueID = Record[0];
5949 uint64_t RawFlags = Record[1];
5955 GVF = getDecodedGVarFlags(Record[2]);
5972 unsigned ValueID = Record[0];
5973 uint64_t RawFlags = Record[1];
5974 GlobalVarSummary::GVarFlags GVF = getDecodedGVarFlags(Record[2]);
5975 unsigned NumRefs = Record[3];
5983 ValueInfo Callee = getValueInfoFromValueId(Record[I]).first;
5984 uint64_t Offset = Record[++I];
6002 unsigned ValueID = Record[0];
6003 uint64_t ModuleId = Record[1];
6004 uint64_t RawFlags = Record[2];
6005 unsigned InstCount = Record[3];
6008 unsigned NumRefs = Record[4];
6013 RawFunFlags = Record[4];
6021 EntryCount = Record[5];
6025 NumWORefs = Record[8];
6029 NumRORefs = Record[RefListStartIndex - NumRORefsOffset];
6031 NumRefs = Record[NumRefsIndex];
6068 unsigned ValueID = Record[0];
6069 uint64_t ModuleId = Record[1];
6070 uint64_t RawFlags = Record[2];
6071 unsigned AliaseeValueId = Record[3];
6088 unsigned ValueID = Record[0];
6089 uint64_t ModuleId = Record[1];
6090 uint64_t RawFlags = Record[2];
6096 GVF = getDecodedGVarFlags(Record[3]);
6112 uint64_t OriginalName = Record[0];
6131 PendingTypeTestAssumeVCalls.push_back({Record[I], Record[I+1]});
6131 PendingTypeTestAssumeVCalls.push_back({Record[I], Record[I+1]});
6137 PendingTypeCheckedLoadVCalls.push_back({Record[I], Record[I+1]});
6137 PendingTypeCheckedLoadVCalls.push_back({Record[I], Record[I+1]});
6142 {{Record[0], Record[1]}, {Record.begin() + 2, Record.end()}});
6142 {{Record[0], Record[1]}, {Record.begin() + 2, Record.end()}});
6147 {{Record[0], Record[1]}, {Record.begin() + 2, Record.end()}});
6147 {{Record[0], Record[1]}, {Record.begin() + 2, Record.end()}});
6154 {Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
6154 {Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
6162 {Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
6162 {Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
6215 uint64_t ModuleId = Record[0];
6556 uint64_t Flags = Record[0];
lib/Bitcode/Reader/MetadataLoader.cpp 215 TrackingMDRef &OldMD = MetadataPtrs[Idx];
235 if (Metadata *MD = MetadataPtrs[Idx])
244 MetadataPtrs[Idx].reset(MD);
293 auto &MD = MetadataPtrs[I];
722 unsigned NumStrings = Record[0];
744 auto Offset = Record[0] + (Record[1] << 32);
744 auto Offset = Record[0] + (Record[1] << 32);
816 MDNode *MD = MetadataList.getMDNodeFwdRefOrNull(Record[i]);
835 unsigned ValueID = Record[0];
1127 MDNode *MD = MetadataList.getMDNodeFwdRefOrNull(Record[i]);
1152 Type *Ty = getTypeByID(Record[0]);
1159 LocalAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)),
1172 Type *Ty = getTypeByID(Record[i]);
1176 Elts.push_back(getMD(Record[i + 1]));
1179 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[i + 1], Ty));
1194 Type *Ty = getTypeByID(Record[0]);
1199 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)),
1222 IsDistinct = Record[0];
1223 unsigned Line = Record[1];
1224 unsigned Column = Record[2];
1225 Metadata *Scope = getMD(Record[3]);
1226 Metadata *InlinedAt = getMDOrNull(Record[4]);
1227 bool ImplicitCode = Record.size() == 6 && Record[5];
1239 IsDistinct = Record[0];
1240 unsigned Tag = Record[1];
1241 unsigned Version = Record[2];
1246 auto *Header = getMDString(Record[3]);
1249 DwarfOps.push_back(getMDOrNull(Record[I]));
1261 switch (Record[0] >> 1) {
1264 (Context, Record[1], unrotateSign(Record.back())));
1267 Val = GET_OR_DISTINCT(DISubrange, (Context, getMDOrNull(Record[1]),
1275 IsDistinct = Record[0] & 1;
1283 IsDistinct = Record[0] & 1;
1284 bool IsUnsigned = Record[0] & 2;
1286 GET_OR_DISTINCT(DIEnumerator, (Context, unrotateSign(Record[1]),
1287 IsUnsigned, getMDString(Record[2]))),
1296 IsDistinct = Record[0];
1298 static_cast<DINode::DIFlags>(Record[6]) : DINode::FlagZero;
1302 (Context, Record[1], getMDString(Record[2]), Record[3],
1302 (Context, Record[1], getMDString(Record[2]), Record[3],
1302 (Context, Record[1], getMDString(Record[2]), Record[3],
1303 Record[4], Record[5], Flags)),
1303 Record[4], Record[5], Flags)),
1315 if (Record.size() > 12 && Record[12])
1316 DWARFAddressSpace = Record[12] - 1;
1318 IsDistinct = Record[0];
1319 DINode::DIFlags Flags = static_cast<DINode::DIFlags>(Record[10]);
1322 (Context, Record[1], getMDString(Record[2]),
1322 (Context, Record[1], getMDString(Record[2]),
1323 getMDOrNull(Record[3]), Record[4],
1323 getMDOrNull(Record[3]), Record[4],
1324 getDITypeRefOrNull(Record[5]),
1325 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1325 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1325 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1326 Record[9], DWARFAddressSpace, Flags,
1327 getDITypeRefOrNull(Record[11]))),
1338 IsDistinct = Record[0] & 0x1;
1339 bool IsNotUsedInTypeRef = Record[0] >= 2;
1340 unsigned Tag = Record[1];
1341 MDString *Name = getMDString(Record[2]);
1342 Metadata *File = getMDOrNull(Record[3]);
1343 unsigned Line = Record[4];
1344 Metadata *Scope = getDITypeRefOrNull(Record[5]);
1346 uint64_t SizeInBits = Record[7];
1347 if (Record[8] > (uint64_t)std::numeric_limits<uint32_t>::max())
1349 uint32_t AlignInBits = Record[8];
1351 DINode::DIFlags Flags = static_cast<DINode::DIFlags>(Record[10]);
1353 unsigned RuntimeLang = Record[12];
1357 auto *Identifier = getMDString(Record[15]);
1372 BaseType = getDITypeRefOrNull(Record[6]);
1373 OffsetInBits = Record[9];
1374 Elements = getMDOrNull(Record[11]);
1375 VTableHolder = getDITypeRefOrNull(Record[13]);
1376 TemplateParams = getMDOrNull(Record[14]);
1378 Discriminator = getMDOrNull(Record[16]);
1404 bool IsOldTypeRefArray = Record[0] < 2;
1405 unsigned CC = (Record.size() > 3) ? Record[3] : 0;
1407 IsDistinct = Record[0] & 0x1;
1408 DINode::DIFlags Flags = static_cast<DINode::DIFlags>(Record[1]);
1409 Metadata *Types = getMDOrNull(Record[2]);
1424 IsDistinct = Record[0];
1427 (Context, getMDOrNull(Record[1]),
1428 getMDString(Record[2]), getMDString(Record[3]),
1428 getMDString(Record[2]), getMDString(Record[3]),
1429 getMDString(Record[4]), getMDString(Record[5]))),
1429 getMDString(Record[4]), getMDString(Record[5]))),
1439 IsDistinct = Record[0];
1446 if (Record.size() > 4 && Record[3] && Record[4])
1446 if (Record.size() > 4 && Record[3] && Record[4])
1447 Checksum.emplace(static_cast<DIFile::ChecksumKind>(Record[3]),
1448 getMDString(Record[4]));
1452 (Context, getMDString(Record[1]), getMDString(Record[2]), Checksum,
1452 (Context, getMDString(Record[1]), getMDString(Record[2]), Checksum,
1453 Record.size() > 5 ? Optional<MDString *>(getMDString(Record[5]))
1467 Context, Record[1], getMDOrNull(Record[2]), getMDString(Record[3]),
1467 Context, Record[1], getMDOrNull(Record[2]), getMDString(Record[3]),
1467 Context, Record[1], getMDOrNull(Record[2]), getMDString(Record[3]),
1468 Record[4], getMDString(Record[5]), Record[6], getMDString(Record[7]),
1468 Record[4], getMDString(Record[5]), Record[6], getMDString(Record[7]),
1468 Record[4], getMDString(Record[5]), Record[6], getMDString(Record[7]),
1468 Record[4], getMDString(Record[5]), Record[6], getMDString(Record[7]),
1469 Record[8], getMDOrNull(Record[9]), getMDOrNull(Record[10]),
1469 Record[8], getMDOrNull(Record[9]), getMDOrNull(Record[10]),
1469 Record[8], getMDOrNull(Record[9]), getMDOrNull(Record[10]),
1470 getMDOrNull(Record[12]), getMDOrNull(Record[13]),
1470 getMDOrNull(Record[12]), getMDOrNull(Record[13]),
1471 Record.size() <= 15 ? nullptr : getMDOrNull(Record[15]),
1472 Record.size() <= 14 ? 0 : Record[14],
1473 Record.size() <= 16 ? true : Record[16],
1474 Record.size() <= 17 ? false : Record[17],
1475 Record.size() <= 18 ? 0 : Record[18],
1476 Record.size() <= 19 ? 0 : Record[19]);
1482 if (Metadata *SPs = getMDOrNullWithoutPlaceholders(Record[11]))
1490 bool HasSPFlags = Record[0] & 4;
1495 Flags = static_cast<DINode::DIFlags>(Record[11 + 2]);
1497 Flags = static_cast<DINode::DIFlags>(Record[11]);
1498 SPFlags = static_cast<DISubprogram::DISPFlags>(Record[9]);
1515 /*IsLocalToUnit=*/Record[7], /*IsDefinition=*/Record[8],
1515 /*IsLocalToUnit=*/Record[7], /*IsDefinition=*/Record[8],
1516 /*IsOptimized=*/Record[14], /*Virtuality=*/Record[11],
1516 /*IsOptimized=*/Record[14], /*Virtuality=*/Record[11],
1520 IsDistinct = (Record[0] & 1) || (SPFlags & DISubprogram::SPFlagDefinition);
1526 bool HasUnit = Record[0] & 2;
1547 Metadata *CUorFn = getMDOrNull(Record[12 + OffsetB]);
1551 getDITypeRefOrNull(Record[1]), // scope
1552 getMDString(Record[2]), // name
1553 getMDString(Record[3]), // linkageName
1554 getMDOrNull(Record[4]), // file
1555 Record[5], // line
1556 getMDOrNull(Record[6]), // type
1557 Record[7 + OffsetA], // scopeLine
1558 getDITypeRefOrNull(Record[8 + OffsetA]), // containingType
1559 Record[10 + OffsetA], // virtualIndex
1560 HasThisAdj ? Record[16 + OffsetB] : 0, // thisAdjustment
1564 getMDOrNull(Record[13 + OffsetB]), // templateParams
1565 getMDOrNull(Record[14 + OffsetB]), // declaration
1566 getMDOrNull(Record[15 + OffsetB]), // retainedNodes
1567 HasThrownTypes ? getMDOrNull(Record[17 + OffsetB])
1591 IsDistinct = Record[0];
1594 (Context, getMDOrNull(Record[1]),
1595 getMDOrNull(Record[2]), Record[3], Record[4])),
1595 getMDOrNull(Record[2]), Record[3], Record[4])),
1595 getMDOrNull(Record[2]), Record[3], Record[4])),
1604 IsDistinct = Record[0];
1607 (Context, getMDOrNull(Record[1]),
1608 getMDOrNull(Record[2]), Record[3])),
1608 getMDOrNull(Record[2]), Record[3])),
1614 IsDistinct = Record[0] & 1;
1617 (Context, getMDOrNull(Record[1]),
1618 getMDOrNull(Record[2]), getMDString(Record[3]),
1618 getMDOrNull(Record[2]), getMDString(Record[3]),
1619 getMDOrNull(Record[4]), Record[5])),
1619 getMDOrNull(Record[4]), Record[5])),
1628 Name = getMDString(Record[2]);
1630 Name = getMDString(Record[3]);
1634 IsDistinct = Record[0] & 1;
1635 bool ExportSymbols = Record[0] & 2;
1638 (Context, getMDOrNull(Record[1]), Name, ExportSymbols)),
1647 IsDistinct = Record[0];
1650 (Context, Record[1], Record[2], getMDString(Record[3]),
1650 (Context, Record[1], Record[2], getMDString(Record[3]),
1650 (Context, Record[1], Record[2], getMDString(Record[3]),
1651 getMDString(Record[4]))),
1660 IsDistinct = Record[0];
1663 (Context, Record[1], Record[2], getMDOrNull(Record[3]),
1663 (Context, Record[1], Record[2], getMDOrNull(Record[3]),
1663 (Context, Record[1], Record[2], getMDOrNull(Record[3]),
1664 getMDOrNull(Record[4]))),
1673 IsDistinct = Record[0];
1675 (Context, getMDString(Record[1]),
1676 getDITypeRefOrNull(Record[2]))),
1685 IsDistinct = Record[0];
1688 (Context, Record[1], getMDString(Record[2]),
1688 (Context, Record[1], getMDString(Record[2]),
1689 getDITypeRefOrNull(Record[3]),
1690 getMDOrNull(Record[4]))),
1699 IsDistinct = Record[0] & 1;
1700 unsigned Version = Record[0] >> 1;
1706 (Context, getMDOrNull(Record[1]), getMDString(Record[2]),
1706 (Context, getMDOrNull(Record[1]), getMDString(Record[2]),
1707 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1707 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1707 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1708 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1708 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1708 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1709 getMDOrNull(Record[9]), getMDOrNull(Record[10]), Record[11])),
1709 getMDOrNull(Record[9]), getMDOrNull(Record[10]), Record[11])),
1709 getMDOrNull(Record[9]), getMDOrNull(Record[10]), Record[11])),
1718 (Context, getMDOrNull(Record[1]),
1719 getMDString(Record[2]), getMDString(Record[3]),
1719 getMDString(Record[2]), getMDString(Record[3]),
1720 getMDOrNull(Record[4]), Record[5],
1720 getMDOrNull(Record[4]), Record[5],
1721 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1721 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1721 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1722 getMDOrNull(Record[10]), nullptr, Record[11])),
1722 getMDOrNull(Record[10]), nullptr, Record[11])),
1730 Metadata *Expr = getMDOrNull(Record[9]);
1733 if (Record[11] > (uint64_t)std::numeric_limits<uint32_t>::max())
1735 AlignInBits = Record[11];
1752 (Context, getMDOrNull(Record[1]), getMDString(Record[2]),
1752 (Context, getMDOrNull(Record[1]), getMDString(Record[2]),
1753 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1753 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1753 getMDString(Record[3]), getMDOrNull(Record[4]), Record[5],
1754 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1754 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1754 getDITypeRefOrNull(Record[6]), Record[7], Record[8],
1755 getMDOrNull(Record[10]), nullptr, AlignInBits));
1777 IsDistinct = Record[0] & 1;
1778 bool HasAlignment = Record[0] & 2;
1783 DINode::DIFlags Flags = static_cast<DINode::DIFlags>(Record[7 + HasTag]);
1786 if (Record[8 + HasTag] > (uint64_t)std::numeric_limits<uint32_t>::max())
1788 AlignInBits = Record[8 + HasTag];
1792 (Context, getMDOrNull(Record[1 + HasTag]),
1793 getMDString(Record[2 + HasTag]),
1794 getMDOrNull(Record[3 + HasTag]), Record[4 + HasTag],
1794 getMDOrNull(Record[3 + HasTag]), Record[4 + HasTag],
1795 getDITypeRefOrNull(Record[5 + HasTag]),
1796 Record[6 + HasTag], Flags, AlignInBits)),
1805 IsDistinct = Record[0] & 1;
1808 (Context, getMDOrNull(Record[1]),
1809 getMDString(Record[2]),
1810 getMDOrNull(Record[3]), Record[4])),
1810 getMDOrNull(Record[3]), Record[4])),
1819 IsDistinct = Record[0] & 1;
1820 uint64_t Version = Record[0] >> 1;
1836 IsDistinct = Record[0];
1837 Metadata *Expr = getMDOrNull(Record[2]);
1842 (Context, getMDOrNull(Record[1]), Expr)),
1851 IsDistinct = Record[0];
1854 (Context, getMDString(Record[1]),
1855 getMDOrNull(Record[2]), Record[3],
1855 getMDOrNull(Record[2]), Record[3],
1856 getMDString(Record[4]), getMDString(Record[5]),
1856 getMDString(Record[4]), getMDString(Record[5]),
1857 Record[6], getDITypeRefOrNull(Record[7]))),
1857 Record[6], getDITypeRefOrNull(Record[7]))),
1866 IsDistinct = Record[0];
1870 (Context, Record[1], getMDOrNull(Record[2]),
1870 (Context, Record[1], getMDOrNull(Record[2]),
1871 getDITypeRefOrNull(Record[3]),
1872 HasFile ? getMDOrNull(Record[6]) : nullptr,
1873 HasFile ? Record[4] : 0, getMDString(Record[5]))),
1873 HasFile ? Record[4] : 0, getMDString(Record[5]))),
1902 unsigned ValueID = Record[0];
2024 Instruction *Inst = InstructionList[Record[0]];
2026 unsigned Kind = Record[i];
2033 auto Idx = Record[i + 1];
2072 unsigned Kind = Record[0];
lib/Bitcode/Writer/BitcodeWriter.cpp 2180 Record.push_back(MDs[i].first);
2181 Record.push_back(VE.getMetadataID(MDs[i].second));
2204 StringRef KName = Names[MDKindID];
4058 NameVals[6] = Count;
4059 NameVals[7] = RORefCnt;
4060 NameVals[8] = WORefCnt;
4284 support::endian::write32le(&Buffer[Position], Value);
lib/Bitcode/Writer/ValueEnumerator.cpp 236 Stack.back().Shuffle[I] = List[I].second;
424 EnumerateMetadata(&F, MDs[i].second);
755 for (unsigned I = 0, E = Order.size(); I != E && !Order[I].F; ++I) {
756 auto *MD = Order[I].get(OldMDs);
773 unsigned F = Order[I].F;
785 auto *MD = Order[I].get(OldMDs);
999 assert(ValueMap.count(FnLocalMDVector[i]->getValue()) &&
1001 EnumerateFunctionLocalMetadata(F, FnLocalMDVector[i]);
lib/Bitstream/Reader/BitstreamReader.cpp 484 CurBlockInfo = &NewBlockInfo.getOrCreateBlockInfo((unsigned)Record[0]);
493 Name += (char)Record[i];
503 Name += (char)Record[i];
504 CurBlockInfo->RecordNames.push_back(std::make_pair((unsigned)Record[0],
lib/CodeGen/AggressiveAntiDepBreaker.cpp 134 BitVector CPSet = TRI->getAllocatableSet(MF, CriticalPathRCs[i]);
lib/CodeGen/AllocationOrder.cpp 45 dbgs() << ' ' << printReg(Hints[I], TRI);
51 assert(is_contained(Order, Hints[I]) &&
lib/CodeGen/AsmPrinter/AccelTable.cpp 561 CUIndex[CU.index()] = Count++;
579 return CUIndex[DD.lookupCU(CUDie)->getUniqueID()];
lib/CodeGen/AsmPrinter/AddressPool.cpp 67 Entries[I.second.Number] =
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 1734 if (CPSections[--SecIdx].S == S) {
1744 if (Align > CPSections[SecIdx].Alignment)
1745 CPSections[SecIdx].Alignment = Align;
1746 CPSections[SecIdx].CPEs.push_back(i);
1753 for (unsigned j = 0, ee = CPSections[i].CPEs.size(); j != ee; ++j) {
1754 unsigned CPI = CPSections[i].CPEs[j];
1754 unsigned CPI = CPSections[i].CPEs[j];
1759 if (CurSection != CPSections[i].S) {
1760 OutStreamer->SwitchSection(CPSections[i].S);
1761 EmitAlignment(Align(CPSections[i].Alignment));
1762 CurSection = CPSections[i].S;
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 645 unsigned Reg = ExplicitFwdRegDefs[0];
1571 RegVar->initializeDbgValue(Entries[0].getValues()[0]);
2228 const DbgValueLoc &Value = Values[0];
2543 const MCSymbol *StartSym = List[0].Sym;
2545 const SymbolCU &Prev = List[n - 1];
2546 const SymbolCU &Cur = List[n];
lib/CodeGen/AsmPrinter/DwarfDebug.h 172 return FrameIndexExprs.size() ? FrameIndexExprs[0].Expr : nullptr;
214 FrameIndexExprs[0].Expr->getNumElements())) &&
lib/CodeGen/AsmPrinter/DwarfExpression.cpp 278 auto Reg = DwarfRegs[0];
lib/CodeGen/AsmPrinter/DwarfStringPool.cpp 119 Entries[Entry.getValue().Index] = &Entry;
lib/CodeGen/AsmPrinter/EHStreamer.cpp 120 SizeActionEntry = getSLEB128Size(Actions[PrevAction].NextAction) +
121 getSLEB128Size(Actions[PrevAction].ValueForTypeID);
125 SizeActionEntry -= getSLEB128Size(Actions[PrevAction].ValueForTypeID);
126 SizeActionEntry += -Actions[PrevAction].NextAction;
127 PrevAction = Actions[PrevAction].Previous;
136 isFilterEHSelector(TypeID) ? FilterOffsets[-1 - TypeID] : TypeID;
311 CallSites[SiteNo - 1] = Site;
lib/CodeGen/AsmPrinter/WasmException.cpp 94 CallSites[LPadIndex] = Site;
lib/CodeGen/AsmPrinter/WinException.cpp 822 MCSymbol *HandlerMapXData = HandlerMaps[I];
1205 int &MinEnclosingState = MinClauseMap[EnteredState];
1296 if (Clause.EnclosingState != MinClauseMap[Clause.State]) {
1299 assert(Clause.EnclosingState > MinClauseMap[Clause.State]);
lib/CodeGen/BranchRelaxation.cpp 131 assert(isAligned(MBB.getAlignment(), BlockInfo[Num].Offset));
132 assert(!Num || BlockInfo[PrevNum].postOffset(MBB) <= BlockInfo[Num].Offset);
132 assert(!Num || BlockInfo[PrevNum].postOffset(MBB) <= BlockInfo[Num].Offset);
133 assert(BlockInfo[Num].Size == computeBlockSize(MBB));
143 const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];
161 BlockInfo[MBB.getNumber()].Size = computeBlockSize(MBB);
203 BlockInfo[Num].Offset = BlockInfo[PrevNum].postOffset(MBB);
203 BlockInfo[Num].Offset = BlockInfo[PrevNum].postOffset(MBB);
260 BlockInfo[OrigBB->getNumber()].Size = computeBlockSize(*OrigBB);
264 BlockInfo[NewBB->getNumber()].Size = computeBlockSize(*NewBB);
309 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size;
317 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size;
323 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size;
444 int64_t DestOffset = BlockInfo[DestBB->getNumber()].Offset;
449 BlockInfo[MBB->getNumber()].Size -= OldBrSize;
471 BlockInfo[BranchBB->getNumber()].Size += TII->insertIndirectBranch(
lib/CodeGen/CallingConvLower.cpp 64 UsedRegs[*AI/32] |= 1 << (*AI&31);
149 MVT ArgVT = ArgVTs[i];
150 ISD::ArgFlagsTy ArgFlags = Flags[i];
227 if (Locs[I].isRegLoc())
228 Regs.push_back(MCPhysReg(Locs[I].getLocReg()));
277 const CCValAssign &Loc1 = RVLocs1[I];
278 const CCValAssign &Loc2 = RVLocs2[I];
lib/CodeGen/CodeGenPrepare.cpp 2402 Inst->setOperand(It, OriginalValues[It]);
2940 auto it = NodeMap.find(NodeList[CurrentIndex]);
2956 return Set->NodeList[CurrentIndex];
3120 AddrModes[0].compare(NewAddrMode);
3184 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes);
3198 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType());
4589 Instruction *User = MemoryUses[i].first;
4590 unsigned OpNo = MemoryUses[i].second;
6104 if (SplatElem != -1 && Mask[i] != -1 && Mask[i] != SplatElem)
6104 if (SplatElem != -1 && Mask[i] != -1 && Mask[i] != SplatElem)
6106 SplatElem = Mask[i];
lib/CodeGen/DwarfEHPrepare.cpp 167 ResumeInst *RI = Resumes[I];
169 Resumes[ResumesLeft++] = RI;
lib/CodeGen/EarlyIfConversion.cpp 567 PHIInfo &PI = PHIs[i];
587 PHIInfo &PI = PHIs[i];
841 SSAIfConv::PHIInfo &PI = IfConv.PHIs[i];
lib/CodeGen/EdgeBundles.cpp 62 Blocks[b0].push_back(i);
64 Blocks[b1].push_back(i);
lib/CodeGen/ExecutionDomainFix.cpp 172 LiveRegsDVInfo &Incoming = MBBOutRegsInfos[pred->getNumber()];
215 for (DomainValue *OldLiveReg : MBBOutRegsInfos[MBBNumber]) {
218 MBBOutRegsInfos[MBBNumber] = LiveRegs;
lib/CodeGen/ExpandMemCmp.cpp 338 const LoadEntry &CurLoadEntry = LoadSequence[LoadIndex];
436 const LoadEntry &CurLoadEntry = LoadSequence[BlockIndex];
lib/CodeGen/GlobalISel/CallLowering.cpp 77 auto &Flags = Arg.Flags[0];
144 MIRBuilder.buildInsert(NewDst, Dst, SrcRegs[i], Offsets[i]);
164 MIRBuilder.buildExtract(DstRegs[i], SrcReg, Offsets[i]);
188 MVT CurVT = MVT::getVT(Args[i].Ty);
189 if (Handler.assignArg(i, CurVT, CurVT, CCValAssign::Full, Args[i],
190 Args[i].Flags[0], CCInfo)) {
190 Args[i].Flags[0], CCInfo)) {
217 if (Handler.assignArg(i, NewVT, NewVT, CCValAssign::Full, Args[i],
218 Args[i].Flags[0], CCInfo))
218 Args[i].Flags[0], CCInfo))
223 ISD::ArgFlagsTy OrigFlags = Args[i].Flags[0];
223 ISD::ArgFlagsTy OrigFlags = Args[i].Flags[0];
224 Args[i].OrigRegs.push_back(Args[i].Regs[0]);
224 Args[i].OrigRegs.push_back(Args[i].Regs[0]);
224 Args[i].OrigRegs.push_back(Args[i].Regs[0]);
225 Args[i].Regs.clear();
226 Args[i].Flags.clear();
242 Args[i].Regs.push_back(Reg);
243 Args[i].Flags.push_back(Flags);
245 Args[i], Args[i].Flags[Part], CCInfo)) {
245 Args[i], Args[i].Flags[Part], CCInfo)) {
245 Args[i], Args[i].Flags[Part], CCInfo)) {
258 Register LargeReg = Args[i].Regs[0];
258 Register LargeReg = Args[i].Regs[0];
262 ISD::ArgFlagsTy OrigFlags = Args[i].Flags[0];
262 ISD::ArgFlagsTy OrigFlags = Args[i].Flags[0];
264 Args[i].Regs.clear();
265 Args[i].Flags.clear();
275 Args[i].Regs.push_back(Unmerge.getReg(PartIdx));
276 Args[i].Flags.push_back(Flags);
278 Args[i], Args[i].Flags[PartIdx], CCInfo))
278 Args[i], Args[i].Flags[PartIdx], CCInfo))
278 Args[i], Args[i].Flags[PartIdx], CCInfo))
288 CCValAssign &VA = ArgLocs[j];
292 j += Handler.assignCustomValue(Args[i], makeArrayRef(ArgLocs).slice(j));
297 Register ArgReg = Args[i].Regs[0];
297 Register ArgReg = Args[i].Regs[0];
299 MVT OrigVT = MVT::getVT(Args[i].Ty);
305 unsigned NumArgRegs = Args[i].Regs.size();
313 VA = ArgLocs[j + Part];
314 Handler.assignValueToReg(Args[i].Regs[Part], VA.getLocReg(), VA);
314 Handler.assignValueToReg(Args[i].Regs[Part], VA.getLocReg(), VA);
319 MIRBuilder.buildMerge(Args[i].OrigRegs[0], Args[i].Regs);
319 MIRBuilder.buildMerge(Args[i].OrigRegs[0], Args[i].Regs);
319 MIRBuilder.buildMerge(Args[i].OrigRegs[0], Args[i].Regs);
343 assert((j + (Args[i].Regs.size() - 1)) < ArgLocs.size() &&
346 for (unsigned Part = 0; Part < Args[i].Regs.size(); ++Part) {
348 VA = ArgLocs[j + Part];
349 Handler.assignValueToReg(Args[i].Regs[Part], VA.getLocReg(), VA);
349 Handler.assignValueToReg(Args[i].Regs[Part], VA.getLocReg(), VA);
351 j += Args[i].Regs.size() - 1;
358 if (Args[i].Regs.size() > 1) {
364 MVT VT = MVT::getVT(Args[i].Ty);
384 MVT VT = MVT::getVT(Args[i].Ty);
385 CCAssignFn &Fn = Args[i].IsFixed ? AssignFnFixed : AssignFnVarArg;
386 if (Fn(i, VT, VT, CCValAssign::Full, Args[i].Flags[0], CCState)) {
386 if (Fn(i, VT, VT, CCValAssign::Full, Args[i].Flags[0], CCState)) {
429 const CCValAssign &Loc1 = ArgLocs1[i];
430 const CCValAssign &Loc2 = ArgLocs2[i];
lib/CodeGen/GlobalISel/CombinerHelper.cpp 218 int Idx = Mask[i];
225 (ConcatSrcs[i / SrcNumElts] >= 0 &&
226 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts)))
229 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts;
1240 MIB.buildStore(LoadVals[I], StorePtr, *StoreMMO);
lib/CodeGen/GlobalISel/IRTranslator.cpp 208 VRegs->push_back(MRI->createGenericVirtualRegister(SplitTys[0]));
976 DstRegs[i] = SrcRegs[Idx++];
993 DstRegs[i] = *InsertedIt++;
995 DstRegs[i] = SrcRegs[i];
1031 MIRBuilder.buildCopy(Regs[0], SrcReg);
1777 Register PtrVReg = MRI->createGenericVirtualRegister(Tys[0]);
1867 MIRBuilder.buildCopy(Regs[0], Elt);
1891 MIRBuilder.buildCopy(Regs[0], Elt);
lib/CodeGen/GlobalISel/LegalizerHelper.cpp 737 MIRBuilder.buildUAddo(DstReg, CarryOut, Src1Regs[i], Src2Regs[i]);
737 MIRBuilder.buildUAddo(DstReg, CarryOut, Src1Regs[i], Src2Regs[i]);
739 MIRBuilder.buildUAdde(DstReg, CarryOut, Src1Regs[i],
740 Src2Regs[i], CarryIn);
769 {Src1Regs[0], Src2Regs[0]});
769 {Src1Regs[0], Src2Regs[0]});
777 {Src1Regs[i], Src2Regs[i], BorrowIn});
777 {Src1Regs[i], Src2Regs[i], BorrowIn});
922 SrcRegs[i / 2]);
927 DstRegs[i] = MRI.createGenericVirtualRegister(NarrowTy);
929 MIRBuilder.buildInstr(TargetOpcode::G_PHI).addDef(DstRegs[i]);
931 MIB.addUse(SrcRegs[j / 2][i]).add(MI.getOperand(j + 1));
931 MIB.addUse(SrcRegs[j / 2][i]).add(MI.getOperand(j + 1));
1046 DstRegs.push_back(SrcRegs[i]);
1065 {SrcRegs[i], SizeInBits % NarrowTy.getScalarSizeInBits()})
2386 MIRBuilder.buildInstr(Opc, {DstReg}, {Src0Regs[i]}, Flags);
2388 MIRBuilder.buildInstr(Opc, {DstReg}, {Src0Regs[i], Src1Regs[i]}, Flags);
2388 MIRBuilder.buildInstr(Opc, {DstReg}, {Src0Regs[i], Src1Regs[i]}, Flags);
2391 {Src0Regs[i], Src1Regs[i], Src2Regs[i]}, Flags);
2391 {Src0Regs[i], Src1Regs[i], Src2Regs[i]}, Flags);
2391 {Src0Regs[i], Src1Regs[i], Src2Regs[i]}, Flags);
2483 NewInsts[InstCount++].addUse(PartRegs[J]);
2483 NewInsts[InstCount++].addUse(PartRegs[J]);
2485 NewInsts[InstCount++].addUse(LeftoverRegs[J]);
2485 NewInsts[InstCount++].addUse(LeftoverRegs[J]);
2536 .addUse(SrcRegs[I]);
2601 MIRBuilder.buildICmp(Pred, DstReg, Src1Regs[I], Src2Regs[I]);
2601 MIRBuilder.buildICmp(Pred, DstReg, Src1Regs[I], Src2Regs[I]);
2604 = MIRBuilder.buildFCmp(Pred, DstReg, Src1Regs[I], Src2Regs[I]);
2604 = MIRBuilder.buildFCmp(Pred, DstReg, Src1Regs[I], Src2Regs[I]);
2676 MIRBuilder.buildSelect(DstReg, CondTy.isVector() ? Src0Regs[i] : CondReg,
2677 Src1Regs[i], Src2Regs[i]);
2677 Src1Regs[i], Src2Regs[i]);
2747 MachineInstrBuilder MIB = NewInsts[J];
2748 MIB.addUse(J < NumParts ? PartRegs[J] : LeftoverRegs[J - NumParts]);
2748 MIB.addUse(J < NumParts ? PartRegs[J] : LeftoverRegs[J - NumParts]);
2921 MIRBuilder.buildStore(ValRegs[Idx], NewAddrReg, *NewMMO);
3360 DstRegs[DstIdx] = FactorSum;
3389 B.buildUAddo(NarrowTy, LLT::scalar(1), Factors[0], Factors[1]);
3389 B.buildUAddo(NarrowTy, LLT::scalar(1), Factors[0], Factors[1]);
3394 B.buildUAddo(NarrowTy, LLT::scalar(1), FactorSum, Factors[i]);
3401 FactorSum = B.buildAdd(NarrowTy, Factors[0], Factors[1]).getReg(0);
3401 FactorSum = B.buildAdd(NarrowTy, Factors[0], Factors[1]).getReg(0);
3403 FactorSum = B.buildAdd(NarrowTy, FactorSum, Factors[i]).getReg(0);
3407 DstRegs[DstIdx] = FactorSum;
3441 IsMulHigh ? &DstTmpRegs[DstTmpParts / 2] : &DstTmpRegs[0], NumDstParts);
3441 IsMulHigh ? &DstTmpRegs[DstTmpParts / 2] : &DstTmpRegs[0], NumDstParts);
3477 DstRegs.push_back(SrcRegs[i]);
3493 Register SegReg = SrcRegs[i];
3497 MIRBuilder.buildExtract(SegReg, SrcRegs[i], ExtractOffset);
3541 DstRegs.push_back(SrcRegs[i]);
3573 MIRBuilder.buildInsert(DstReg, SrcRegs[i], SegReg, InsertOffset);
3610 {Src0Regs[I], Src1Regs[I]});
3610 {Src0Regs[I], Src1Regs[I]});
3617 {LeftoverTy}, {Src0LeftoverRegs[I], Src1LeftoverRegs[I]});
3617 {LeftoverTy}, {Src0LeftoverRegs[I], Src1LeftoverRegs[I]});
3657 CondReg, Src1Regs[I], Src2Regs[I]);
3657 CondReg, Src1Regs[I], Src2Regs[I]);
3663 LeftoverTy, CondReg, Src1LeftoverRegs[I], Src2LeftoverRegs[I]);
3663 LeftoverTy, CondReg, Src1LeftoverRegs[I], Src2LeftoverRegs[I]);
4123 if (Mask[0] < 0 || Mask[0] > 1)
4123 if (Mask[0] < 0 || Mask[0] > 1)
4126 Val = Mask[0] == 0 ? Src0Reg : Src1Reg;
lib/CodeGen/GlobalISel/LegalizerInfo.cpp 299 for (auto LLT2Action : SpecifiedActions[OpcodeIdx][TypeIdx]) {
320 ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx] != nullptr)
321 S = ScalarSizeChangeStrategies[OpcodeIdx][TypeIdx];
363 VectorElementSizeChangeStrategies[OpcodeIdx][TypeIdx] != nullptr)
365 VectorElementSizeChangeStrategies[OpcodeIdx][TypeIdx];
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp 213 if (!OperandsMapping[0]) {
218 OperandsMapping[0] = &getValueMapping(0, ResultSize, *CurRegBank);
220 OperandsMapping[0] = ValMapping;
245 OperandsMapping[OpIdx] = ValMapping;
660 int StartIdx = OpToNewVRegIdx[OpIdx];
667 OpToNewVRegIdx[OpIdx] = StartIdx;
674 return make_range(&NewVRegs[StartIdx], End);
689 : &NewVRegs[StartIdx + NumVal];
721 assert(NewVRegs[OpToNewVRegIdx[OpIdx] + PartialMapIdx] == 0 &&
721 assert(NewVRegs[OpToNewVRegIdx[OpIdx] + PartialMapIdx] == 0 &&
723 NewVRegs[OpToNewVRegIdx[OpIdx] + PartialMapIdx] = NewVReg;
723 NewVRegs[OpToNewVRegIdx[OpIdx] + PartialMapIdx] = NewVReg;
lib/CodeGen/GlobalMerge.cpp 295 GlobalVariable *GV = Globals[GI];
lib/CodeGen/IndirectBrExpandPass.cpp 188 SwitchBB = IndirectBrs[0]->getParent();
189 SwitchValue = GetSwitchValue(IndirectBrs[0]);
190 IndirectBrs[0]->eraseFromParent();
211 auto *SI = SwitchInst::Create(SwitchValue, BBs[0], BBs.size(), SwitchBB);
215 SI->addCase(ConstantInt::get(CommonITy, i + 1), BBs[i]);
lib/CodeGen/InlineSpiller.cpp 706 RegsToSpill[ResultPos++] = Reg;
1293 MachineDomTreeNode *Node = Orders[idx++];
lib/CodeGen/InterferenceCache.cpp 101 RegUnits[i].VirtTag = LIUArray[*Units].getTag();
129 if (LIUArray[*Units].changedSince(RegUnits[i].VirtTag))
143 RegUnitInfo &RUI = RegUnits[i];
149 RegUnitInfo &RUI = RegUnits[i];
160 BlockInterference *BI = &Blocks[MBBNum];
169 LiveIntervalUnion::SegmentIter &I = RegUnits[i].VirtI;
181 LiveInterval::const_iterator I = RegUnits[i].FixedI;
182 LiveInterval::const_iterator E = RegUnits[i].Fixed->end();
212 BI = &Blocks[MBBNum];
220 LiveIntervalUnion::SegmentIter &I = RegUnits[i].VirtI;
236 LiveInterval::iterator &I = RegUnits[i].FixedI;
237 LiveRange *LR = RegUnits[i].Fixed;
lib/CodeGen/InterferenceCache.h 130 if (Blocks[MBBNum].Tag != Tag)
132 return &Blocks[MBBNum];
lib/CodeGen/InterleavedAccessPass.cpp 312 if (!isDeInterleaveMask(Shuffles[0]->getShuffleMask(), Factor, Index,
320 Type *VecTy = Shuffles[0]->getType();
325 if (Shuffles[i]->getType() != VecTy)
328 if (!isDeInterleaveMaskOfFactor(Shuffles[i]->getShuffleMask(), Factor,
385 if (Indices[I] == Index) {
lib/CodeGen/LiveDebugVariables.cpp 233 if (locations[i].isReg() &&
234 locations[i].getReg() == LocMO.getReg() &&
235 locations[i].getSubReg() == LocMO.getSubReg())
239 if (LocMO.isIdenticalTo(locations[i]))
542 locations[i].print(OS, TRI);
568 if (locations[i].isReg() &&
569 Register::isVirtualRegister(locations[i].getReg()))
570 LDV->mapVirtReg(locations[i].getReg(), this);
812 LiveInterval *DstLI = CopyValues[j].first;
813 const VNInfo *DstVNI = CopyValues[j].second;
845 SlotIndex Idx = Defs[i].first;
846 DbgValueLocation Loc = Defs[i].second;
847 const MachineOperand &LocMO = locations[Loc.locNo()];
951 userValues[i]->computeIntervals(MF->getRegInfo(), *TRI, *LIS, LS);
952 userValues[i]->mapVirtRegs(this);
1044 MO.setSubReg(locations[OldLocNo].getSubReg());
1122 const MachineOperand *Loc = &locations[LocNo];
1169 MachineOperand Loc = locations[I];
1203 LocNoMap[I] = NewLocNo;
1230 unsigned NewLocNo = LocNoMap[Loc.locNo()];
1296 locations[Loc.locNo()] :
lib/CodeGen/LiveInterval.cpp 655 (NewVNInfo[LHSValID] && NewVNInfo[LHSValID] != getValNumInfo(i))) {
655 (NewVNInfo[LHSValID] && NewVNInfo[LHSValID] != getValNumInfo(i))) {
666 OutIt->valno = NewVNInfo[LHSValNoAssignments[OutIt->valno->id]];
668 VNInfo* nextValNo = NewVNInfo[LHSValNoAssignments[I->valno->id]];
696 S.valno = NewVNInfo[RHSValNoAssignments[S.valno->id]];
702 VNInfo *VNI = NewVNInfo[i];
707 valnos[NumValNos] = VNI;
1394 const VNInfo &VNI = *SR.valnos[I];
1403 if (ComponentNum > 0 && SubRanges[ComponentNum-1] == nullptr) {
1404 SubRanges[ComponentNum-1]
lib/CodeGen/LiveIntervals.cpp 216 std::pair<unsigned, unsigned> &RMB = RegMaskBlocks[MBB.getNumber()];
330 LiveRange *LR = RegUnitRanges[Unit];
333 LR = RegUnitRanges[Unit] = new LiveRange(UseSegmentSetForPhysRegs);
347 computeRegUnitRange(*RegUnitRanges[Unit], Unit);
lib/CodeGen/LiveRangeCalc.cpp 362 MachineBasicBlock *MBB = MF->getBlockNumbered(WorkList[i]);
lib/CodeGen/LiveRangeEdit.cpp 384 unsigned Reg = RegsToErase[i];
lib/CodeGen/LiveRangeUtils.h 30 while (J != E && VNIClasses[J->valno->id] == 0)
33 if (unsigned eq = VNIClasses[I->valno->id]) {
44 while (j != e && VNIClasses[j] == 0)
48 if (unsigned eq = VNIClasses[i]) {
53 LR.valnos[j++] = VNI;
lib/CodeGen/LiveVariables.cpp 542 unsigned MOReg = UseRegs[i];
551 HandleRegMask(MI.getOperand(RegMasks[i]));
555 unsigned MOReg = DefRegs[i];
lib/CodeGen/LocalStackSlotAllocation.cpp 163 LocalOffsets[FrameIdx] = LocalOffset;
326 int64_t LocalOffset = LocalOffsets[Idx];
347 FrameRef &FR = FrameReferenceInsns[ref];
406 FrameReferenceInsns[ref + 1].getLocalOffset(),
407 *FrameReferenceInsns[ref + 1].getMachineInstr(), TRI)) {
lib/CodeGen/LoopTraversal.cpp 18 return MBBInfos[MBBNumber].PrimaryCompleted &&
19 MBBInfos[MBBNumber].IncomingCompleted ==
20 MBBInfos[MBBNumber].PrimaryIncoming &&
21 MBBInfos[MBBNumber].IncomingProcessed == MBB->pred_size();
37 MBBInfos[MBBNumber].PrimaryCompleted = true;
38 MBBInfos[MBBNumber].PrimaryIncoming = MBBInfos[MBBNumber].IncomingProcessed;
38 MBBInfos[MBBNumber].PrimaryIncoming = MBBInfos[MBBNumber].IncomingProcessed;
52 MBBInfos[SuccNumber].IncomingProcessed++;
54 MBBInfos[SuccNumber].IncomingCompleted++;
lib/CodeGen/MachineBlockPlacement.cpp 1596 bool IsEHPad = WorkList[0]->isEHPad();
lib/CodeGen/MachineCSE.cpp 321 for (MCRegAliasIterator AI(PhysDefs[i].second, TRI, true); AI.isValid();
344 if (MRI->isAllocatable(PhysDefs[i].second) ||
345 MRI->isReserved(PhysDefs[i].second))
572 MachineInstr *CSMI = Exps[CSVN];
586 MachineInstr *CSMI = Exps[CSVN];
lib/CodeGen/MachineCombiner.cpp 182 MachineInstr *DefInstr = InsInstrs[II->second];
185 DepthOp = InstrDepth[II->second];
204 return InstrDepth[NewRootIdx];
283 NewRootLatency += TSchedModel.computeInstrLatency(InsInstrs[i]);
lib/CodeGen/MachineFunction.cpp 733 MCSymbol *BeginLabel = LandingPad.BeginLabels[j];
734 MCSymbol *EndLabel = LandingPad.EndLabels[j];
lib/CodeGen/MachineInstr.cpp 1117 unsigned Delta = i - GroupIdx[TiedGroup];
lib/CodeGen/MachineInstrBundle.cpp 179 MachineOperand &MO = *Defs[i];
211 unsigned Reg = LocalDefs[i];
221 unsigned Reg = ExternUses[i];
lib/CodeGen/MachineLICM.cpp 332 RegLimit[i] = TRI->getRegPressureSetLimit(MF, i);
831 if (static_cast<int>(RegPressure[Class]) < -RPIdAndCost.second)
832 RegPressure[Class] = 0;
834 RegPressure[Class] += RPIdAndCost.second;
1156 int Limit = RegLimit[Class];
1183 RP[RPIdAndCost.first] += RPIdAndCost.second;
1320 MBB->insert(Pos, NewMIs[0]);
1321 MBB->insert(Pos, NewMIs[1]);
1324 if (!IsLoopInvariantInst(*NewMIs[0]) || !IsProfitableToHoist(*NewMIs[0])) {
1324 if (!IsLoopInvariantInst(*NewMIs[0]) || !IsProfitableToHoist(*NewMIs[0])) {
1325 NewMIs[0]->eraseFromParent();
1326 NewMIs[1]->eraseFromParent();
1331 UpdateRegPressure(NewMIs[1]);
1335 return NewMIs[0];
1391 unsigned Idx = Defs[i];
1399 MRI->setRegClass(Dup->getOperand(Defs[j]).getReg(), OrigRCs[j]);
1399 MRI->setRegClass(Dup->getOperand(Defs[j]).getReg(), OrigRCs[j]);
lib/CodeGen/MachineOperand.cpp 494 printEscapedString(SSNs[SSID], OS);
lib/CodeGen/MachinePipeliner.cpp 833 I.removePred(RemoveDeps[i]);
876 Topo.RemovePred(&I, Deps[i].getSUnit());
877 I.removePred(Deps[i]);
885 Topo.RemovePred(LastSU, Deps[i].getSUnit());
886 LastSU->removePred(Deps[i]);
1168 AdjK[i].push_back(N);
1181 AdjK[i].push_back(N);
1190 AdjK[OD.first].push_back(OD.second);
1204 for (auto W : AdjK[V]) {
1225 for (auto W : AdjK[V]) {
1228 if (B[W].count(SV) == 0)
1229 B[W].insert(SV);
1239 SmallPtrSet<SUnit *, 4> &BU = B[U];
1631 NodeSet &N1 = NodeSets[i];
1636 NodeSet &N2 = NodeSets[j];
2411 const SDep &Dep = SU->Preds[i];
2435 if (SU->Succs[i].getSUnit() == I) {
2436 const SDep &Dep = SU->Succs[i];
2905 Masks[I] = 1ULL << ProcResourceID;
2913 Masks[I] = 1ULL << ProcResourceID;
2915 Masks[I] |= Masks[Desc.SubUnitsIdxBegin[U]];
2915 Masks[I] |= Masks[Desc.SubUnitsIdxBegin[U]];
2924 ProcResource->Name, I, Masks[I],
2995 ++ProcResourceCount[PRE.ProcResourceIdx];
3002 ProcResourceCount[PRE.ProcResourceIdx],
lib/CodeGen/MachineSSAUpdater.cpp 94 AVals[PredValues[i].first] = PredValues[i].second;
94 AVals[PredValues[i].first] = PredValues[i].second;
194 InsertedPHI.addReg(PredValues[i].second).addMBB(PredValues[i].first);
194 InsertedPHI.addReg(PredValues[i].second).addMBB(PredValues[i].first);
lib/CodeGen/MachineScheduler.cpp 1571 SUnit *SUa = MemOpRecords[Idx].SU;
1572 SUnit *SUb = MemOpRecords[Idx+1].SU;
1573 if (TII->shouldClusterMemOps(*MemOpRecords[Idx].BaseOp,
1574 *MemOpRecords[Idx + 1].BaseOp,
1621 StoreChainDependents[Result.first->second].push_back(&SU);
1883 assert(!ExecutedResCounts[0] && "nonzero count for bad resource");
1901 RemainingCounts[PIdx] += (Factor * PI->Cycles);
1919 ReservedCyclesIndex[i] = NumUnits;
1948 unsigned NextUnreserved = ReservedCycles[InstanceIdx];
1965 unsigned StartIndex = ReservedCyclesIndex[PIdx];
2030 << '[' << InstanceIdx - ReservedCyclesIndex[ResIdx] << ']'
2073 unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx];
2152 ExecutedResCounts[PIdx] += Count;
2153 if (ExecutedResCounts[PIdx] > MaxExecutedResCount)
2154 MaxExecutedResCount = ExecutedResCounts[PIdx];
2173 assert(Rem->RemainingCounts[PIdx] >= Count && "resource double counted");
2174 Rem->RemainingCounts[PIdx] -= Count;
2191 << '[' << InstanceIdx - ReservedCyclesIndex[PIdx] << ']'
2284 ReservedCycles[InstanceIdx] =
2287 ReservedCycles[InstanceIdx] = NextCycle;
lib/CodeGen/MachineTraceMetrics.cpp 99 FixedBlockInfo *FBI = &BlockInfo[MBB->getNumber()];
129 PRCycles[PI->ProcResourceIdx] += PI->Cycles;
137 ProcResourceCycles[PROffset + K] =
138 PRCycles[K] * SchedModel.getResourceFactor(K);
176 TraceBlockInfo *TBI = &BlockInfo[MBB->getNumber()];
192 TraceBlockInfo *PredTBI = &BlockInfo[PredNum];
202 ProcResourceDepths[PROffset + K] = PredPRDepths[K] + PredPRCycles[K];
209 TraceBlockInfo *TBI = &BlockInfo[MBB->getNumber()];
227 TraceBlockInfo *SuccTBI = &BlockInfo[SuccNum];
235 ProcResourceHeights[PROffset + K] = SuccPRHeights[K] + PRCycles[K];
399 BlockInfo[MBB->getNumber()].invalidate();
488 TraceBlockInfo &TBI = BlockInfo[I->getNumber()];
506 TraceBlockInfo &TBI = BlockInfo[I->getNumber()];
524 TraceBlockInfo &BadTBI = BlockInfo[BadMBB->getNumber()];
537 TraceBlockInfo &TBI = BlockInfo[Pred->getNumber()];
562 TraceBlockInfo &TBI = BlockInfo[Succ->getNumber()];
772 const TraceBlockInfo &DefTBI = BlockInfo[DefMI->getParent()->getNumber()];
795 BlockInfo[Dep.DefMI->getParent()->getNumber()];
823 updateDepth(BlockInfo[MBB->getNumber()], UseMI, RegUnits);
843 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
862 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
933 Register Reg = MI.getOperand(ReadOps[i]).getReg();
940 LRU.Op = ReadOps[i];
990 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
1005 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
1027 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
1047 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
1160 TraceBlockInfo &TBI = BlockInfo[MBB->getNumber()];
1216 Instrs += TE.MTM.BlockInfo[getBlockNum()].InstrCount;
1282 const TraceBlockInfo &DepTBI = TE.BlockInfo[DefMI.getParent()->getNumber()];
1283 const TraceBlockInfo &TBI = TE.BlockInfo[UseMI.getParent()->getNumber()];
1326 unsigned MBBNum = &TBI - &TE.BlockInfo[0];
1340 Block = &TE.BlockInfo[Num];
1348 Block = &TE.BlockInfo[Num];
lib/CodeGen/MachineVerifier.cpp 947 if (!Types[TypeIdx].isValid())
948 Types[TypeIdx] = OpTy;
949 else if (Types[TypeIdx] != OpTy)
2772 BBState.EntryValue = SPState[StackPred->getNumber()].ExitValue;
2773 BBState.EntryIsSetup = SPState[StackPred->getNumber()].ExitIsSetup;
2802 SPState[MBB->getNumber()] = BBState;
2809 (SPState[(*I)->getNumber()].ExitValue != BBState.EntryValue ||
2810 SPState[(*I)->getNumber()].ExitIsSetup != BBState.EntryIsSetup)) {
2813 << " has exit state (" << SPState[(*I)->getNumber()].ExitValue
2814 << ", " << SPState[(*I)->getNumber()].ExitIsSetup << "), while "
2825 (SPState[(*I)->getNumber()].EntryValue != BBState.ExitValue ||
2826 SPState[(*I)->getNumber()].EntryIsSetup != BBState.ExitIsSetup)) {
2829 << " has entry state (" << SPState[(*I)->getNumber()].EntryValue
2830 << ", " << SPState[(*I)->getNumber()].EntryIsSetup << "), while "
lib/CodeGen/ModuloSchedule.cpp 241 TII->insertBranch(*Preheader, PrologBBs[0], nullptr, Cond, DebugLoc());
304 generateExistingPhis(NewBB, PrologBBs[i - 1], PredBB, KernelBB, VRMap,
306 generatePhis(NewBB, PrologBBs[i - 1], PredBB, KernelBB, VRMap, InstrMap,
864 MachineBasicBlock *Prolog = PrologBBs[j];
865 MachineBasicBlock *Epilog = EpilogBBs[i];
904 LoopInfo->setPreheader(PrologBBs[MaxIter]);
lib/CodeGen/PeepholeOptimizer.cpp 313 RegSrcs[Idx] = RegSubRegPair(SrcReg, SrcSubReg);
572 MachineOperand *UseMO = Uses[i];
lib/CodeGen/PrologEpilogInserter.cpp 1157 SPAdj = SPState[StackPred->getNumber()];
1161 SPState[BB->getNumber()] = SPAdj;
lib/CodeGen/ReachingDefAnalysis.cpp 29 MBBReachingDefs[MBBNumber].resize(NumRegUnits);
47 MBBReachingDefs[MBBNumber][*Unit].push_back(LiveRegs[*Unit]);
58 const LiveRegsDefInfo &Incoming = MBBOutRegsInfos[pred->getNumber()];
68 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]);
84 MBBOutRegsInfos[MBBNumber] = LiveRegs;
90 for (int &OutLiveReg : MBBOutRegsInfos[MBBNumber])
117 MBBReachingDefs[MBBNumber][*Unit].push_back(CurInstr);
182 for (int Def : MBBReachingDefs[MBBNumber][*Unit]) {
lib/CodeGen/RegAllocBasic.cpp 227 LiveInterval &Spill = *Intfs[i];
lib/CodeGen/RegAllocGreedy.cpp 381 if (B[i] == NoCand) {
382 B[i] = C;
1075 LiveInterval *Intf = Intfs[i];
1195 SpillPlacement::BlockConstraint &BC = SplitConstraints[i];
1592 SpillPlacement::BlockConstraint &BC = SplitConstraints[i];
1631 unsigned Number = Cand.ActiveBlocks[i];
1700 unsigned CandIn = BundleCand[Bundles->getBundle(Number, false)];
1702 GlobalSplitCandidate &Cand = GlobalCand[CandIn];
1709 unsigned CandOut = BundleCand[Bundles->getBundle(Number, true)];
1711 GlobalSplitCandidate &Cand = GlobalCand[CandOut];
1739 ArrayRef<unsigned> Blocks = GlobalCand[UsedCands[c]].ActiveBlocks;
1749 unsigned CandIn = BundleCand[Bundles->getBundle(Number, false)];
1751 GlobalSplitCandidate &Cand = GlobalCand[CandIn];
1757 unsigned CandOut = BundleCand[Bundles->getBundle(Number, true)];
1759 GlobalSplitCandidate &Cand = GlobalCand[CandOut];
1793 if (IntvMap[i] == 0) {
1800 if (IntvMap[i] < NumGlobalIntvs) {
1889 if (i == BestCand || !GlobalCand[i].PhysReg)
1891 unsigned Count = GlobalCand[i].LiveBundles.count();
1898 GlobalCand[Worst] = GlobalCand[NumCands];
1898 GlobalCand[Worst] = GlobalCand[NumCands];
1905 GlobalSplitCandidate &Cand = GlobalCand[NumCands];
1922 << printReg(GlobalCand[BestCand].PhysReg, TRI) << '\n';
1985 GlobalSplitCandidate &Cand = GlobalCand[BestCand];
2049 if (getStage(LI) == RS_New && IntvMap[i] == 0)
2192 GapWeight[Gap] = std::max(GapWeight[Gap], weight);
2192 GapWeight[Gap] = std::max(GapWeight[Gap], weight);
2216 GapWeight[Gap] = huge_valf;
2327 GapWeight[RegMaskGaps[i]] = huge_valf;
2327 GapWeight[RegMaskGaps[i]] = huge_valf;
2337 float MaxGap = GapWeight[0];
2392 if (GapWeight[SplitBefore - 1] >= MaxGap) {
2393 MaxGap = GapWeight[SplitBefore];
2395 MaxGap = std::max(MaxGap, GapWeight[i]);
2409 MaxGap = std::max(MaxGap, GapWeight[SplitAfter++]);
2442 if (IntvMap[i] == 1) {
lib/CodeGen/RegAllocPBQP.cpp 261 return std::get<0>(I)->segments[std::get<1>(I)].start;
265 return std::get<0>(I)->segments[std::get<1>(I)].end;
lib/CodeGen/RegisterClassInfo.cpp 65 CalleeSavedAliases[*AI] = *I;
134 unsigned PhysReg = CSRAlias[i];
lib/CodeGen/RegisterCoalescer.cpp 1171 if (SlotIndex::isSameInstr(EndPoints[I], CopyIdx)) {
1172 EndPoints[I] = EndPoints.back();
1468 unsigned Reg = NewMIImplDefs[i];
1695 MachineOperand &MO = UseMI->getOperand(Ops[i]);
2483 Val &V = Vals[ValNo];
2533 V.ValidLanes |= Vals[V.RedefVNI->id].ValidLanes;
2571 Val &OtherV = Other.Vals[OtherVNI->id];
2598 Val &OtherV = Other.Vals[V.OtherVNI->id];
2721 Val &V = Vals[ValNo];
2725 assert(Assignments[ValNo] != -1 && "Bad recursion?");
2733 assert(Other.Vals[V.OtherVNI->id].isAnalyzed() && "Missing recursion");
2734 Assignments[ValNo] = Other.Assignments[V.OtherVNI->id];
2734 Assignments[ValNo] = Other.Assignments[V.OtherVNI->id];
2739 << NewVNInfo[Assignments[ValNo]]->def << '\n');
2739 << NewVNInfo[Assignments[ValNo]]->def << '\n');
2745 Val &OtherV = Other.Vals[V.OtherVNI->id];
2765 Assignments[ValNo] = NewVNInfo.size();
2774 if (Vals[i].Resolution == CR_Impossible) {
2815 const Val &OV = Other.Vals[OtherI->valno->id];
2841 Val &V = Vals[i];
2853 const Val &OtherV = Other.Vals[V.OtherVNI->id];
2890 LastMI = Indexes->getInstructionFromIndex(TaintExtent[TaintNum].first);
2892 TaintedLanes = TaintExtent[TaintNum].second;
2905 Val &V = Vals[ValNo];
2924 switch (Vals[i].Resolution) {
2934 Val &OtherV = Other.Vals[Vals[i].OtherVNI->id];
2934 Val &OtherV = Other.Vals[Vals[i].OtherVNI->id];
3022 Val &V = Vals[i];
3091 if (Vals[i].Resolution != CR_Keep)
3096 Vals[i].Pruned = true;
3103 Val &V = Vals[i];
3119 switch (Vals[i].Resolution) {
3124 if (!Vals[i].ErasableImplicitDef || !Vals[i].Pruned)
3124 if (!Vals[i].ErasableImplicitDef || !Vals[i].Pruned)
3263 dbgs() << EndPoints[i];
3403 dbgs() << EndPoints[i];
3629 if (LocalWorkList[j])
3630 WorkList.push_back(LocalWorkList[j]);
3716 unsigned Reg = InflateRegs[i];
lib/CodeGen/RegisterScavenging.cpp 473 if (Scavenged[I].Reg != 0)
476 int FI = Scavenged[I].FrameIndex;
503 Scavenged[SI].Reg = Reg;
509 int FI = Scavenged[SI].FrameIndex;
516 TII->storeRegToStackSlot(*MBB, Before, Reg, true, Scavenged[SI].FrameIndex,
524 TII->loadRegFromStackSlot(*MBB, UseMI, Reg, Scavenged[SI].FrameIndex,
531 return Scavenged[SI];
lib/CodeGen/RenameIndependentSubregs.cpp 279 const VNInfo &VNI = *SR.valnos[I];
283 if (ID > 0 && SubRanges[ID-1] == nullptr)
284 SubRanges[ID-1] = Intervals[ID]->createSubRange(Allocator, SR.LaneMask);
lib/CodeGen/SafeStackColoring.cpp 44 return LiveRanges[IT->second];
222 Start[AllocaNo] = BBStart;
232 assert(!Started.test(AllocaNo) || Start[AllocaNo] == BBStart);
236 Start[AllocaNo] = InstNo;
241 LiveRanges[AllocaNo].AddRange(Start[AllocaNo], InstNo);
241 LiveRanges[AllocaNo].AddRange(Start[AllocaNo], InstNo);
250 LiveRanges[AllocaNo].AddRange(Start[AllocaNo], BBEnd);
250 LiveRanges[AllocaNo].AddRange(Start[AllocaNo], BBEnd);
277 LiveRange &Range = LiveRanges[AllocaNo];
304 LiveRanges[I] = getFullLiveRange();
lib/CodeGen/SafeStackLayout.cpp 32 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End
32 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End
33 << "), range " << Regions[i].Range << "\n";
110 StackRegion &R = Regions[i];
lib/CodeGen/ScheduleDAGInstrs.cpp 1324 R.DFSTreeData[TreeID].ParentTreeID = SubtreeClasses[Root.ParentNodeID];
1325 R.DFSTreeData[TreeID].SubInstrCount = Root.SubInstrCount;
1394 FromTree = R.DFSTreeData[FromTree].ParentTreeID;
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 263 Worklist[It->second] = nullptr;
1741 Ops.emplace_back(TFs[j], 0);
1748 SDNode *TF = TFs[i];
1781 AddToWorklist(TFs[i]);
1808 while (OrigOpNumber < Ops.size() && Ops[OrigOpNumber].getNode() != Op)
1814 if (Worklist[i].second == OrigOpNumber) {
1815 Worklist[i].second = OpNumber;
1818 OpWorkCount[OpNumber] += OpWorkCount[OrigOpNumber];
1818 OpWorkCount[OpNumber] += OpWorkCount[OrigOpNumber];
1819 OpWorkCount[OrigOpNumber] = 0;
1824 OpWorkCount[OpNumber]++;
1833 auto CurNode = Worklist[i].first;
1834 auto CurOpNumber = Worklist[i].second;
1835 assert((OpWorkCount[CurOpNumber] > 0) &&
1860 OpWorkCount[CurOpNumber]--;
1861 if (OpWorkCount[CurOpNumber] == 0)
5731 Mask[i] = -1;
5747 Mask[i] = M1Zero ? M0 % NumElts : (M1 % NumElts) + NumElts;
6565 if (Offset < 0 || Offset >= Width || ByteOffsets[Offset] != INT64_MAX)
6567 ByteOffsets[Offset] = ByteOffsetFromBase;
6715 ByteOffsets[i] = ByteOffsetFromBase;
7599 ShiftValue = ShiftValues[0];
10752 Opnds.push_back(DAG.getUNDEF(VTs[i]));
10755 SDValue NV = DAG.getNode(ISD::TRUNCATE, SDLoc(V), VTs[i], V);
13673 if (OtherUses[i]->getOperand(OffsetIdx).getNode() == BasePtr.getNode())
13675 assert(OtherUses[i]->getOperand(!OffsetIdx).getNode() ==
13690 cast<ConstantSDNode>(OtherUses[i]->getOperand(OffsetIdx));
13695 X0 = (OtherUses[i]->getOpcode() == ISD::SUB && OffsetIdx == 1) ? -1 : 1;
13696 Y0 = (OtherUses[i]->getOpcode() == ISD::SUB && OffsetIdx == 0) ? -1 : 1;
13707 SDLoc DL(OtherUses[i]);
13715 OtherUses[i]->getValueType(0), NewOp1, NewOp2);
13716 DAG.ReplaceAllUsesOfValueWith(SDValue(OtherUses[i], 0), NewUse);
13717 deleteAndRecombine(OtherUses[i]);
14511 const TargetLowering &TLI = LoadedSlices[0].DAG->getTargetLoweringInfo();
14519 Second = &LoadedSlices[CurrSlice];
14583 const LoadedSlice &LS = LoadedSlices[CurrSlice];
15089 SDLoc StoreDL(StoreNodes[0].MemNode);
15092 Visited.insert(StoreNodes[i].MemNode);
15097 if (Visited.insert(StoreNodes[i].MemNode->getChain().getNode()).second)
15098 Chains.push_back(StoreNodes[i].MemNode->getChain());
15113 SDLoc DL(StoreNodes[0].MemNode);
15132 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[I].MemNode);
15161 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[i].MemNode);
15204 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[Idx].MemNode);
15230 LSBaseSDNode *FirstInChain = StoreNodes[0].MemNode;
15256 CombineTo(StoreNodes[i].MemNode, NewStore);
15451 SDNode *N = StoreNodes[i].MemNode;
15468 if (SDNode::hasPredecessorHelper(StoreNodes[i].MemNode, Visited, Worklist,
15474 auto &RootCount = StoreRootCountMap[StoreNodes[i].MemNode];
15548 StoreNodes[StartIdx].OffsetFromBase + ElementSizeBytes !=
15549 StoreNodes[StartIdx + 1].OffsetFromBase)
15562 int64_t StartAddress = StoreNodes[0].OffsetFromBase;
15566 int64_t CurrAddress = StoreNodes[i].OffsetFromBase;
15585 LSBaseSDNode *FirstInChain = StoreNodes[0].MemNode;
15594 StoreSDNode *ST = cast<StoreSDNode>(StoreNodes[i].MemNode);
15674 (StoreNodes[NumSkip].MemNode->getAlignment() <= FirstStoreAlign))
15705 LSBaseSDNode *FirstInChain = StoreNodes[0].MemNode;
15740 (StoreNodes[NumSkip].MemNode->getAlignment() <= FirstStoreAlign))
15779 StoreSDNode *St = cast<StoreSDNode>(StoreNodes[i].MemNode);
15805 StoreNodes[0].MemNode->getAlignment() >= RequiredAlignment) {
15810 LSBaseSDNode *FirstInChain = StoreNodes[0].MemNode;
15813 LoadSDNode *FirstLoad = cast<LoadSDNode>(LoadNodes[0].MemNode);
15827 StartAddress = LoadNodes[0].OffsetFromBase;
15831 if (LoadNodes[i].MemNode->getChain() != FirstChain)
15834 int64_t CurrAddress = LoadNodes[i].OffsetFromBase;
15839 if (isDereferenceable && !LoadNodes[i].MemNode->isDereferenceable())
15922 (LoadNodes[NumSkip].MemNode->getAlignment() <= FirstLoadAlign) &&
15923 (StoreNodes[NumSkip].MemNode->getAlignment() <= FirstStoreAlign))
15952 SDLoc LoadDL(LoadNodes[0].MemNode);
15953 SDLoc StoreDL(StoreNodes[0].MemNode);
15996 LoadSDNode *Ld = cast<LoadSDNode>(LoadNodes[i].MemNode);
16004 SDValue Val = StoreNodes[i].MemNode->getOperand(1);
16005 CombineTo(StoreNodes[i].MemNode, NewStore);
16526 NewMask[InsIndex] = XOffset + ExtrIndex->getZExtValue();
16527 assert(NewMask[InsIndex] <
16529 NewMask[InsIndex] >= 0 && "NewMask[InsIndex] is out of bound");
16563 Mask[i] = (i % NumSrcElts) + NumMaskVals;
16565 Mask[i] = i;
16578 ConcatOps[0] = SubVec;
16665 EVT OpVT = Ops[0].getValueType();
16666 Ops[Elt] = OpVT.isInteger() ? DAG.getAnyExtOrTrunc(InVal, DL, OpVT) : InVal;
17144 Ops[Index] = In;
17193 ConcatOps[0] = VecIn1;
17194 ConcatOps[1] = VecIn2 ? VecIn2 : DAG.getUNDEF(InVT1);
17238 ConcatOps[0] = VecIn2;
17261 Mask[i] = ExtIndex;
17263 Mask[i] = Vec2Offset + ExtIndex;
17337 ShufMask[i] = Extract.getConstantOperandVal(1);
17339 ShufMask[i] = NumMaskElts;
17401 VectorMask[i] = 0;
17429 VectorMask[i] = Idx;
17450 if (VectorMask[i] <= 0)
17453 IndexVec[i] = Index;
17474 if (VectorMask[i] <= 0)
17476 VectorMask[i] = (IndexVec[i] < SplitSize) ? 1 : 2;
17476 VectorMask[i] = (IndexVec[i] < SplitSize) ? 1 : 2;
17504 SDValue VecLeft = VecIn[LeftIdx];
17506 (LeftIdx + 1) < VecIn.size() ? VecIn[LeftIdx + 1] : SDValue();
17523 return Shuffles[0];
17549 Shuffles[CurSize] = DAG.getUNDEF(VT);
17557 if (VectorMask[i] == Left) {
17558 Mask[i] = i;
17559 VectorMask[i] = In;
17560 } else if (VectorMask[i] == Right) {
17561 Mask[i] = i + NumElems;
17562 VectorMask[i] = In;
17566 Shuffles[In] =
17567 DAG.getVectorShuffle(VT, DL, Shuffles[Left], Shuffles[Right], Mask);
17567 DAG.getVectorShuffle(VT, DL, Shuffles[Left], Shuffles[Right], Mask);
17570 return Shuffles[0];
17864 Ops.resize(NumOps, DAG.getUNDEF(Ops[0].getValueType()));
18386 Mask0[i] = M;
18388 Mask1[i - HalfNumElts] = M;
19041 NewMask.push_back(M < 0 ? -1 : InnerMask[M]);
19165 isUndefMask &= Mask[i] < 0;
19204 NewMask[0] = Elt;
19374 Ops[cast<ConstantSDNode>(N2)->getZExtValue() / Factor] = N1;
19570 Ops[Index0] = ScalarBO;
20727 return Aliases[0];
20819 StoreSDNode *S = ChainedStores[--I];
20824 ChainedStores[I] = S;
lib/CodeGen/SelectionDAG/FastISel.cpp 1153 EVT VT = RetTys[I];
1785 ResultReg += TLI.getNumRegisters(FuncInfo.Fn->getContext(), AggValueVTs[i]);
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp 370 EVT ValueVT = ValueVTs[Value];
420 EVT IntVT = ValueVTs[0];
lib/CodeGen/SelectionDAG/InstrEmitter.cpp 1121 unsigned DefIdx = GroupIdx[DefGroup] + 1;
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 1352 NewLoadOperands[0] = Ch;
1838 FinalIndices.reserve(IntermedVals[i].second.size() +
1839 IntermedVals[i+1].second.size());
1842 for (unsigned j = 0, f = IntermedVals[i].second.size(); j != f;
1844 ShuffleVec[k] = j;
1845 FinalIndices.push_back(IntermedVals[i].second[j]);
1845 FinalIndices.push_back(IntermedVals[i].second[j]);
1847 for (unsigned j = 0, f = IntermedVals[i+1].second.size(); j != f;
1849 ShuffleVec[k] = NumElems + j;
1850 FinalIndices.push_back(IntermedVals[i+1].second[j]);
1850 FinalIndices.push_back(IntermedVals[i+1].second[j]);
1855 Shuffle = DAG.getVectorShuffle(VT, dl, IntermedVals[i].first,
1856 IntermedVals[i+1].first,
1874 SDValue Vec1 = IntermedVals[0].first;
1877 Vec2 = IntermedVals[1].first;
1882 for (unsigned i = 0, e = IntermedVals[0].second.size(); i != e; ++i)
1883 ShuffleVec[IntermedVals[0].second[i]] = i;
1883 ShuffleVec[IntermedVals[0].second[i]] = i;
1883 ShuffleVec[IntermedVals[0].second[i]] = i;
1884 for (unsigned i = 0, e = IntermedVals[1].second.size(); i != e; ++i)
1885 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i;
1885 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i;
1885 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i;
1985 ShuffleVec[i] = V == Value1 ? 0 : NumElems;
2923 Results.push_back(Results[0].getValue(1));
3054 Results.push_back(Results[0].getValue(1));
3072 Results.push_back(Results[0].getValue(0));
3263 SDValue Lo = DAG.getNode(ISD::ZERO_EXTEND, dl, VT, Halves[2 * i]);
3264 SDValue Hi = DAG.getNode(ISD::ANY_EXTEND, dl, VT, Halves[2 * i + 1]);
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp 1101 Parts[i] = DAG.getVAArg(RegVT, dl, Chain, Ptr, N->getOperand(2),
1103 Chain = Parts[i].getValue(1);
1112 SDValue Res = DAG.getNode(ISD::ZERO_EXTEND, dl, NVT, Parts[0]);
1114 SDValue Part = DAG.getNode(ISD::ZERO_EXTEND, dl, NVT, Parts[i]);
1492 NewOps[3] = Mask;
1511 NewOps[OpNo] = Mask;
1522 NewOps[OpNo] = PromoteTargetBoolean(N->getOperand(OpNo), DataVT);
1527 NewOps[OpNo] = SExtPromotedInteger(N->getOperand(OpNo));
1529 NewOps[OpNo] = ZExtPromotedInteger(N->getOperand(OpNo));
1531 NewOps[OpNo] = GetPromotedInteger(N->getOperand(OpNo));
1542 NewOps[OpNo] = PromoteTargetBoolean(N->getOperand(OpNo), DataVT);
1547 NewOps[OpNo] = SExtPromotedInteger(N->getOperand(OpNo));
1549 NewOps[OpNo] = ZExtPromotedInteger(N->getOperand(OpNo));
1551 NewOps[OpNo] = GetPromotedInteger(N->getOperand(OpNo));
2960 Lo = DAG.getNode(ISD::FSHR, dl, NVT, Result[Part0 + 1], Result[Part0],
2960 Lo = DAG.getNode(ISD::FSHR, dl, NVT, Result[Part0 + 1], Result[Part0],
2962 Hi = DAG.getNode(ISD::FSHR, dl, NVT, Result[Part0 + 2], Result[Part0 + 1],
2962 Hi = DAG.getNode(ISD::FSHR, dl, NVT, Result[Part0 + 2], Result[Part0 + 1],
2965 Lo = Result[Part0];
2966 Hi = Result[Part0 + 1];
2989 SDValue ResultHL = Result[2];
2990 SDValue ResultHH = Result[3];
4209 Ops[i * NumElem + j] = DAG.getAnyExtOrTrunc(Ext, dl, OutElemTy);
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp 179 SDNode *N = NewNodes[i];
897 SetExpandedInteger(SDValue(N, 0), Results[0], Results[1]);
897 SetExpandedInteger(SDValue(N, 0), Results[0], Results[1]);
899 ReplaceValueWith(SDValue(N, 1), Results[2]);
907 ReplaceValueWith(SDValue(N, i), Results[i]);
932 if (Results[i].getValueType() == MVT::Other)
933 ReplaceValueWith(SDValue(N, i), Results[i]);
935 SetWidenedVector(SDValue(N, i), Results[i]);
998 Ops[i] = N->getOperand(i);
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp 131 SDValue LHS = Vals[Slot];
132 SDValue RHS = Vals[Slot + 1];
142 Lo = Vals[Slot++];
143 Hi = Vals[Slot++];
449 Ops[0] = N->getOperand(0);
450 SDValue UndefVal = DAG.getUNDEF(Ops[0].getValueType());
452 Ops[i] = UndefVal;
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp 553 Operands[j] = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Op.getOperand(j));
555 Operands[j] = DAG.getNode(ISD::BITCAST, dl, NVT, Op.getOperand(j));
557 Operands[j] = Op.getOperand(j);
584 Operands[j] = DAG.getNode(Opc, dl, NVT, Op.getOperand(j));
586 Operands[j] = Op.getOperand(j);
705 SDValue Lo = DAG.getNode(ISD::SRL, dl, WideVT, LoadVals[WideIdx], ShAmt);
716 DAG.getNode(ISD::SHL, dl, WideVT, LoadVals[WideIdx], ShAmt);
993 ShuffleMask[i * ExtLaneScale + EndianOffset] = i;
1058 ShuffleMask[i * ExtLaneScale + EndianOffset] = NumSrcElements + i;
1430 Ops[i] = DAG.getNode(ISD::SETCC, dl,
1434 Ops[i] = DAG.getSelect(dl, EltVT, Ops[i],
1434 Ops[i] = DAG.getSelect(dl, EltVT, Ops[i],
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp 266 ScalarLHS = ElemsLHS[0];
267 ScalarRHS = ElemsRHS[0];
709 Ops[i] = GetScalarizedVector(N->getOperand(i));
1292 SplitHi[i] = i + OutNumElements;
1371 Operands[0] = Chain;
1377 Operands[j] =
1382 Operands[j] = Operand;
2946 VT = ConcatOps[0].getValueType();
2948 return ConcatOps[0];
2951 SDLoc dl(ConcatOps[0]);
2958 while (ConcatOps[ConcatEnd-1].getValueType() != MaxVT) {
2960 VT = ConcatOps[Idx--].getValueType();
2961 while (Idx >= 0 && ConcatOps[Idx].getValueType() == VT)
2977 ISD::INSERT_VECTOR_ELT, dl, NextVT, VecOp, ConcatOps[OpIdx],
2980 ConcatOps[Idx+1] = VecOp;
2991 SubConcatOps[SubConcatEnd++] = ConcatOps[++Idx];
2991 SubConcatOps[SubConcatEnd++] = ConcatOps[++Idx];
2993 SubConcatOps[SubConcatEnd++] = undefVec;
2994 ConcatOps[SubConcatIdx] = DAG.getNode(ISD::CONCAT_VECTORS, dl,
3002 VT = ConcatOps[0].getValueType();
3004 return ConcatOps[0];
3012 ConcatOps[j] = UndefVal;
3066 ConcatOps[ConcatEnd++] = DAG.getNode(Opcode, dl, VT, EOp1, EOp2, Flags);
3083 ConcatOps[ConcatEnd++] = DAG.getNode(Opcode, dl, WidenEltVT,
3147 SDValue Op = InOps[i];
3159 ConcatOps[ConcatEnd++] = Oper;
3174 SDValue Op = InOps[i];
3187 ConcatOps[ConcatEnd++] = Oper;
3197 NewChain = Chains[0];
3303 Ops[0] = InOp;
3332 Ops[i] = DAG.getNode(Opcode, DL, EltVT, Val);
3334 Ops[i] = DAG.getNode(Opcode, DL, EltVT, Val, N->getOperand(1), Flags);
3365 NewOps[1] = DAG.getNode(
3368 Ops[i] = DAG.getNode(Opcode, DL, EltVTs, NewOps);
3369 OpChains.push_back(Ops[i].getValue(1));
3558 Ops[0] = InOp;
3608 Ops[i] = N->getOperand(i);
3610 Ops[i] = UndefVal;
3631 MaskOps[i] = i;
3632 MaskOps[i + NumInElts] = i + WidenNumElts;
3651 Ops[Idx++] = DAG.getNode(
3657 Ops[Idx] = UndefVal;
3691 Ops[i] =
3698 Ops[i] = UndefVal;
3725 NewChain = LdChain[0];
3884 SubOps[0] = Mask;
4320 NewOps[1] = DAG.getNode(
4323 Ops[i] = DAG.getNode(Opcode, dl, { EltVT, MVT::Other }, NewOps);
4324 OpChains.push_back(Ops[i].getValue(1));
4330 Ops[i] = DAG.getNode(
4415 Ops[Idx++] = DAG.getNode(
4449 return StChain[0];
4734 SDLoc dl(LdOps[Start]);
4735 EVT LdTy = LdOps[Start].getValueType();
4741 SDValue VecOp = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, NewVecVT,LdOps[Start]);
4744 EVT NewLdTy = LdOps[i].getValueType();
4754 ISD::INSERT_VECTOR_ELT, dl, NewVecVT, VecOp, LdOps[i],
4806 ConcatOps[0] = LdOp;
4808 ConcatOps[i] = UndefVal;
4861 if (!LdOps[0].getValueType().isVector())
4871 EVT LdTy = LdOps[i].getValueType();
4875 LdTy = LdOps[i].getValueType();
4879 ConcatOps[--Idx] = BuildVectorFromScalar(DAG, LdTy, LdOps, i + 1, End);
4881 ConcatOps[--Idx] = LdOps[i];
4881 ConcatOps[--Idx] = LdOps[i];
4883 EVT NewLdTy = LdOps[i].getValueType();
4886 ConcatOps[End-1] = DAG.getNode(ISD::CONCAT_VECTORS, dl, NewLdTy,
4887 makeArrayRef(&ConcatOps[Idx], End - Idx));
4891 ConcatOps[--Idx] = LdOps[i];
4891 ConcatOps[--Idx] = LdOps[i];
4896 makeArrayRef(&ConcatOps[Idx], End - Idx));
4905 WidenOps[i] = ConcatOps[Idx+i];
4905 WidenOps[i] = ConcatOps[Idx+i];
4907 WidenOps[i] = UndefVal;
4938 Ops[0] =
4941 LdChain.push_back(Ops[0].getValue(1));
4945 Ops[i] = DAG.getExtLoad(ExtType, dl, EltVT, Chain, NewBasePtr,
4948 LdChain.push_back(Ops[i].getValue(1));
4954 Ops[i] = UndefVal;
5095 Ops[0] = InOp;
5097 Ops[i] = FillVal;
5113 Ops[Idx] = DAG.getNode(
5120 Ops[Idx] = FillVal;
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp 241 N = NewNodes[1];
242 SDNode *LoadNode = NewNodes[0];
304 const SDep &Pred = LoadPreds[i];
311 const SDep &Pred = NodePreds[i];
316 SDep D = NodeSuccs[i];
324 SDep D = ChainSuccs[i];
372 RemovePred(DelDeps[i].first, DelDeps[i].second);
372 RemovePred(DelDeps[i].first, DelDeps[i].second);
407 RemovePred(DelDeps[i].first, DelDeps[i].second);
407 RemovePred(DelDeps[i].first, DelDeps[i].second);
567 SUnit *TrySU = NotReady[0];
570 unsigned Reg = LRegs[0];
616 NotReady[i]->isPending = false;
618 if (NotReady[i]->isAvailable)
619 AvailableQueue.push(NotReady[i]);
742 SDNode *Glue = Glues[i];
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp 994 N = NewNodes[1];
995 SDNode *LoadNode = NewNodes[0];
1437 SUnit *SU = Interferences[i-1];
1453 Interferences[i-1] = Interferences.back();
1471 if (LRegs[0] == TRI->getNumRegs()) dbgs() << "CallResource";
1472 else dbgs() << printReg(LRegs[0], TRI);
1551 SUnit *TrySU = Interferences[0];
1554 unsigned Reg = LRegs[0];
3030 SDep Edge = PredSU->Succs[i];
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp 268 int64_t BaseOff = Offsets[0];
272 int64_t Offset = Offsets[i];
285 SDNode *Lead = Loads[0];
291 SDNode *Load = Loads[I];
951 unsigned Order = Orders[i].first;
952 MachineInstr *MI = Orders[i].second;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 1594 if (MaskVec[i] >= NElts) MaskVec[i] -= NElts;
1594 if (MaskVec[i] >= NElts) MaskVec[i] -= NElts;
1611 if (MaskVec[i] < Offset || MaskVec[i] >= (Offset + NElts))
1611 if (MaskVec[i] < Offset || MaskVec[i] >= (Offset + NElts))
1615 if (UndefElements[MaskVec[i] - Offset]) {
1616 MaskVec[i] = -1;
1622 MaskVec[i] = i + Offset;
1636 if (MaskVec[i] >= NElts) {
1638 MaskVec[i] = -1;
1641 } else if (MaskVec[i] >= 0) {
1662 if (MaskVec[i] >= 0 && MaskVec[i] != i) Identity = false;
1662 if (MaskVec[i] >= 0 && MaskVec[i] != i) Identity = false;
1663 if (MaskVec[i] != MaskVec[0]) AllSame = false;
1663 if (MaskVec[i] != MaskVec[0]) AllSame = false;
1703 const SDValue &Splatted = BV->getOperand(MaskVec[0]);
1719 ID.AddInteger(MaskVec[i]);
5752 OutChains.push_back(OutLoadChains[i]);
5753 GluedLoadChains.push_back(OutLoadChains[i]);
5761 StoreSDNode *ST = dyn_cast<StoreSDNode>(OutStoreChains[i]);
5919 OutChains.push_back(OutLoadChains[i]);
5920 OutChains.push_back(OutStoreChains[i]);
6036 Store = DAG.getStore(Chain, dl, LoadValues[i],
8494 SDNode *User = Uses[UseIndex].User;
8504 unsigned i = Uses[UseIndex].Index;
8505 SDUse &Use = *Uses[UseIndex].Use;
8509 } while (UseIndex != UseIndexEnd && Uses[UseIndex].User == User);
9136 Operands[j] =
9141 Operands[j] = Operand;
9159 Scalars.push_back(getNode(N->getOpcode(), dl, EltVT, Operands[0],
9160 getShiftAmountOperand(Operands[0].getValueType(),
9161 Operands[1])));
9164 EVT ExtVT = cast<VTSDNode>(Operands[1])->getVT().getVectorElementType();
9166 Operands[0],
9210 SDValue Res = getNode(Opcode, dl, VTs, LHSScalars[i], RHSScalars[i]);
9210 SDValue Res = getNode(Opcode, dl, VTs, LHSScalars[i], RHSScalars[i]);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 398 Ops[i] = getCopyFromParts(DAG, DL, &Parts[i], 1,
407 Ops[i] = getCopyFromParts(DAG, DL, &Parts[i * Factor], Factor,
742 Ops[i] = DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, IntermediateVT, Val,
745 Ops[i] = DAG.getNode(
756 getCopyToParts(DAG, DL, Ops[i], &Parts[i], 1, PartVT, V, CallConv);
765 getCopyToParts(DAG, DL, Ops[i], &Parts[i * Factor], Factor, PartVT, V,
832 Parts[i] = P;
853 Parts[i] = DAG.getConstant(0, dl, RegisterVT);
873 Parts[i] = DAG.getNode(isSExt ? ISD::AssertSext : ISD::AssertZext, dl,
877 Values[Value] = getCopyFromParts(DAG, dl, Parts.begin(), NumRegs,
907 getCopyToParts(DAG, dl, Val.getValue(Val.getResNo() + Value), &Parts[Part],
917 Part = DAG.getCopyToReg(Chain, dl, Regs[i], Parts[i]);
919 Part = DAG.getCopyToReg(Chain, dl, Regs[i], Parts[i], *Flag);
923 Chains[i] = Part.getValue(0);
937 Chain = Chains[NumRegs-1];
1039 SDValue Root = PendingLoads[0];
1062 assert(PendingExports[i].getNode()->getNumOperands() > 1);
1063 if (PendingExports[i].getNode()->getOperand(0) == Root)
1514 EVT EltVT = ValueVTs[i];
1516 Constants[i] = DAG.getUNDEF(EltVT);
1518 Constants[i] = DAG.getConstantFP(0, getCurSDLoc(), EltVT);
1520 Constants[i] = DAG.getConstant(0, getCurSDLoc(), EltVT);
1797 DemoteReg, PtrValueVTs[0]);
1810 SDValue Ptr = DAG.getObjectPtrOffset(getCurSDLoc(), RetPtr, Offsets[i]);
1813 if (MemVTs[i] != ValueVTs[i])
1813 if (MemVTs[i] != ValueVTs[i])
1814 Val = DAG.getPtrExtOrTrunc(Val, getCurSDLoc(), MemVTs[i]);
1815 Chains[i] = DAG.getStore(Chain, getCurSDLoc(), Val,
1848 EVT VT = ValueVTs[j];
1860 &Parts[0], NumParts, PartVT, &I, CC, ExtendKind);
1886 Outs.push_back(ISD::OutputArg(Flags, Parts[i].getValueType(),
1888 OutVals.push_back(Parts[i]);
2154 Probs[0], Probs[1], InvertCond);
2154 Probs[0], Probs[1], InvertCond);
2187 Probs[0], Probs[1], InvertCond);
2187 Probs[0], Probs[1], InvertCond);
2635 if (!isUIntN(VT.getSizeInBits(), B.Cases[i].Mask)) {
2652 MachineBasicBlock* MBB = B.Cases[0].ThisBB;
2891 dl, ValueVTs[0]);
2899 dl, ValueVTs[1]);
3269 EVT VT = ValueVTs[0];
3358 Values[i] =
3368 Values[i] = DAG.getNode(
3586 int Idx = Mask[i];
3592 (ConcatSrcs[i / SrcNumElts] >= 0 &&
3593 ConcatSrcs[i / SrcNumElts] != (int)(Idx / SrcNumElts))) {
3598 ConcatSrcs[i / SrcNumElts] = Idx / SrcNumElts;
3628 MOps1[0] = Src1;
3629 MOps2[0] = Src2;
3637 int Idx = Mask[i];
3640 MappedOps[i] = Idx;
3776 Values[i] = IntoUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3776 Values[i] = IntoUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3782 Values[i] = FromUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3782 Values[i] = FromUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3787 Values[i] = IntoUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3787 Values[i] = IntoUndef ? DAG.getUNDEF(AggValueVTs[i]) :
3825 Values[i - LinearIndex] =
4089 DAG.getConstant(Offsets[i], dl, PtrVT),
4102 SDValue L = DAG.getLoad(MemVTs[i], dl, Root, A,
4103 MachinePointerInfo(SV, Offsets[i]), Alignment,
4105 Chains[ChainI] = L.getValue(1);
4107 if (MemVTs[i] != ValueVTs[i])
4107 if (MemVTs[i] != ValueVTs[i])
4108 L = DAG.getZExtOrTrunc(L, dl, ValueVTs[i]);
4110 Values[i] = L;
4135 assert(ValueVTs.size() == 1 && Offsets[0] == 0 &&
4173 assert(ValueVTs.size() == 1 && Offsets[0] == 0 &&
4179 SwiftError.getOrCreateVRegUseAt(&I, FuncInfo.MBB, SV), ValueVTs[0]);
4250 DAG.getConstant(Offsets[i], dl, PtrVT), Flags);
4252 if (MemVTs[i] != ValueVTs[i])
4252 if (MemVTs[i] != ValueVTs[i])
4253 Val = DAG.getPtrExtOrTrunc(Val, dl, MemVTs[i]);
4255 DAG.getStore(Root, dl, Val, Add, MachinePointerInfo(PtrV, Offsets[i]),
4257 Chains[ChainI] = St;
8143 SDISelAsmOperandInfo &Input = ConstraintOperands[OpInfo.MatchingInput];
8197 ? ConstraintOperands[OpInfo.getMatchedOperand()]
8533 Ops.push_back(DAG.getUNDEF(ValueVTs[i]));
9004 EVT RetVT = OldRetTys[i];
9005 uint64_t Offset = OldOffsets[i];
9067 EVT VT = RetTys[I];
9122 EVT VT = ValueVTs[Value];
9233 getCopyToParts(CLI.DAG, CLI.DL, Op, &Parts[0], NumParts, PartVT,
9238 ISD::OutputArg MyFlags(Flags, Parts[j].getValueType(), VT,
9240 i, j*Parts[j].getValueType().getStoreSize());
9250 CLI.OutVals.push_back(Parts[j]);
9254 CLI.Outs[CLI.Outs.size() - 1].Flags.setInConsecutiveRegsLast();
9283 assert(InVals[i].getNode() && "LowerCall emitted a null value!");
9284 assert(EVT(CLI.Ins[i].VT) == InVals[i].getValueType() &&
9284 assert(EVT(CLI.Ins[i].VT) == InVals[i].getValueType() &&
9298 EVT PtrVT = PVTs[0];
9311 CLI.DAG.getConstant(Offsets[i], CLI.DL,
9314 RetTys[i], CLI.DL, CLI.Chain, Add,
9316 DemoteStackIdx, Offsets[i]),
9318 ReturnValues[i] = L;
9319 Chains[i] = L.getValue(1);
9333 EVT VT = RetTys[I];
9339 ReturnValues.push_back(getCopyFromParts(CLI.DAG, CLI.DL, &InVals[CurReg],
9598 MVT RegisterVT = TLI->getRegisterType(*DAG.getContext(), ValueVTs[0]);
9599 ISD::InputArg RetArg(Flags, RegisterVT, ValueVTs[0], true,
9624 EVT VT = ValueVTs[Value];
9722 Ins[Ins.size() - 1].Flags.setInConsecutiveRegsLast();
9739 assert(InVals[i].getNode() &&
9741 assert(EVT(Ins[i].VT) == InVals[i].getValueType() &&
9741 assert(EVT(Ins[i].VT) == InVals[i].getValueType() &&
9759 MVT VT = ValueVTs[0].getSimpleVT();
9762 SDValue ArgValue = getCopyFromParts(DAG, dl, &InVals[0], 1, RegVT, VT,
9792 if (Ins[i].Flags.isCopyElisionCandidate()) {
9795 InVals[i], ArgHasUses);
9804 SDB->setUnusedArgValue(&Arg, InVals[i]);
9808 dyn_cast<FrameIndexSDNode>(InVals[i].getNode()))
9813 EVT VT = ValueVTs[Val];
9829 ArgValues.push_back(getCopyFromParts(DAG, dl, &InVals[i], NumParts,
9843 dyn_cast<FrameIndexSDNode>(ArgValues[0].getNode()))
9988 EVT VT = ValueVTs[vti];
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 571 MachineInstr *MI = FuncInfo->ArgDbgValues[e-i-1];
1789 UnhandledProb -= BTB.Cases[j].ExtraProb;
1791 FuncInfo->MBB = BTB.Cases[j].ThisBB;
1807 NextMBB = BTB.Cases[j + 1].TargetBB;
1813 NextMBB = BTB.Cases[j + 1].ThisBB;
1816 SDB->visitBitTestCase(BTB, NextMBB, UnhandledProb, BTB.Reg, BTB.Cases[j],
1849 MachineBasicBlock* cBB = BTB.Cases[j].ThisBB;
1929 FuncInfo->MBB = Succs[i];
2295 SDNode *ChainNode = ChainNodesMatched[i];
2351 return ChainNodesMatched[0]->getOperand(0);
2394 return InputChains[0];
2395 return CurDAG->getNode(ISD::TokenFactor, SDLoc(ChainNodesMatched[0]),
2942 Parent = NodeStack[NodeStack.size()-2].getNode();
3028 Operands.push_back(RecordedNodes[MatcherTable[MatcherIndex++]].first);
3047 if (!CheckComplexPattern(NodeToMatch, RecordedNodes[RecNo].second,
3048 RecordedNodes[RecNo].first, CPNum,
3182 if (!NodeStack[i].getNode()->hasOneUse()) {
3190 if (!IsProfitableToFold(N, NodeStack[NodeStack.size()-2].getNode(),
3192 !IsLegalToFold(N, NodeStack[NodeStack.size()-2].getNode(),
3235 SDValue Imm = RecordedNodes[RecNo].first;
3247 RecordedNodes.push_back(std::make_pair(Imm, RecordedNodes[RecNo].second));
3263 ChainNodesMatched.push_back(RecordedNodes[RecNo].first.getNode());
3268 !RecordedNodes[RecNo].first.hasOneUse()) {
3300 ChainNodesMatched.push_back(RecordedNodes[RecNo].first.getNode());
3305 !RecordedNodes[RecNo].first.hasOneUse()) {
3336 DestPhysReg, RecordedNodes[RecNo].first,
3347 SDValue Res = RunSDNodeXForm(RecordedNodes[RecNo].first, XFormNo);
3395 VTList = CurDAG->getVTList(VTs[0]);
3397 VTList = CurDAG->getVTList(VTs[0], VTs[1]);
3397 VTList = CurDAG->getVTList(VTs[0], VTs[1]);
3410 Ops.push_back(RecordedNodes[RecNo].first);
3448 if (VTs[i] == MVT::Other || VTs[i] == MVT::Glue) break;
3448 if (VTs[i] == MVT::Other || VTs[i] == MVT::Glue) break;
3534 SDValue Res = RecordedNodes[ResSlot].first;
lib/CodeGen/SelectionDAG/StatepointLowering.cpp 114 const int FI = Builder.FuncInfo.StatepointStackSlots[NextSlotToAllocate];
286 SDValue SD = Builder.getValue(Ptrs[i]);
291 NewBases.push_back(Bases[i]);
292 NewPtrs.push_back(Ptrs[i]);
293 NewRelocs.push_back(Relocs[i]);
294 Seen[SD] = Ptrs[i];
297 SSM.DuplicateMap[Ptrs[i]] = SeenIt->second;
538 reservePreviousStackSlotForValue(SI.Bases[i], Builder);
539 reservePreviousStackSlotForValue(SI.Ptrs[i], Builder);
571 const Value *Base = SI.Bases[i];
575 const Value *Ptr = SI.Ptrs[i];
lib/CodeGen/SelectionDAG/TargetLowering.cpp 2222 if (!DemandedElts[i] && !Ops[i].isUndef()) {
2223 Ops[i] = TLO.DAG.getUNDEF(Ops[0].getValueType());
2223 Ops[i] = TLO.DAG.getUNDEF(Ops[0].getValueType());
2405 int &M = NewMask[i];
4603 Shift = Shifts[0];
4604 Factor = Factors[0];
4700 MagicFactor = MagicFactors[0];
4701 Factor = Factors[0];
4702 Shift = Shifts[0];
4703 ShiftMask = ShiftMasks[0];
4818 PreShift = PreShifts[0];
4819 MagicFactor = MagicFactors[0];
4820 PostShift = PostShifts[0];
5041 PVal = PAmts[0];
5042 KVal = KAmts[0];
5043 QVal = QAmts[0];
5249 PVal = PAmts[0];
5250 AVal = AAmts[0];
5251 KVal = KAmts[0];
5252 QVal = QAmts[0];
5779 Lo = Result[0];
5780 Hi = Result[1];
7363 SDValue Res = Ops[0];
7365 Res = DAG.getNode(BaseOpcode, dl, EltVT, Res, Ops[i], Node->getFlags());
lib/CodeGen/SjLjEHPrepare.cpp 417 insertCallSiteStore(Invokes[I], I + 1);
424 CallInst::Create(CallSiteFn, CallSiteNum, "", Invokes[I]);
lib/CodeGen/SlotIndexes.cpp 89 MBBRanges[MBB.getNumber()].first = blockStartIndex;
90 MBBRanges[MBB.getNumber()].second = SlotIndex(&indexList.back(),
lib/CodeGen/SpillPlacement.cpp 212 BlockFrequencies[Num] = MBFI->getBlockFreq(&I);
266 BlockFrequency Freq = BlockFrequencies[I->Number];
288 BlockFrequency Freq = BlockFrequencies[*I];
312 BlockFrequency Freq = BlockFrequencies[Number];
lib/CodeGen/SplitKit.cpp 79 std::pair<SlotIndex, SlotIndex> &LIP = LastInsertPoint[Num];
854 SlotIndex Def = Copies[i]->def;
959 EqualVNs[ParentVNI->id].insert(VNI);
968 SmallPtrSetIterator<VNInfo *> It1 = EqualVNs[ParentVNI->id].begin();
970 for (; It1 != EqualVNs[ParentVNI->id].end(); ++It1) {
972 for (++It2; It2 != EqualVNs[ParentVNI->id].end(); ++It2) {
1032 DomPair &Dom = NearestDom[ParentVNI->id];
1066 Costs[ParentVNI->id] += MBFI.getBlockFreq(ValMBB);
1078 DomPair &Dom = NearestDom[i];
1087 MBFI.getBlockFreq(Dom.first) > Costs[ParentVNI->id]) {
1104 const DomPair &Dom = NearestDom[ParentVNI->id];
lib/CodeGen/SplitKit.h 70 if (LastInsertPoint[Num].first.isValid() &&
71 !LastInsertPoint[Num].second.isValid())
72 return LastInsertPoint[Num].first;
lib/CodeGen/StackColoring.cpp 662 NumStartLifetimes[Slot] += 1;
665 NumEndLifetimes[Slot] += 1;
702 if (NumStartLifetimes[slot] > 1 || NumEndLifetimes[slot] > 1)
702 if (NumStartLifetimes[slot] > 1 || NumEndLifetimes[slot] > 1)
728 int Slot = slots[0];
829 Starts[pos] = Indexes->getMBBStartIdx(&MBB);
844 if (!DefinitelyInUse[Slot]) {
845 LiveStarts[Slot].push_back(ThisIndex);
846 DefinitelyInUse[Slot] = true;
848 if (!Starts[Slot].isValid())
849 Starts[Slot] = ThisIndex;
851 if (Starts[Slot].isValid()) {
852 VNInfo *VNI = Intervals[Slot]->getValNumInfo(0);
853 Intervals[Slot]->addSegment(
854 LiveInterval::Segment(Starts[Slot], ThisIndex, VNI));
855 Starts[Slot] = SlotIndex(); // Invalidate the start index
856 DefinitelyInUse[Slot] = false;
864 if (!Starts[i].isValid())
868 VNInfo *VNI = Intervals[i]->getValNumInfo(0);
869 Intervals[i]->addSegment(LiveInterval::Segment(Starts[i], EndIdx, VNI));
869 Intervals[i]->addSegment(LiveInterval::Segment(Starts[i], EndIdx, VNI));
1011 const LiveInterval *Interval = &*Intervals[FromSlot];
1103 if (Intervals[Slot]->empty())
1108 LiveInterval *Interval = &*Intervals[Slot];
1211 if (Intervals[SortedSlots[I]]->empty())
1211 if (Intervals[SortedSlots[I]]->empty())
1212 SortedSlots[I] = -1;
1240 if (SortedSlots[I] == -1)
1244 if (SortedSlots[J] == -1)
1247 int FirstSlot = SortedSlots[I];
1248 int SecondSlot = SortedSlots[J];
1249 LiveInterval *First = &*Intervals[FirstSlot];
1250 LiveInterval *Second = &*Intervals[SecondSlot];
1251 auto &FirstS = LiveStarts[FirstSlot];
1252 auto &SecondS = LiveStarts[SecondSlot];
1268 SortedSlots[J] = -1;
lib/CodeGen/StackMaps.cpp 387 assert(Locations[i].Type == Location::Register &&
lib/CodeGen/StackSlotColoring.cpp 187 SSRefs[FI].push_back(MMO);
205 AllColors[0].resize(LastFI);
206 UsedColors[0].resize(LastFI);
229 OrigAlignments[FI] = MFI->getObjectAlignment(FI);
230 OrigSizes[FI] = MFI->getObjectSize(FI);
236 AllColors[StackID].resize(LastFI);
237 UsedColors[StackID].resize(LastFI);
240 AllColors[StackID].set(FI);
251 NextColors[I] = AllColors[I].find_first();
251 NextColors[I] = AllColors[I].find_first();
277 Color = UsedColors[StackID].find_first();
284 Color = UsedColors[StackID].find_next(Color);
296 assert(NextColors[StackID] != -1 && "No more spill slots?");
297 Color = NextColors[StackID];
298 UsedColors[StackID].set(Color);
299 NextColors[StackID] = AllColors[StackID].find_next(NextColors[StackID]);
299 NextColors[StackID] = AllColors[StackID].find_next(NextColors[StackID]);
299 NextColors[StackID] = AllColors[StackID].find_next(NextColors[StackID]);
305 Assignments[Color].push_back(li);
311 unsigned Align = OrigAlignments[FI];
314 int64_t Size = OrigSizes[FI];
336 SlotMapping[SS] = NewSS;
337 RevMap[NewSS].push_back(SS);
338 SlotWeights[NewSS] += li->weight;
347 li->weight = SlotWeights[SS];
363 int NewFI = SlotMapping[SS];
368 SmallVectorImpl<MachineMemOperand *> &RefMMOs = SSRefs[SS];
370 RefMMOs[i]->setValue(NewSV);
382 int NextColor = NextColors[StackID];
386 NextColor = AllColors[StackID].find_next(NextColor);
406 int NewFI = SlotMapping[OldFI];
520 SSRefs[i].clear();
527 Assignments[i].clear();
lib/CodeGen/SwiftErrorValueTracking.cpp 208 -> bool { return V.second != VRegs[0].second; }) !=
217 setCurrentVReg(MBB, SwiftErrorVal, VRegs[0].second);
234 .addReg(VRegs[0].second);
lib/CodeGen/SwitchLoweringUtils.cpp 72 TotalCases[i] = (Hi - Lo).getLimitedValue() + 1;
74 TotalCases[i] += TotalCases[i - 1];
74 TotalCases[i] += TotalCases[i - 1];
121 MinPartitions[N - 1] = 1;
122 LastElement[N - 1] = N - 1;
123 PartitionsScore[N - 1] = PartitionScores::SingleCase;
129 MinPartitions[i] = MinPartitions[i + 1] + 1;
129 MinPartitions[i] = MinPartitions[i + 1] + 1;
130 LastElement[i] = i;
131 PartitionsScore[i] = PartitionsScore[i + 1] + PartitionScores::SingleCase;
131 PartitionsScore[i] = PartitionsScore[i + 1] + PartitionScores::SingleCase;
142 unsigned NumPartitions = 1 + (j == N - 1 ? 0 : MinPartitions[j + 1]);
143 unsigned Score = j == N - 1 ? 0 : PartitionsScore[j + 1];
155 if (NumPartitions < MinPartitions[i] ||
156 (NumPartitions == MinPartitions[i] && Score > PartitionsScore[i])) {
156 (NumPartitions == MinPartitions[i] && Score > PartitionsScore[i])) {
157 MinPartitions[i] = NumPartitions;
158 LastElement[i] = j;
159 PartitionsScore[i] = Score;
168 Last = LastElement[First];
295 MinPartitions[N - 1] = 1;
296 LastElement[N - 1] = N - 1;
302 MinPartitions[i] = MinPartitions[i + 1] + 1;
302 MinPartitions[i] = MinPartitions[i + 1] + 1;
303 LastElement[i] = i;
330 unsigned NumPartitions = 1 + (j == N - 1 ? 0 : MinPartitions[j + 1]);
331 if (NumPartitions < MinPartitions[i]) {
333 MinPartitions[i] = NumPartitions;
334 LastElement[i] = j;
342 Last = LastElement[First];
lib/CodeGen/TailDuplicator.cpp 187 unsigned VReg = SSAUpdateVRs[i];
235 MachineInstr *Copy = Copies[i];
523 MachineBasicBlock *SrcBB = TDBBs[j];
lib/CodeGen/TargetLoweringBase.cpp 1473 EVT VT = ValueVTs[j];
lib/CodeGen/TargetSchedule.cpp 80 ResourceFactors[Idx] = NumUnits ? (ResourceLCM / NumUnits) : 0;
lib/CodeGen/TwoAddressInstructionPass.cpp 1153 unsigned MOReg = OtherDefs[i];
1375 NewMIs[1]->addRegisterKilled(Reg, TRI);
1379 MBB->insert(mi, NewMIs[0]);
1380 MBB->insert(mi, NewMIs[1]);
1382 LLVM_DEBUG(dbgs() << "2addr: NEW LOAD: " << *NewMIs[0]
1383 << "2addr: NEW INST: " << *NewMIs[1]);
1386 unsigned NewDstIdx = NewMIs[1]->findRegisterDefOperandIdx(regA);
1387 unsigned NewSrcIdx = NewMIs[1]->findRegisterUseOperandIdx(regB);
1388 MachineBasicBlock::iterator NewMI = NewMIs[1];
1394 if (NewMIs[1]->getOperand(NewSrcIdx).isKill()) {
1403 if (NewMIs[0]->killsRegister(MO.getReg()))
1404 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[0]);
1406 assert(NewMIs[1]->killsRegister(MO.getReg()) &&
1408 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[1]);
1412 if (NewMIs[1]->registerDefIsDead(MO.getReg()))
1413 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[1]);
1415 assert(NewMIs[0]->registerDefIsDead(MO.getReg()) &&
1417 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[0]);
1422 LV->addVirtualRegisterKilled(Reg, *NewMIs[1]);
1437 MachineBasicBlock::iterator Begin(NewMIs[0]);
1438 MachineBasicBlock::iterator End(NewMIs[1]);
1442 mi = NewMIs[1];
1448 NewMIs[0]->eraseFromParent();
1449 NewMIs[1]->eraseFromParent();
1507 const MachineOperand &DstMO = MI->getOperand(TiedPairs[tpi].second);
1518 unsigned SrcIdx = TiedPairs[tpi].first;
1519 unsigned DstIdx = TiedPairs[tpi].second;
1740 unsigned SrcIdx = TiedPairs[0].first;
1741 unsigned DstIdx = TiedPairs[0].second;
lib/CodeGen/VirtRegMap.cpp 436 if (!anyRegsAlias(MIs[I], makeArrayRef(MIs).take_front(E), TRI)) {
438 std::swap(MIs[I], MIs[E - 1]);
438 std::swap(MIs[I], MIs[E - 1]);
lib/CodeGen/WinEHPrepare.cpp 618 FuncInfo.ClrEHUnwindMap[UserState].TryParentState;
620 UserUnwindDest = FuncInfo.ClrEHUnwindMap[UserUnwindState]
lib/DebugInfo/CodeView/AppendingTypeTableBuilder.cpp 53 return CVType(SeenRecords[Index.toArrayIndex()]);
lib/DebugInfo/CodeView/GlobalTypeTableBuilder.cpp 55 CVType Type(SeenRecords[Index.toArrayIndex()]);
lib/DebugInfo/CodeView/MergingTypeTableBuilder.cpp 55 CVType Type(SeenRecords[Index.toArrayIndex()]);
106 Record = SeenRecords[ActualTI.toArrayIndex()];
lib/DebugInfo/CodeView/TypeStreamMerger.cpp 227 IndexMap[slotForIndex(CurIndex)] = Idx;
lib/DebugInfo/DWARF/DWARFContext.cpp 958 const DWARFDie &DIE = InlinedChain[0];
1186 DWARFDie &FunctionDIE = InlinedChain[i];
lib/DebugInfo/DWARF/DWARFGdbIndex.cpp 147 TuList[I] = {CuOffset, TypeOffset, Signature};
lib/DebugInfo/DWARF/DWARFVerifier.cpp 1188 if (Result.empty() || Result[0] != Str)
lib/ExecutionEngine/ExecutionEngine.cpp 158 Function *F = Modules[i]->getFunction(FnName);
167 GlobalVariable *GV = Modules[i]->getGlobalVariable(Name,AllowInternal);
321 if (GlobalValue *GV = Modules[i]->getNamedValue(Name))
1197 Module &M = *Modules[m];
1227 Module &M = *Modules[m];
lib/ExecutionEngine/MCJIT/MCJIT.cpp 80 std::unique_ptr<Module> First = std::move(Modules[0]);
lib/ExecutionEngine/Orc/SpeculateAnalyses.cpp 119 findCalles(BBFreqs[i].first, Calles);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 128 dumpSectionMemory(Sections[i], "before relocations"););
140 dumpSectionMemory(Sections[i], "after relocations"););
150 uint64_t Addr = Sections[Idx].getLoadAddress();
162 if (Sections[i].getAddress() == LocalAddress) {
386 StringRef SectionName = Sections[SectionID].getName();
1053 << Sections[SectionID].getName() << "): "
1054 << format("0x%016" PRIx64, Sections[SectionID].getLoadAddress())
1056 Sections[SectionID].setLoadAddress(Addr);
1064 if (Sections[RE.SectionID].getAddress() == nullptr)
1247 return RTDyld.Sections[I->second].getLoadAddress();
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp 230 SID EHFrameSID = UnregisteredEHFrameSections[i];
231 uint8_t *EHFrameAddr = Sections[EHFrameSID].getAddress();
232 uint64_t EHFrameLoadAddr = Sections[EHFrameSID].getLoadAddress();
233 size_t EHFrameSize = Sections[EHFrameSID].getSize();
929 const SectionEntry &Section = Sections[RE.SectionID];
1033 uint64_t(Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
1036 Address = uint64_t(Sections[Value.SectionID].getLoadAddress());
1039 uint64_t SourceAddress = Sections[SectionID].getLoadAddressWithOffset(Offset);
1047 resolveRelocation(Sections[SectionID], Offset, Address, RelI->getType(),
1059 SectionEntry &Section = Sections[SectionID];
1227 SectionEntry &Section = Sections[SectionID];
1275 SectionEntry &Section = Sections[SectionID];
1377 SectionEntry &Section = Sections[SectionID];
1453 SectionEntry &Section = Sections[SectionID];
1473 Sections[Value.SectionID].getAddressWithOffset(Value.Addend);
1581 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0);
1616 SectionEntry &Section = Sections[SectionID];
1672 SectionEntry &Section = Sections[SectionID];
1732 resolveRelocation(Sections[SectionID], Offset, GOTOffset,
1867 Sections[GOTSectionID] =
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h 101 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; }
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp 64 SectionEntry &Section = Sections[SectionID];
199 << Sections[PTSectionID].getName() << ", Section ID "
321 EHFrameRelatedSections &SectionInfo = UnregisteredEHFrameSections[i];
325 SectionEntry *Text = &Sections[SectionInfo.TextSID];
326 SectionEntry *EHFrame = &Sections[SectionInfo.EHFrameSID];
329 ExceptTab = &Sections[SectionInfo.ExceptTabSID];
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h 132 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; }
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h 62 SectionEntry &AddendSection = Sections[SectionID];
132 const auto Section = Sections[RE.SectionID];
144 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(
159 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) -
160 Sections[0].getLoadAddress();
174 : Sections[RE.Sections.SectionA].getLoadAddress();
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h 84 SectionEntry &AddendSection = Sections[SectionID];
175 const auto Section = Sections[RE.SectionID];
189 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend);
203 uint64_t Result = Sections[RE.Sections.SectionA].getLoadAddress() -
204 Sections[0].getLoadAddress() + RE.Addend;
236 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend);
265 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4;
280 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4;
295 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4;
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h 87 const SectionEntry &Section = Sections[RE.SectionID];
148 SectionEntry &Section = Sections[SectionID];
211 SectionEntry &Section = Sections[SectionID];
273 uint8_t *EHFrameAddr = Sections[EHFrameSID].getAddress();
274 uint64_t EHFrameLoadAddr = Sections[EHFrameSID].getLoadAddress();
275 size_t EHFrameSize = Sections[EHFrameSID].getSize();
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp 16 const SectionEntry &Section = Sections[RE.SectionID];
33 const SectionEntry &Section = Sections[RE.SectionID];
44 const SectionEntry &Section = Sections[RE.SectionID];
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h 358 const SectionEntry &Section = Sections[RE.SectionID];
418 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress();
419 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress();
447 SectionEntry &Section = Sections[RE.SectionID];
490 uint8_t *LocalAddress = Sections[SectionID].getAddressWithOffset(Offset);
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h 52 auto TargetObjAddr = Sections[SectionID].getObjAddress() + Offset;
56 Sections[Entry.getSectionID()].getObjAddress() + Entry.getOffset();
205 const SectionEntry &Section = Sections[RE.SectionID];
260 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress();
261 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress();
310 SectionEntry &Section = Sections[RE.SectionID];
360 SectionEntry &Section = Sections[SectionID];
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h 101 const SectionEntry &Section = Sections[RE.SectionID];
115 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress();
116 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress();
154 SectionEntry &Section = Sections[SectionID];
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h 88 const SectionEntry &Section = Sections[RE.SectionID];
112 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress();
113 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress();
131 SectionEntry &Section = Sections[RE.SectionID];
168 uint8_t *LocalAddress = Sections[SectionID].getAddressWithOffset(Offset);
lib/ExecutionEngine/SectionMemoryManager.cpp 82 MemGroup.PendingMem[FreeMB.PendingPrefixIndex];
lib/FuzzMutate/IRMutator.cpp 98 return Op.SourcePreds[0].matches({}, Src);
125 auto OpDesc = chooseOperation(Srcs[0], IB);
133 if (Value *Op = OpDesc->BuilderFunc(Srcs, Insts[IP])) {
lib/IR/AsmWriter.cpp 241 Stack.back().Shuffle[I] = List[I].second;
1323 assert(((StrVal[0] >= '0' && StrVal[0] <= '9') ||
1323 assert(((StrVal[0] >= '0' && StrVal[0] <= '9') ||
1324 ((StrVal[0] == '-' || StrVal[0] == '+') &&
1324 ((StrVal[0] == '-' || StrVal[0] == '+') &&
1325 (StrVal[1] >= '0' && StrVal[1] <= '9'))) &&
1325 (StrVal[1] >= '0' && StrVal[1] <= '9'))) &&
2492 printEscapedString(SSNs[SSID], Out);
4100 printMetadataIdentifier(MDNames[Kind], Out);
4119 Nodes[I->second] = cast<MDNode>(I->first);
4122 writeMDNode(i, Nodes[i]);
lib/IR/Attributes.cpp 1034 AttrVec[attrIdxToArrayIdx(Pair.first)] = Pair.second;
1086 AttrSets[Index] = AttributeSet::get(C, B);
1126 NewAttrSets[I] = AttributeSet::get(C, CurBuilder);
1177 AttrBuilder Merged(AttrSets[Index]);
1179 AttrSets[Index] = AttributeSet::get(C, Merged);
1196 AttrBuilder B(AttrSets[Index]);
1198 AttrSets[Index] = AttributeSet::get(C, B);
1212 AttrSets[Index] = AttrSets[Index].removeAttribute(C, Kind);
1212 AttrSets[Index] = AttrSets[Index].removeAttribute(C, Kind);
1225 AttrSets[Index] = AttrSets[Index].removeAttribute(C, Kind);
1225 AttrSets[Index] = AttrSets[Index].removeAttribute(C, Kind);
1241 AttrSets[Index] = AttrSets[Index].removeAttributes(C, AttrsToRemove);
1241 AttrSets[Index] = AttrSets[Index].removeAttributes(C, AttrsToRemove);
1254 AttrSets[WithoutIndex] = AttributeSet();
lib/IR/AutoUpgrade.cpp 604 if (Groups[1] == "fadd")
606 if (Groups[1] == "fmul")
2259 ShuffleMask[i] = i;
2324 ShuffleMask[i] = i % NumSrcElts;
2414 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i;
2434 Idxs[i] = i;
2436 Idxs[i] = SrcNumElts;
2452 Idxs[i] = i;
2455 Idxs[i + Imm * SrcNumElts] = i + DstNumElts;
2477 Idxs[i] = i + (Imm * DstNumElts);
2496 Idxs[i] = (i & ~0x3) + ((Imm >> (2 * (i & 0x3))) & 3);
2530 ShuffleMask[i] = StartIndex + i;
2535 ShuffleMask[i + HalfSize] = NumElts + StartIndex + i;
2556 Idxs[i] = ((Imm >> ((i * IdxSize) % 8)) & IdxMask) | (i & ~IdxMask);
2572 Idxs[i + l] = ((Imm >> (2 * i)) & 0x3) + l;
2574 Idxs[i + l] = i + l;
2591 Idxs[i + l] = i + l;
2593 Idxs[i + l + 4] = ((Imm >> (2 * i)) & 0x3) + 4 + l;
2613 Idxs[i] = i - (i % NumLaneElts);
2616 Idxs[i] += NumElts;
2619 Idxs[i] += (Imm >> ((i * HalfLaneElts) % 8)) & ((1 << HalfLaneElts) - 1);
2640 Idxs[i + l + 0] = i + l + Offset;
2641 Idxs[i + l + 1] = i + l + Offset;
2658 Idxs[i + l] = l + (i / 2) + NumElts * (i % 2);
2674 Idxs[i + l] = (NumLaneElts / 2) + l + (i / 2) + NumElts * (i % 2);
3209 Idxs[i] = i + (i % 2) * NumElts;
3256 Idxs[i] = i + (i % 2) * NumElts;
3595 VectorType *FltIdxTy = cast<VectorType>(Args[2]->getType());
3597 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy);
3597 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy);
3847 std::string NewValue = ValueComp[0].str() + ";" + ValueComp[1].str();
3847 std::string NewValue = ValueComp[0].str() + ";" + ValueComp[1].str();
4154 std::string Res = (Groups[1] + AddrSpaces + Groups[3]).toStringRef(Buf).str();
4154 std::string Res = (Groups[1] + AddrSpaces + Groups[3]).toStringRef(Buf).str();
lib/IR/ConstantFold.cpp 820 Ops[0]->getType()->getPointerElementType());
2404 NewIdxs[i - 1] ? NewIdxs[i - 1] : cast<Constant>(Idxs[i - 1]);
2404 NewIdxs[i - 1] ? NewIdxs[i - 1] : cast<Constant>(Idxs[i - 1]);
2425 NewIdxs[i] = ConstantExpr::getSRem(CurrIdx, Factor);
2449 NewIdxs[i - 1] = ConstantExpr::getAdd(PrevIdx, Div);
2455 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]);
2455 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]);
lib/IR/Constants.cpp 1055 EltTypes[i] = V[i]->getType();
lib/IR/Core.cpp 339 const auto &ModuleFlag = MFEs[i];
907 const auto &ModuleFlag = MVEs[i];
1229 if (const DIGlobalVariable *DGV = GVEs[0]->getVariable())
1253 if (const DIGlobalVariable *DGV = GVEs[0]->getVariable())
1276 if (const DIGlobalVariable *DGV = GVEs[0]->getVariable())
lib/IR/DIBuilder.cpp 84 if (RetainSet.insert(AllRetainTypes[I]).second)
85 RetainValues.push_back(AllRetainTypes[I]);
lib/IR/DebugInfoMetadata.cpp 131 unsigned C = Components[I++];
lib/IR/Function.cpp 1175 return Ty != ArgTys[D.getArgumentNumber()];
1200 Type *NewTy = ArgTys[D.getArgumentNumber()];
1215 Type *NewTy = ArgTys[D.getArgumentNumber()];
1229 return !isa<VectorType>(ArgTys[D.getArgumentNumber()]) ||
1231 cast<VectorType>(ArgTys[D.getArgumentNumber()])) != Ty;
1238 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1256 Type * ReferenceType = ArgTys[D.getArgumentNumber()];
1264 dyn_cast<VectorType> (ArgTys[D.getArgumentNumber()]);
1290 VectorType *ReferenceType = dyn_cast<VectorType>(ArgTys[RefArgNumber]);
1306 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1315 Type *NewTy = ArgTys[D.getArgumentNumber()];
1333 auto *ReferenceType = dyn_cast<VectorType>(ArgTys[D.getArgumentNumber()]);
1359 DeferredIntrinsicMatchPair &Check = DeferredChecks[I];
lib/IR/Instructions.cpp 1832 NewMask[i] = UndefValue::get(Int32Ty);
1837 NewMask[i] = ConstantInt::get(Int32Ty, MaskElt);
2071 if (Mask[i] != -1)
3946 Weights.getValue()[I->getCaseIndex() + 1] = Weights.getValue().back();
3960 Weights.getValue()[SI.getNumSuccessors() - 1] = *W;
3983 return Weights.getValue()[idx];
3995 auto &OldW = Weights.getValue()[idx];
lib/IR/LLVMContext.cpp 261 Names[I->second] = I->first();
lib/IR/LLVMContextImpl.cpp 207 Tags[T.second] = T.first();
227 SSNs[SSE.second] = SSE.first();
lib/IR/LegacyPassManager.cpp 363 BasicBlockPass *BP = static_cast<BasicBlockPass *>(PassVector[N]);
434 FPPassManager *FP = static_cast<FPPassManager *>(PassManagers[N]);
515 return static_cast<ModulePass *>(PassVector[N]);
580 MPPassManager *MP = static_cast<MPPassManager *>(PassManagers[N]);
lib/IR/MDBuilder.cpp 46 Vals[0] = createString("branch_weights");
50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i]));
139 Ops[u] = ExistingCallbacks->getOperand(u);
141 auto *OldCBCalleeIdxAsCM = cast<ConstantAsMetadata>(Ops[u]);
149 Ops[NumExistingOps] = NewCB;
205 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset));
206 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size));
207 Vals[i * 3 + 2] = Fields[i].Type;
218 Ops[0] = createString(Name);
220 Ops[i * 2 + 1] = Fields[i].first;
221 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second));
253 Ops[0] = Parent;
254 Ops[1] = createConstant(ConstantInt::get(Int64, Size));
255 Ops[2] = Id;
257 Ops[I * 3 + 3] = Fields[I].Type;
258 Ops[I * 3 + 4] = createConstant(ConstantInt::get(Int64, Fields[I].Offset));
259 Ops[I * 3 + 5] = createConstant(ConstantInt::get(Int64, Fields[I].Size));
lib/IR/Metadata.cpp 952 APInt LB = EndPoints[Size - 2]->getValue();
953 APInt LE = EndPoints[Size - 1]->getValue();
958 EndPoints[Size - 2] =
960 EndPoints[Size - 1] =
1024 ConstantInt *FB = EndPoints[0];
1025 ConstantInt *FE = EndPoints[1];
1028 EndPoints[i] = EndPoints[i + 2];
1028 EndPoints[i] = EndPoints[i + 2];
1037 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue());
1037 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue());
1082 auto *N = getNMDOps(Operands)[i].get();
1090 getNMDOps(Operands)[I].reset(New);
lib/IR/Verifier.cpp 2411 Assert(i == 0 || Values[i].first != Values[i - 1].first ||
2411 Assert(i == 0 || Values[i].first != Values[i - 1].first ||
2412 Values[i].second == Values[i - 1].second,
2412 Values[i].second == Values[i - 1].second,
2415 &PN, Values[i].first, Values[i].second, Values[i - 1].second);
2415 &PN, Values[i].first, Values[i].second, Values[i - 1].second);
2415 &PN, Values[i].first, Values[i].second, Values[i - 1].second);
2419 Assert(Values[i].first == Preds[i],
2419 Assert(Values[i].first == Preds[i],
2421 Values[i].first, Preds[i]);
2421 Values[i].first, Preds[i]);
5053 auto *Prev = DebugFnArgs[ArgNo - 1];
5054 DebugFnArgs[ArgNo - 1] = Var;
5088 const Function *First = DeoptimizeDeclarations[0];
lib/Linker/IRMover.cpp 205 Elements[I] = get(SrcSTy->getElementType(I));
278 ElementTypes[I] = get(Ty->getContainedType(I), Visited);
279 AnyChange |= ElementTypes[I] != Ty->getContainedType(I);
304 return *Entry = ArrayType::get(ElementTypes[0],
307 return *Entry = VectorType::get(ElementTypes[0],
310 return *Entry = PointerType::get(ElementTypes[0],
313 return *Entry = FunctionType::get(ElementTypes[0],
lib/MC/MCAsmStreamer.cpp 1857 FixupMap[i] = 0;
1860 MCFixup &F = Fixups[i];
1866 FixupMap[Index] = 1 + i;
1878 uint8_t MapEntry = FixupMap[i * 8 + 0];
1880 if (FixupMap[i * 8 + j] == MapEntry)
1889 OS << format("0x%02x", uint8_t(Code[i]));
1891 if (Code[i]) {
1893 OS << format("0x%02x", uint8_t(Code[i])) << '\''
1902 unsigned Bit = (Code[i] >> j) & 1;
1910 if (uint8_t MapEntry = FixupMap[FixupBit]) {
1921 MCFixup &F = Fixups[i];
lib/MC/MCAssembler.cpp 777 MCSection *Sec = Layout.getSectionOrder()[i];
1126 MCSection &Section = *Layout.getSectionOrder()[i];
lib/MC/MCCodeView.cpp 60 if (Files[Idx].Assigned)
69 Files[Idx].StringTableOffset = Offset;
70 Files[Idx].ChecksumTableOffset = ChecksumOffsetSymbol;
71 Files[Idx].Assigned = true;
72 Files[Idx].Checksum = ChecksumBytes;
73 Files[Idx].ChecksumKind = ChecksumKind;
255 OS.EmitSymbolValue(Files[Idx].ChecksumTableOffset, 4);
260 MCSymbolRefExpr::create(Files[Idx].ChecksumTableOffset, OS.getContext());
359 ->getContents()[Files[CurFileNum - 1].StringTableOffset]) +
359 ->getContents()[Files[CurFileNum - 1].StringTableOffset]) +
556 Files[CurSourceLoc.File - 1]
633 unsigned RangeSize = GapAndRangeSizes[I].second;
636 unsigned GapAndRangeSize = GapAndRangeSizes[J].first + GapAndRangeSizes[J].second;
636 unsigned GapAndRangeSize = GapAndRangeSizes[J].first + GapAndRangeSizes[J].second;
686 unsigned GapStartOffset = GapAndRangeSizes[I].second;
690 std::tie(GapSize, RangeSize) = GapAndRangeSizes[I];
lib/MC/MCDwarf.cpp 592 MCDwarfFile &File = MCDwarfFiles[FileNumber];
lib/MC/MCELFStreamer.cpp 81 EF->getFixups()[i].setOffset(EF->getFixups()[i].getOffset() +
81 EF->getFixups()[i].setOffset(EF->getFixups()[i].getOffset() +
83 DF->getFixups().push_back(EF->getFixups()[i]);
503 fixSymbolsInTLSFixups(F.getFixups()[i].getValue());
524 fixSymbolsInTLSFixups(Fixups[i].getValue());
592 Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
592 Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
593 DF->getFixups().push_back(Fixups[i]);
lib/MC/MCParser/AsmParser.cpp 2228 Info.ParsedOperands[i]->print(OS);
2736 FALocs[PI] = Lexer.getLoc();
2747 Error(FALocs[FAI].isValid() ? FALocs[FAI] : Lexer.getLoc(),
2747 Error(FALocs[FAI].isValid() ? FALocs[FAI] : Lexer.getLoc(),
5813 MCParsedAsmOperand &Operand = *Info.ParsedOperands[i];
5870 raw_string_ostream OS(Clobbers[I]);
5871 IP->printRegName(OS, ClobberRegs[I]);
5880 OpDecls[i] = std::make_pair(OutputDecls[i], OutputDeclsAddressOf[i]);
5880 OpDecls[i] = std::make_pair(OutputDecls[i], OutputDeclsAddressOf[i]);
5880 OpDecls[i] = std::make_pair(OutputDecls[i], OutputDeclsAddressOf[i]);
5881 Constraints[i] = OutputConstraints[i];
5881 Constraints[i] = OutputConstraints[i];
5884 OpDecls[j] = std::make_pair(InputDecls[i], InputDeclsAddressOf[i]);
5884 OpDecls[j] = std::make_pair(InputDecls[i], InputDeclsAddressOf[i]);
5884 OpDecls[j] = std::make_pair(InputDecls[i], InputDeclsAddressOf[i]);
5885 Constraints[j] = InputConstraints[i];
5885 Constraints[j] = InputConstraints[i];
lib/MC/MCSectionMachO.cpp 194 return SplitSpec.size() > Idx ? SplitSpec[Idx].trim() : StringRef();
lib/MC/MCStreamer.cpp 341 memcpy(&BytePrefix[0], &SymKindLE, 2);
342 memcpy(&BytePrefix[2], &DefRangeHeader, sizeof(T));
lib/MC/MCWasmStreamer.cpp 43 EF->getFixups()[I].setOffset(EF->getFixups()[I].getOffset() +
43 EF->getFixups()[I].setOffset(EF->getFixups()[I].getOffset() +
45 DF->getFixups().push_back(EF->getFixups()[I]);
187 Fixups[I].setOffset(Fixups[I].getOffset() + DF->getContents().size());
187 Fixups[I].setOffset(Fixups[I].getOffset() + DF->getContents().size());
188 DF->getFixups().push_back(Fixups[I]);
lib/MC/MCWinCOFFStreamer.cpp 62 Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
62 Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
63 DF->getFixups().push_back(Fixups[i]);
lib/MC/WasmObjectWriter.cpp 577 const WasmDataSegment &Segment = DataSegments[Ref.Segment];
lib/MC/WinCOFFObjectWriter.cpp 313 Symbol->Aux[0] = {};
314 Symbol->Aux[0].AuxType = ATSectionDefinition;
315 Symbol->Aux[0].Aux.SectionDefinition.Selection = MCSec.getSelection();
386 memset(&Sym->Aux[0], 0, sizeof(Sym->Aux[0]));
386 memset(&Sym->Aux[0], 0, sizeof(Sym->Aux[0]));
387 Sym->Aux[0].AuxType = ATWeakExternal;
388 Sym->Aux[0].Aux.WeakExternal.TagIndex = 0;
389 Sym->Aux[0].Aux.WeakExternal.Characteristics =
629 assert(AuxSyms.size() == 1 && AuxSyms[0].AuxType == ATSectionDefinition);
630 AuxSymbol &SecDef = AuxSyms[0];
867 return Section.Symbol->Aux[0].Aux.SectionDefinition.Selection ==
876 Section.Symbol->Aux[0].Aux.SectionDefinition.Number = I;
939 AuxSymbol &Aux = Sec->Symbol->Aux[0];
997 assert(Symbol->Aux[0].AuxType == ATWeakExternal &&
999 Symbol->Aux[0].Aux.WeakExternal.TagIndex = Symbol->Other->getIndex();
1005 if (Section->Symbol->Aux[0].Aux.SectionDefinition.Selection !=
1031 Section->Symbol->Aux[0].Aux.SectionDefinition.Number = AssocSec->Number;
lib/MCA/CodeEmitter.cpp 20 EncodingInfo &EI = Encodings[MCID];
lib/MCA/HardwareUnits/RegisterFile.cpp 122 RegisterMappingTracker &RMT = RegisterFiles[RegisterFileIndex];
128 RegisterFiles[0].NumUsedPhysRegs += Cost;
137 RegisterMappingTracker &RMT = RegisterFiles[RegisterFileIndex];
143 RegisterFiles[0].NumUsedPhysRegs -= Cost;
324 RegisterMappingTracker &RMT = RegisterFiles[RegisterFileIndex];
435 NumPhysRegs[Entry.first] += Entry.second;
436 NumPhysRegs[0] += Entry.second;
441 unsigned NumRegs = NumPhysRegs[I];
lib/MCA/HardwareUnits/ResourceManager.cpp 123 unsigned Index = getResourceStateIndex(ProcResID2Mask[I]);
124 ResIndex2ProcResID[Index] = I;
128 uint64_t Mask = ProcResID2Mask[I];
136 uint64_t Mask = ProcResID2Mask[I];
lib/MCA/InstrBuilder.cpp 314 WriteDescriptor &Write = ID.Writes[CurrentDef];
341 WriteDescriptor &Write = ID.Writes[Index];
368 WriteDescriptor &Write = ID.Writes[NumExplicitDefs + NumImplicitDefs];
400 WriteDescriptor &Write = ID.Writes[CurrentDef];
435 ReadDescriptor &Read = ID.Reads[CurrentUse];
447 ReadDescriptor &Read = ID.Reads[CurrentUse + I];
471 ReadDescriptor &Read = ID.Reads[CurrentUse];
lib/MCA/Pipeline.cpp 61 Stage &FirstStage = *Stages[0];
lib/MCA/Stages/DispatchStage.cpp 101 if (PRF.tryEliminateMove(IS.getDefs()[0], IS.getUses()[0]))
101 if (PRF.tryEliminateMove(IS.getDefs()[0], IS.getUses()[0]))
lib/MCA/Stages/EntryStage.cpp 61 auto Range = make_range(&Instructions[NumRetired], Instructions.end());
lib/MCA/Stages/ExecuteStage.cpp 281 BufferIDs[I] = HWS.getResourceID(CurrentBufferMask);
lib/MCA/Stages/MicroOpQueueStage.cpp 22 InstRef IR = Buffer[CurrentInstructionSlotIdx];
27 Buffer[CurrentInstructionSlotIdx].invalidate();
32 IR = Buffer[CurrentInstructionSlotIdx];
47 Buffer[NextAvailableSlotIdx] = IR;
lib/Object/MachOObjectFile.cpp 868 BuildTools[i] = Start + i * sizeof(MachO::build_tool_version);
2461 Res = LibrariesShortNames[Index];
lib/Option/Arg.cpp 43 delete[] Values[i];
lib/Passes/PassBuilder.cpp 1869 OptimizationLevel L = StringSwitch<OptimizationLevel>(Matches[2])
1878 if (PGOOpt && Matches[1] != "thinlto" &&
1890 if (Matches[1] == "default") {
1892 } else if (Matches[1] == "thinlto-pre-link") {
1894 } else if (Matches[1] == "thinlto") {
1896 } else if (Matches[1] == "lto-pre-link") {
1899 assert(Matches[1] == "lto" && "Not one of the matched options!");
lib/ProfileData/Coverage/CoverageMapping.cpp 425 const auto *CompletedRegion = ActiveRegions[I];
429 const auto *PrevCompletedRegion = ActiveRegions[I - 1];
443 if (CompletedRegion->endLoc() == ActiveRegions[J]->endLoc())
444 CompletedRegion = ActiveRegions[J];
453 startSegment(*ActiveRegions[FirstCompletedRegion - 1], Last->endLoc(),
lib/ProfileData/Coverage/CoverageMappingReader.cpp 306 assert(!FileIDExpansionRegionMapping[R.ExpandedFileID]);
307 FileIDExpansionRegionMapping[R.ExpandedFileID] = &R;
310 if (FileIDExpansionRegionMapping[R.FileID]) {
311 FileIDExpansionRegionMapping[R.FileID]->Count = R.Count;
312 FileIDExpansionRegionMapping[R.FileID] = nullptr;
lib/ProfileData/GCOV.cpp 80 if (!Functions[i]->readGCDA(Buffer, Version))
188 Edges.push_back(std::make_unique<GCOVEdge>(*Blocks[BlockNo], *Blocks[Dst]));
188 Edges.push_back(std::make_unique<GCOVEdge>(*Blocks[BlockNo], *Blocks[Dst]));
190 Blocks[BlockNo]->addDstEdge(Edge);
191 Blocks[Dst]->addSrcEdge(Edge);
213 GCOVBlock &Block = *Blocks[BlockNo];
321 GCOVBlock &Block = *Blocks[BlockNo];
390 DstEdges[DstEdgeNo]->Count = N;
392 if (!DstEdges[DstEdgeNo]->Dst.getNumDstEdges())
393 DstEdges[DstEdgeNo]->Dst.Counter += N;
469 const BlockVector ToUnblock(BlockLists[index]);
514 BlockVector &List = BlockLists[index];
lib/ProfileData/SampleProf.cpp 192 FS = FS->findFunctionSamplesAt(S[i].first, S[i].second);
192 FS = FS->findFunctionSamplesAt(S[i].first, S[i].second);
lib/ProfileData/SampleProfWriter.cpp 443 uint32_t idx = IndexMap[static_cast<uint32_t>(SectionHdrLayout[i].Type)];
lib/Remarks/BitstreamRemarkParser.cpp 56 Parser.ContainerVersion = Record[0];
57 Parser.ContainerType = Record[1];
63 Parser.RemarkVersion = Record[0];
103 Parser.Type = Record[0];
104 Parser.RemarkNameIdx = Record[1];
105 Parser.PassNameIdx = Record[2];
106 Parser.FunctionNameIdx = Record[3];
112 Parser.SourceFileNameIdx = Record[0];
113 Parser.SourceLine = Record[1];
114 Parser.SourceColumn = Record[2];
120 Parser.Hotness = Record[0];
129 Parser.TmpArgs.back().KeyIdx = Record[0];
130 Parser.TmpArgs.back().ValueIdx = Record[1];
131 Parser.TmpArgs.back().SourceFileNameIdx = Record[2];
132 Parser.TmpArgs.back().SourceLine = Record[3];
133 Parser.TmpArgs.back().SourceColumn = Record[4];
145 Parser.TmpArgs.back().KeyIdx = Record[0];
146 Parser.TmpArgs.back().ValueIdx = Record[1];
lib/Support/APFloat.cpp 3401 if (buffer[FirstSignificant - 1] < '5') {
3402 while (FirstSignificant < N && buffer[FirstSignificant] == '0')
3406 buffer.erase(&buffer[0], &buffer[FirstSignificant]);
3406 buffer.erase(&buffer[0], &buffer[FirstSignificant]);
3413 if (buffer[I] == '9') {
3416 buffer[I]++;
3430 buffer.erase(&buffer[0], &buffer[FirstSignificant]);
3430 buffer.erase(&buffer[0], &buffer[FirstSignificant]);
3590 Str.push_back(buffer[NDigits-1]);
3596 Str.push_back(buffer[NDigits-1-I]);
3614 Str.push_back(expbuf[E-1-I]);
3621 Str.push_back(buffer[NDigits-1-I]);
3635 Str.push_back(buffer[NDigits-I-1]);
3647 Str.push_back(buffer[NDigits-I-1]);
lib/Support/CommandLine.cpp 451 if (&C != &GeneralCategory && Categories[0] == &GeneralCategory)
452 Categories[0] = &C;
1073 if (NewArgv[I]) {
1074 StringRef Arg = NewArgv[I];
1087 NewArgv[I] = Saver.save(ResponseFile.c_str()).data();
1123 const char *Arg = Argv[I];
1217 ParseCommandLineOptions(newArgc, &newArgv[0], StringRef(Overview));
1242 return GlobalParser->ParseCommandLineOptions(NewArgc, &NewArgv[0], Overview,
1270 argv = &newArgv[0];
1318 Option *Opt = PositionalOpts[i];
1498 if (RequiresValue(PositionalOpts[i])) {
1499 ProvidePositionalOption(PositionalOpts[i], PositionalVals[ValNo].first,
1499 ProvidePositionalOption(PositionalOpts[i], PositionalVals[ValNo].first,
1500 PositionalVals[ValNo].second);
1509 bool Done = PositionalOpts[i]->getNumOccurrencesFlag() == cl::Required;
1511 switch (PositionalOpts[i]->getNumOccurrencesFlag()) {
1517 ProvidePositionalOption(PositionalOpts[i],
1518 PositionalVals[ValNo].first,
1519 PositionalVals[ValNo].second);
1532 if (RequiresValue(PositionalOpts[j])) {
1533 ErrorParsing |= ProvidePositionalOption(PositionalOpts[j],
1534 PositionalVals[ValNo].first,
1535 PositionalVals[ValNo].second);
1545 ErrorParsing |= ProvidePositionalOption(PositionalOpts[0],
1546 PositionalVals[ValNo].first,
1547 PositionalVals[ValNo].second);
1555 ProvidePositionalOption(ConsumeAfterOpt, PositionalVals[ValNo].first,
1556 PositionalVals[ValNo].second);
2062 Opts[i].second->printOptionInfo(MaxArgLen);
2133 MaxSubLen = std::max(MaxSubLen, strlen(Subs[i].first));
2149 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth());
2206 Option *Opt = Opts[I].second;
2356 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth());
2359 Opts[i].second->printOptionValue(MaxArgLen, PrintAllOptions);
lib/Support/ConvertUTFWrapper.cpp 162 UTF16 *Dst = &DstUTF16[0];
174 DstUTF16.resize(Dst - &DstUTF16[0]);
lib/Support/FileCheck.cpp 670 StringRef FullMatch = MatchInfo[0];
676 MatchInfo[VariableDef.second];
688 StringRef MatchedValue = MatchInfo[CaptureParenGroup];
1082 StringRef Prefix = Matches[0];
lib/Support/FileUtilities.cpp 116 StrTmp[static_cast<unsigned>(F1NumEnd-F1P)] = 'e';
118 V1 = strtod(&StrTmp[0], const_cast<char**>(&F1NumEnd));
119 F1NumEnd = F1P + (F1NumEnd-&StrTmp[0]);
126 StrTmp[static_cast<unsigned>(F2NumEnd-F2P)] = 'e';
128 V2 = strtod(&StrTmp[0], const_cast<char**>(&F2NumEnd));
129 F2NumEnd = F2P + (F2NumEnd-&StrTmp[0]);
lib/Support/Host.cpp 159 if (Lines[I].startswith("CPU implementer"))
160 Implementer = Lines[I].substr(15).ltrim("\t :");
161 if (Lines[I].startswith("Hardware"))
162 Hardware = Lines[I].substr(8).ltrim("\t :");
174 if (Lines[I].startswith("CPU part"))
178 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
202 if (Lines[I].startswith("CPU part")) {
203 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
218 if (Lines[I].startswith("CPU part"))
222 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
229 if (Lines[I].startswith("CPU part"))
233 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
293 if (Lines[I].startswith("features")) {
294 size_t Pos = Lines[I].find(":");
296 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' ');
306 if (CPUFeatures[I] == "vx")
312 if (Lines[I].startswith("processor ")) {
313 size_t Pos = Lines[I].find("machine = ");
317 if (!Lines[I].drop_front(Pos).getAsInteger(10, Id)) {
lib/Support/IntEqClasses.cpp 33 unsigned eca = EC[a];
34 unsigned ecb = EC[b];
40 EC[b] = eca;
42 ecb = EC[b];
44 EC[a] = ecb;
46 eca = EC[a];
63 EC[i] = (EC[i] == i) ? NumClasses++ : EC[EC[i]];
63 EC[i] = (EC[i] == i) ? NumClasses++ : EC[EC[i]];
63 EC[i] = (EC[i] == i) ? NumClasses++ : EC[EC[i]];
63 EC[i] = (EC[i] == i) ? NumClasses++ : EC[EC[i]];
71 if (EC[i] < Leader.size())
72 EC[i] = Leader[EC[i]];
72 EC[i] = Leader[EC[i]];
72 EC[i] = Leader[EC[i]];
74 Leader.push_back(EC[i] = i);
lib/Support/IntervalMap.cpp 54 while (path[l].offset == 0) {
63 --path[l].offset;
68 path[l] = Entry(NR, NR.size() - 1);
71 path[l] = Entry(NR, NR.size() - 1);
107 if (++path[l].offset == path[l].size)
107 if (++path[l].offset == path[l].size)
112 path[l] = Entry(NR, 0);
115 path[l] = Entry(NR, 0);
lib/Support/Path.cpp 432 !path.empty() && is_separator(path[path.size() - 1], style);
537 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) {
537 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) {
762 if (ModelStorage[i] == '%')
763 ResultPath[i] = "0123456789abcdef"[sys::Process::GetRandomNumber() & 15];
lib/Support/Regex.cpp 97 pm[0].rm_so = 0;
98 pm[0].rm_eo = String.size();
118 if (pm[i].rm_so == -1) {
123 assert(pm[i].rm_eo >= pm[i].rm_so);
123 assert(pm[i].rm_eo >= pm[i].rm_so);
124 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
125 pm[i].rm_eo-pm[i].rm_so));
125 pm[i].rm_eo-pm[i].rm_so));
142 std::string Res(String.begin(), Matches[0].begin());
191 Res += Matches[RefValue];
200 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end());
200 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end());
lib/Support/SymbolRemappingReader.cpp 50 Optional<FK> FragmentKind = StringSwitch<Optional<FK>>(Parts[0])
57 " found '" + Parts[0] + "'");
60 switch (Canonicalizer.addEquivalence(*FragmentKind, Parts[1], Parts[2])) {
60 switch (Canonicalizer.addEquivalence(*FragmentKind, Parts[1], Parts[2])) {
65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' "
65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' "
70 return ReportError("Could not demangle '" + Parts[1] + "' "
71 "as a <" + Parts[0] + ">; invalid mangling?");
74 return ReportError("Could not demangle '" + Parts[2] + "' "
75 "as a <" + Parts[0] + ">; invalid mangling?");
lib/Support/Triple.cpp 733 Arch = parseArch(Components[0]);
734 SubArch = parseSubArch(Components[0]);
736 Vendor = parseVendor(Components[1]);
738 OS = parseOS(Components[2]);
740 Environment = parseEnvironment(Components[3]);
741 ObjectFormat = parseFormat(Components[3]);
746 StringSwitch<Triple::EnvironmentType>(Components[0])
809 Arch = parseArch(Components[0]);
812 Vendor = parseVendor(Components[1]);
815 OS = parseOS(Components[2]);
816 IsCygwin = Components[2].startswith("cygwin");
817 IsMinGW32 = Components[2].startswith("mingw");
821 Environment = parseEnvironment(Components[3]);
824 ObjectFormat = parseFormat(Components[4]);
848 StringRef Comp = Components[Idx];
886 std::swap(CurrentComponent, Components[Idx]);
895 std::swap(CurrentComponent, Components[i]);
907 std::swap(CurrentComponent, Components[i]);
924 assert(Pos < Components.size() && Components[Pos] == Comp &&
933 if (Components[i].empty())
934 Components[i] = "unknown";
940 if (Environment == Triple::Android && Components[3].startswith("androideabi")) {
941 StringRef AndroidVersion = Components[3].drop_front(strlen("androideabi"));
943 Components[3] = "android";
946 Components[3] = NormalizedEnvironment;
952 Components[3] = "gnueabihf";
956 Components[2] = "windows";
959 Components[3] = "msvc";
961 Components[3] = getObjectFormatTypeName(ObjectFormat);
965 Components[2] = "windows";
966 Components[3] = "gnu";
969 Components[2] = "windows";
970 Components[3] = "cygnus";
976 Components[4] = getObjectFormatTypeName(ObjectFormat);
984 Normalized += Components[i];
lib/Support/Unix/Path.inc 599 Path[0] = Storage[0];
599 Path[0] = Storage[0];
lib/Support/YAMLTraits.cpp 460 auto &E = StateStack[StateStack.size() - 2];
747 return !inSeqAnyElement(StateStack[StateStack.size() - 2]);
793 inSeqAnyElement(StateStack[StateStack.size() - 2])) {
lib/TableGen/Record.cpp 183 assert(i == j || !Classes[i]->isSubClassOf(Classes[j]));
183 assert(i == j || !Classes[i]->isSubClassOf(Classes[j]));
185 assert(&Classes[0]->getRecords() == &Classes[i]->getRecords());
185 assert(&Classes[0]->getRecords() == &Classes[i]->getRecords());
398 NewBits[i] = getBit(Bits[i]);
450 NewBits[i] = NewBit;
496 NewBits[i] = BitInit::get(Value & ((i < 64) ? (1LL << i) : 0));
512 NewBits[i] = BitInit::get(Value & (INT64_C(1) << Bits[i]));
lib/TableGen/SetTheory.cpp 165 ST.evaluate(Expr->getArg(i), Args[i], Loc);
166 MaxSize = std::max(MaxSize, unsigned(Args[i].size()));
171 if (n < Args[i].size())
172 Elts.insert(Args[i][n]);
lib/TableGen/TGParser.cpp 198 if (NewBits[Bit])
201 NewBits[Bit] = BI->getBit(i);
205 if (!NewBits[i])
206 NewBits[i] = CurVal->getBit(i);
250 None, SubClass.TemplateArgs[i]))
320 TemplateArgs.emplace_back(SMCTArgs[i], SubMultiClass.TemplateArgs[i]);
1247 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
1247 return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
1788 Bits[i] = BitInit::get(BinaryVal.first & (1LL << i));
1856 if (TypedInit *TI = dyn_cast<TypedInit>(Args[i])) {
1904 if (BitsInit *BI = dyn_cast<BitsInit>(Vals[i])) {
1910 if (VarInit *VI = dyn_cast<VarInit>(Vals[i])) {
1919 Init *Bit = Vals[i]->getCastTo(BitRecTy::get());
1921 Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() +
lib/Target/AArch64/AArch64CallLowering.cpp 235 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx),
246 Type *SplitTy = SplitVTs[i].getTypeForEVT(Ctx);
250 SplitArgs.back().Flags[0].setInConsecutiveRegs();
253 SplitArgs.back().Flags[0].setInConsecutiveRegsLast();
284 if (TLI.getNumRegistersForCallingConv(Ctx, CC, SplitEVTs[i]) > 1) {
290 ArgInfo CurArgInfo = ArgInfo{CurVReg, SplitEVTs[i].getTypeForEVT(Ctx)};
299 MVT NewVT = TLI.getRegisterTypeForCallingConv(Ctx, CC, SplitEVTs[i]);
300 if (EVT(NewVT) != SplitEVTs[i]) {
352 if (CurVReg != CurArgInfo.Regs[0]) {
353 CurArgInfo.Regs[0] = CurVReg;
601 auto &ArgLoc = OutLocs[i];
629 ArgInfo &OutInfo = OutArgs[i];
640 MachineInstr *RegDef = getDefIgnoringCopies(OutInfo.Regs[0], MRI);
934 OutArgs.back().Flags[0].setZExt();
lib/Target/AArch64/AArch64CompressJumpTables.cpp 79 BlockInfo[MBB.getNumber()] = Offset;
101 int BlockOffset = BlockInfo[Block->getNumber()];
150 int Offset = BlockInfo[MBB.getNumber()];
lib/Target/AArch64/AArch64ConditionalCompares.cpp 617 if (HeadCond[0].getImm() == -1) {
620 switch (HeadCond[1].getImm()) {
639 .add(HeadCond[2])
643 MRI->constrainRegClass(HeadCond[2].getReg(),
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp 792 if (OldCollisions[I] == &MI) {
793 std::swap(OldCollisions[I], OldCollisions[E - 1]);
793 std::swap(OldCollisions[I], OldCollisions[E - 1]);
lib/Target/AArch64/AArch64FastISel.cpp 3080 const Value *ArgVal = CLI.OutVals[VA.getValNo()];
3081 MVT ArgVT = OutVTs[VA.getValNo()];
3172 MVT CopyVT = RVLocs[0].getValVT();
3181 .addReg(RVLocs[0].getLocReg());
3182 CLI.InRegs.push_back(RVLocs[0].getLocReg());
3875 CCValAssign &VA = ValLocs[0];
3916 if (!Outs[0].Flags.isZExt() && !Outs[0].Flags.isSExt())
3916 if (!Outs[0].Flags.isZExt() && !Outs[0].Flags.isSExt())
3919 bool IsZExt = Outs[0].Flags.isZExt();
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 2666 return (Ops[0] << 14) | (Ops[1] << 11) | (Ops[2] << 7) |
2666 return (Ops[0] << 14) | (Ops[1] << 11) | (Ops[2] << 7) |
2666 return (Ops[0] << 14) | (Ops[1] << 11) | (Ops[2] << 7) |
2667 (Ops[3] << 3) | (Ops[4]);
2667 (Ops[3] << 3) | (Ops[4]);
lib/Target/AArch64/AArch64ISelLowering.cpp 3182 CCValAssign &VA = ArgLocs[i];
3358 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), DL, Reg, InVals[I]);
3494 CCValAssign VA = RVLocs[i];
3765 MVT ArgVT = Outs[i].VT;
3766 ISD::ArgFlagsTy ArgFlags = Outs[i].Flags;
3768 /*IsVarArg=*/ !Outs[i].IsFixed);
3782 MVT ValVT = Outs[i].VT;
3785 CLI.getArgs()[Outs[i].OrigArgIndex].Ty,
3788 ISD::ArgFlagsTy ArgFlags = Outs[i].Flags;
3862 CCValAssign &VA = ArgLocs[i];
3863 SDValue Arg = OutVals[realArgIdx];
3864 ISD::ArgFlagsTy Flags = Outs[realArgIdx].Flags;
3879 if (Outs[realArgIdx].ArgVT == MVT::i1) {
3909 Outs[0].VT == MVT::i64) {
3912 assert(!Ins.empty() && Ins[0].VT == MVT::i64 &&
3985 if (Outs[i].Flags.isByVal()) {
3987 DAG.getConstant(Outs[i].Flags.getByValSize(), DL, MVT::i64);
3989 Chain, DL, DstAddr, Arg, SizeNode, Outs[i].Flags.getByValAlign(),
4145 IsThisReturn ? OutVals[0] : SDValue());
4182 CCValAssign &VA = RVLocs[i];
4240 SDValue Val = DAG.getCopyFromReg(RetOps[0], DL, SRetReg,
4265 RetOps[0] = Chain; // Update chain.
6433 int *LaneMask = &Mask[i * ResMultiplier];
6449 ShuffleOps[i] = Sources[i].ShuffleVec;
8878 SubVec.size() > 1 ? concatenateVectors(Builder, SubVec) : SubVec[0];
8987 if (Mask[IdxI] >= 0) {
8989 Op0, Op1, createSequentialMask(Builder, Mask[IdxI], LaneLen, 0)));
8994 if (Mask[IdxJ * Factor + IdxI] >= 0) {
8995 StartMask = Mask[IdxJ * Factor + IdxI] - IdxJ;
10000 Mask[i] = i * 2;
lib/Target/AArch64/AArch64InstrInfo.cpp 297 if (Cond[0].getImm() != -1) {
299 AArch64CC::CondCode CC = (AArch64CC::CondCode)(int)Cond[0].getImm();
300 Cond[0].setImm(AArch64CC::getInvertedCondCode(CC));
303 switch (Cond[1].getImm()) {
307 Cond[1].setImm(AArch64::CBNZW);
310 Cond[1].setImm(AArch64::CBZW);
313 Cond[1].setImm(AArch64::CBNZX);
316 Cond[1].setImm(AArch64::CBZX);
319 Cond[1].setImm(AArch64::TBNZW);
322 Cond[1].setImm(AArch64::TBZW);
325 Cond[1].setImm(AArch64::TBNZX);
328 Cond[1].setImm(AArch64::TBZX);
lib/Target/AArch64/AArch64InstructionSelector.cpp 3019 .addReg(InsertRegs[0], 0, ExtractSubReg);
lib/Target/AArch64/AArch64RedundantCopyElimination.cpp 435 if (MI->modifiesRegister(KnownRegs[RI].Reg, TRI)) {
436 std::swap(KnownRegs[RI], KnownRegs[KnownRegs.size() - 1]);
436 std::swap(KnownRegs[RI], KnownRegs[KnownRegs.size() - 1]);
lib/Target/AArch64/AArch64RegisterBankInfo.cpp 623 OpSize[Idx] = Ty.getSizeInBits();
629 OpRegBankIdx[Idx] = PMI_FirstFPR;
631 OpRegBankIdx[Idx] = PMI_FirstGPR;
662 if (OpRegBankIdx[0] != OpRegBankIdx[1])
662 if (OpRegBankIdx[0] != OpRegBankIdx[1])
664 *AArch64GenRegisterBankInfo::PartMappings[OpRegBankIdx[0]].RegBank,
665 *AArch64GenRegisterBankInfo::PartMappings[OpRegBankIdx[1]].RegBank,
666 OpSize[0]);
675 if (OpRegBankIdx[0] != PMI_FirstGPR)
688 OpRegBankIdx[0] = PMI_FirstFPR;
695 if (OpRegBankIdx[0] == PMI_FirstGPR) {
701 OpRegBankIdx[0] = PMI_FirstFPR;
707 if (OpRegBankIdx[0] != PMI_FirstGPR)
765 if (OpRegBankIdx[0] != PMI_FirstGPR)
777 OpRegBankIdx[Idx] = PMI_FirstFPR;
783 OpRegBankIdx[0] = PMI_FirstFPR;
784 OpRegBankIdx[1] = PMI_FirstFPR;
787 OpRegBankIdx[2] = PMI_FirstGPR;
790 OpRegBankIdx[0] = PMI_FirstFPR;
791 OpRegBankIdx[1] = PMI_FirstFPR;
795 OpRegBankIdx[2] = PMI_FirstFPR;
797 OpRegBankIdx[2] = PMI_FirstGPR;
800 OpRegBankIdx[3] = PMI_FirstGPR;
806 OpRegBankIdx[0] = PMI_FirstFPR;
807 OpRegBankIdx[1] = PMI_FirstFPR;
814 if (OpRegBankIdx[1] != PMI_FirstGPR)
832 OpRegBankIdx[Idx] = PMI_FirstFPR;
841 auto Mapping = getValueMapping(OpRegBankIdx[Idx], OpSize[Idx]);
841 auto Mapping = getValueMapping(OpRegBankIdx[Idx], OpSize[Idx]);
845 OpdsMapping[Idx] = Mapping;
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp 562 BuildMI(MBB, MI, DL, *ReplInstrMCID[0], ZipDest[0])
562 BuildMI(MBB, MI, DL, *ReplInstrMCID[0], ZipDest[0])
565 BuildMI(MBB, MI, DL, *ReplInstrMCID[1], ZipDest[1])
565 BuildMI(MBB, MI, DL, *ReplInstrMCID[1], ZipDest[1])
569 BuildMI(MBB, MI, DL, *ReplInstrMCID[2])
570 .addReg(ZipDest[0])
571 .addReg(ZipDest[1])
584 BuildMI(MBB, MI, DL, *ReplInstrMCID[0], ZipDest[0])
584 BuildMI(MBB, MI, DL, *ReplInstrMCID[0], ZipDest[0])
587 BuildMI(MBB, MI, DL, *ReplInstrMCID[1], ZipDest[1])
587 BuildMI(MBB, MI, DL, *ReplInstrMCID[1], ZipDest[1])
590 BuildMI(MBB, MI, DL, *ReplInstrMCID[2], ZipDest[2])
590 BuildMI(MBB, MI, DL, *ReplInstrMCID[2], ZipDest[2])
593 BuildMI(MBB, MI, DL, *ReplInstrMCID[3], ZipDest[3])
593 BuildMI(MBB, MI, DL, *ReplInstrMCID[3], ZipDest[3])
596 BuildMI(MBB, MI, DL, *ReplInstrMCID[4], ZipDest[4])
596 BuildMI(MBB, MI, DL, *ReplInstrMCID[4], ZipDest[4])
597 .addReg(ZipDest[0])
598 .addReg(ZipDest[2]);
599 BuildMI(MBB, MI, DL, *ReplInstrMCID[5], ZipDest[5])
599 BuildMI(MBB, MI, DL, *ReplInstrMCID[5], ZipDest[5])
600 .addReg(ZipDest[0])
601 .addReg(ZipDest[2]);
602 BuildMI(MBB, MI, DL, *ReplInstrMCID[6], ZipDest[6])
602 BuildMI(MBB, MI, DL, *ReplInstrMCID[6], ZipDest[6])
603 .addReg(ZipDest[1])
604 .addReg(ZipDest[3]);
605 BuildMI(MBB, MI, DL, *ReplInstrMCID[7], ZipDest[7])
605 BuildMI(MBB, MI, DL, *ReplInstrMCID[7], ZipDest[7])
606 .addReg(ZipDest[1])
607 .addReg(ZipDest[3]);
609 BuildMI(MBB, MI, DL, *ReplInstrMCID[8])
610 .addReg(ZipDest[4])
611 .addReg(ZipDest[5])
614 BuildMI(MBB, MI, DL, *ReplInstrMCID[9])
615 .addReg(ZipDest[6])
616 .addReg(ZipDest[7])
lib/Target/AArch64/AArch64SpeculationHardening.cpp 213 CondCode = AArch64CC::CondCode(analyzeBranchCondCode[0].getImm());
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 3675 !static_cast<AArch64Operand &>(*Operands[1]).isScalarReg())
3680 Operands[1]->getReg());
3693 Operands[0] = AArch64Operand::CreateToken("movz", false, Loc, Ctx);
3915 return Error(Loc[0], "instruction is unpredictable when following a"
3923 return Error(Loc[0], "instruction is unpredictable when following a"
3971 return Error(Loc[0], "unpredictable LDP instruction, writeback base "
3974 return Error(Loc[1], "unpredictable LDP instruction, writeback base "
3987 return Error(Loc[1], "unpredictable LDP instruction, Rt2==Rt");
4000 return Error(Loc[1], "unpredictable LDP instruction, Rt2==Rt");
4017 return Error(Loc[0], "unpredictable STP instruction, writeback base "
4020 return Error(Loc[1], "unpredictable STP instruction, writeback base "
4049 return Error(Loc[0], "unpredictable LDR instruction, writeback base "
4068 return Error(Loc[0], "unpredictable STR instruction, writeback base "
4085 return Error(Loc[0],
4099 return Error(Loc[0],
4173 static_cast<const AArch64Operand &>(*Operands[ErrorInfo])
4378 ((AArch64Operand &)*Operands[0]).getToken(),
4495 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[0]);
4502 AArch64Operand &Op2 = static_cast<AArch64Operand &>(*Operands[2]);
4503 AArch64Operand &Op3 = static_cast<AArch64Operand &>(*Operands[3]);
4522 Operands[0] = AArch64Operand::CreateToken(
4526 Operands[3] = AArch64Operand::CreateImm(NewOp3, Op3.getStartLoc(),
4532 AArch64Operand &Op1 = static_cast<AArch64Operand &>(*Operands[1]);
4533 AArch64Operand LSBOp = static_cast<AArch64Operand &>(*Operands[2]);
4534 AArch64Operand WidthOp = static_cast<AArch64Operand &>(*Operands[3]);
4572 Operands[0] = AArch64Operand::CreateToken(
4574 Operands[2] = AArch64Operand::CreateReg(
4577 Operands[3] = AArch64Operand::CreateImm(
4588 AArch64Operand &Op1 = static_cast<AArch64Operand &>(*Operands[1]);
4589 AArch64Operand &Op3 = static_cast<AArch64Operand &>(*Operands[3]);
4590 AArch64Operand &Op4 = static_cast<AArch64Operand &>(*Operands[4]);
4630 Operands[3] = AArch64Operand::CreateImm(
4632 Operands[4] = AArch64Operand::CreateImm(
4635 Operands[0] = AArch64Operand::CreateToken(
4638 Operands[0] = AArch64Operand::CreateToken(
4641 Operands[0] = AArch64Operand::CreateToken(
4652 AArch64Operand &Op1 = static_cast<AArch64Operand &>(*Operands[1]);
4653 AArch64Operand &Op3 = static_cast<AArch64Operand &>(*Operands[3]);
4654 AArch64Operand &Op4 = static_cast<AArch64Operand &>(*Operands[4]);
4686 Operands[4] = AArch64Operand::CreateImm(
4689 Operands[0] = AArch64Operand::CreateToken(
4692 Operands[0] = AArch64Operand::CreateToken(
4695 Operands[0] = AArch64Operand::CreateToken(
4710 AArch64Operand &Op1 = static_cast<AArch64Operand &>(*Operands[1]);
4711 AArch64Operand &Op2 = static_cast<AArch64Operand &>(*Operands[2]);
4712 AArch64Operand &Op3 = static_cast<AArch64Operand &>(*Operands[3]);
4722 Operands[Idx] = AArch64Operand::CreateToken(".16b", false, IDLoc,
4734 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[2]);
4737 Operands[2] = AArch64Operand::CreateReg(Reg, RegKind::Scalar,
4744 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[1]);
4750 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[2]);
4753 Operands[2] = AArch64Operand::CreateReg(Reg, RegKind::Scalar,
4761 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[1]);
4767 AArch64Operand &Op = static_cast<AArch64Operand &>(*Operands[1]);
4770 Operands[1] = AArch64Operand::CreateReg(Reg, RegKind::Scalar,
4802 Operands.size() > 1 && ((AArch64Operand &)*Operands[1]).isToken() &&
4803 ((AArch64Operand &)*Operands[1]).isTokenSuffix()) {
4816 OperandLocs.push_back(Operands[i]->getStartLoc());
4847 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
4853 if (((AArch64Operand &)*Operands[ErrorInfo]).isToken() &&
4854 ((AArch64Operand &)*Operands[ErrorInfo]).isTokenSuffix())
5005 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
lib/Target/AArch64/Utils/AArch64BaseInfo.cpp 137 Ops[1].getAsInteger(10, Op0);
138 Ops[2].getAsInteger(10, Op1);
139 Ops[3].getAsInteger(10, CRn);
140 Ops[4].getAsInteger(10, CRm);
141 Ops[5].getAsInteger(10, Op2);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 451 return Values[0];
455 NewVal = Builder.CreateInsertElement(NewVal, Values[I], I);
500 LHS = Builder.CreateZExtOrTrunc(LHSVals[I], I32Ty);
501 RHS = Builder.CreateZExtOrTrunc(RHSVals[I], I32Ty);
503 LHS = Builder.CreateSExtOrTrunc(LHSVals[I], I32Ty);
504 RHS = Builder.CreateSExtOrTrunc(RHSVals[I], I32Ty);
511 LHSVals[I]->getType()));
514 LHSVals[I]->getType()));
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp 683 RegSeqArgs[0] = CurDAG->getTargetConstant(RegClassID, DL, MVT::i32);
693 RegSeqArgs[1 + (2 * i)] = N->getOperand(i);
694 RegSeqArgs[1 + (2 * i) + 1] = CurDAG->getTargetConstant(Sub, DL, MVT::i32);
703 RegSeqArgs[1 + (2 * i)] = SDValue(ImpDef, 0);
704 RegSeqArgs[1 + (2 * i) + 1] =
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 946 uint64_t BasePartOffset = Offsets[Value];
948 EVT ArgVT = ValueVTs[Value];
1103 InVals.push_back(DAG.getUNDEF(CLI.Ins[I].VT));
2743 Args[I] = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, ScalarVT, Args[I], VTOp);
2743 Args[I] = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, ScalarVT, Args[I], VTOp);
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp 1882 if (AddrInfo.empty() || AddrInfo[0].SgprParts.size() != 1)
1885 const GEPInfo &GEPInfo = AddrInfo[0];
1903 if (AddrInfo.empty() || AddrInfo[0].SgprParts.size() != 1)
1906 const GEPInfo &GEPInfo = AddrInfo[0];
1928 if (AddrInfo.empty() || AddrInfo[0].SgprParts.size() != 1)
1931 const GEPInfo &GEPInfo = AddrInfo[0];
lib/Target/AMDGPU/AMDGPULibCalls.cpp 770 FVal.push_back((float)DVal[i]);
1065 FVal.push_back((float)DVal[i]);
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp 361 unsigned int CodeDWord = *(unsigned int *)&CodeBytes[i];
lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp 1892 if (!Cond[0].isReg())
1895 Register CondReg = Cond[0].getReg();
2439 unsigned RegionIndex = PHIRegionIndices[0];
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 226 if (OpConvSpecifiers[ArgCount - 1] == 'x' ||
227 OpConvSpecifiers[ArgCount - 1] == 'X' ||
228 OpConvSpecifiers[ArgCount - 1] == 'u' ||
229 OpConvSpecifiers[ArgCount - 1] == 'o')
238 if (OpConvSpecifiers[ArgCount - 1] == 'f') {
249 if (shouldPrintAsStr(OpConvSpecifiers[ArgCount - 1], ArgType)) {
413 if (OpConvSpecifiers[ArgCount - 1] == 'f') {
434 if (shouldPrintAsStr(OpConvSpecifiers[ArgCount - 1], ArgType)) {
533 Value *TheBtCast = WhatToStore[I];
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp 194 Operands[I] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, SizeI);
202 Operands[OpIdx] = AMDGPU::getValueMapping(Entry.RegBanks[I], Sizes[I]);
1069 Register BasePtrReg = SrcRegs[0];
1103 B.buildExtractVectorElement(DefRegs[DefIdx], TmpReg, IdxReg);
1144 OpdMapper.getMI().getOperand(OpIdx).setReg(SrcReg[0]);
1371 B.buildSelect(DefRegs[0], Src0Regs[0], Src1Regs[0], Src2Regs[0]);
1371 B.buildSelect(DefRegs[0], Src0Regs[0], Src1Regs[0], Src2Regs[0]);
1371 B.buildSelect(DefRegs[0], Src0Regs[0], Src1Regs[0], Src2Regs[0]);
1371 B.buildSelect(DefRegs[0], Src0Regs[0], Src1Regs[0], Src2Regs[0]);
1372 B.buildSelect(DefRegs[1], Src0Regs[0], Src1Regs[1], Src2Regs[1]);
1372 B.buildSelect(DefRegs[1], Src0Regs[0], Src1Regs[1], Src2Regs[1]);
1372 B.buildSelect(DefRegs[1], Src0Regs[0], Src1Regs[1], Src2Regs[1]);
1372 B.buildSelect(DefRegs[1], Src0Regs[0], Src1Regs[1], Src2Regs[1]);
1421 .addDef(DefRegs[0])
1422 .addUse(Src0Regs[0])
1423 .addUse(Src1Regs[0]);
1426 .addDef(DefRegs[1])
1427 .addUse(Src0Regs[1])
1428 .addUse(Src1Regs[1]);
1518 B.buildSExtOrTrunc(DefRegs[0], SrcReg);
1523 B.buildAShr(DefRegs[1], DefRegs[0], ShiftAmt);
1523 B.buildAShr(DefRegs[1], DefRegs[0], ShiftAmt);
1525 B.buildZExtOrTrunc(DefRegs[0], SrcReg);
1526 B.buildConstant(DefRegs[1], 0);
1558 B.buildSelect(DefRegs[0], SrcReg, True, False);
1559 B.buildCopy(DefRegs[1], DefRegs[0]);
1559 B.buildCopy(DefRegs[1], DefRegs[0]);
1687 B.buildExtractVectorElement(DstRegs[0], CastSrc, IdxLo);
1688 B.buildExtractVectorElement(DstRegs[1], CastSrc, IdxHi);
1755 auto InsLo = B.buildInsertVectorElement(Vec32, CastSrc, InsRegs[0], IdxLo);
1756 auto InsHi = B.buildInsertVectorElement(Vec32, InsLo, InsRegs[1], IdxHi);
1930 OpdsMapping[i] = AMDGPU::getValueMapping(BankID, Size);
1944 OpdsMapping[OpdIdx++] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size0);
1947 OpdsMapping[OpdIdx++] = nullptr;
1956 OpdsMapping[OpdIdx++] = AMDGPU::getValueMapping(Bank1, Size1);
1965 OpdsMapping[OpdIdx] = AMDGPU::getValueMapping(BankID, Size);
1984 OpdsMapping[I] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size);
2020 OpdsMapping[I] = AMDGPU::getValueMapping(NewBank, Size);
2023 OpdsMapping[I] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size);
2060 OpdsMapping[0] = ValMapping;
2061 OpdsMapping[1] = PtrMapping;
2246 OpdsMapping[0] = AMDGPU::getValueMapping(TargetBankID, Size);
2247 OpdsMapping[1] = AMDGPU::getValueMapping(BankLHS, Size);
2248 OpdsMapping[2] = AMDGPU::getValueMapping(BankRHS, Size);
2255 OpdsMapping[0] = getValueMappingSGPR64Only(AMDGPU::SGPRRegBankID, Size);
2256 OpdsMapping[1] = OpdsMapping[2] = OpdsMapping[0];
2256 OpdsMapping[1] = OpdsMapping[2] = OpdsMapping[0];
2256 OpdsMapping[1] = OpdsMapping[2] = OpdsMapping[0];
2258 OpdsMapping[0] = getValueMappingSGPR64Only(AMDGPU::VGPRRegBankID, Size);
2260 OpdsMapping[1] = AMDGPU::getValueMapping(Bank1, Size);
2263 OpdsMapping[2] = AMDGPU::getValueMapping(Bank2, Size);
2326 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2334 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2341 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size);
2350 OpdsMapping[0] = AMDGPU::getValueMapping(BankID, DstSize);
2351 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize);
2352 OpdsMapping[2] = AMDGPU::getValueMapping(BankID, EltSize);
2353 OpdsMapping[3] = nullptr;
2360 OpdsMapping[0] = AMDGPU::getValueMapping(BankID, DstSize);
2361 OpdsMapping[1] = AMDGPU::getValueMapping(BankID, SrcSize);
2362 OpdsMapping[2] = nullptr;
2375 OpdsMapping[0] = AMDGPU::getValueMapping(DstBankID, DstSize);
2376 OpdsMapping[1] = AMDGPU::getValueMapping(Src0BankID, SrcSize);
2377 OpdsMapping[2] = AMDGPU::getValueMapping(Src1BankID, SrcSize);
2390 OpdsMapping[0] = AMDGPU::getValueMapping(Bank, DstSize);
2393 OpdsMapping[i] = AMDGPU::getValueMapping(Bank, SrcSize);
2410 OpdsMapping[0] = OpdsMapping[1] = AMDGPU::getValueMapping(BankID, Size);
2410 OpdsMapping[0] = OpdsMapping[1] = AMDGPU::getValueMapping(BankID, Size);
2419 OpdsMapping[0] = AMDGPU::getValueMapping(Bank, DstSize);
2420 OpdsMapping[1] = AMDGPU::getValueMapping(Bank, SrcSize);
2446 OpdsMapping[0] = AMDGPU::getValueMapping(DstBank, DstSize);
2447 OpdsMapping[1] = AMDGPU::getValueMapping(SrcBank->getID(), SrcSize);
2451 OpdsMapping[0] = AMDGPU::getValueMappingSGPR64Only(DstBank, DstSize);
2452 OpdsMapping[1] = AMDGPU::getValueMappingSGPR64Only(SrcBank->getID(),
2460 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, 1);
2461 OpdsMapping[1] = nullptr; // Predicate Operand.
2462 OpdsMapping[2] = AMDGPU::getValueMapping(Op2Bank, Size);
2463 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size);
2479 OpdsMapping[0] = ValMapping;
2480 OpdsMapping[1] = PtrMapping;
2498 OpdsMapping[0] = AMDGPU::getValueMapping(Op0Bank, 1);
2499 OpdsMapping[1] = nullptr; // Predicate Operand.
2500 OpdsMapping[2] = AMDGPU::getValueMapping(Op2Bank, Size);
2501 OpdsMapping[3] = AMDGPU::getValueMapping(Op3Bank, Size);
2513 OpdsMapping[0] = AMDGPU::getValueMappingSGPR64Only(OutputBankID, DstSize);
2514 OpdsMapping[1] = AMDGPU::getValueMapping(SrcBankID, SrcSize);
2517 OpdsMapping[2] = AMDGPU::getValueMapping(IdxBank, IdxSize);
2532 OpdsMapping[0] = AMDGPU::getValueMapping(OutputBankID, VecSize);
2533 OpdsMapping[1] = AMDGPU::getValueMapping(SrcBankID, VecSize);
2534 OpdsMapping[2] = AMDGPU::getValueMappingSGPR64Only(InsertEltBankID,
2538 OpdsMapping[3] = AMDGPU::getValueMapping(IdxBankID, IdxSize);
2549 OpdsMapping[i] = AMDGPU::getValueMapping(Bank, Size);
2619 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2624 OpdsMapping[0] = OpdsMapping[2]
2624 OpdsMapping[0] = OpdsMapping[2]
2640 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size0);
2641 OpdsMapping[1] = nullptr; // intrinsic id
2645 OpdsMapping[2] = AMDGPU::getValueMapping(RSrcBank, Size2); // rsrc
2646 OpdsMapping[3] = AMDGPU::getValueMapping(OffsetBank, Size3);
2647 OpdsMapping[4] = nullptr;
2653 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Dst0Size);
2654 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, Dst1Size);
2657 OpdsMapping[3] = AMDGPU::getValueMapping(
2659 OpdsMapping[4] = AMDGPU::getValueMapping(
2670 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, DstSize);
2671 OpdsMapping[2] = AMDGPU::getValueMapping(getRegBankID(Src0Reg, MRI, *TRI),
2673 OpdsMapping[3] = AMDGPU::getValueMapping(getRegBankID(Src1Reg, MRI, *TRI),
2681 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, DstSize);
2685 OpdsMapping[2] = AMDGPU::getValueMapping(Op1Bank, OpSize);
2686 OpdsMapping[3] = AMDGPU::getValueMapping(Op2Bank, OpSize);
2694 OpdsMapping[3] = AMDGPU::getValueMapping(IdxBank, IdxSize);
2700 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, DstSize);
2701 OpdsMapping[2] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, SrcSize);
2712 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, DstSize);
2716 OpdsMapping[2] = AMDGPU::getValueMapping(SrcBank, SrcSize);
2717 OpdsMapping[3] = AMDGPU::getValueMapping(IdxBank, IdxSize);
2718 OpdsMapping[4] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, SrcSize);
2723 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2724 OpdsMapping[2] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, 1);
2725 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2739 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2753 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, DstSize);
2756 OpdsMapping[2] = AMDGPU::getValueMapping(M0Bank, 32);
2757 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2761 OpdsMapping[0] = nullptr; // IntrinsicID
2763 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, 32);
2764 OpdsMapping[2] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, 32);
2766 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2767 OpdsMapping[4] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2769 OpdsMapping[5] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, 32);
2770 OpdsMapping[6] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, 32);
2774 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2775 OpdsMapping[4] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2776 OpdsMapping[5] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2777 OpdsMapping[6] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2792 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size0);
2793 OpdsMapping[1] = nullptr; // intrinsic id
2797 OpdsMapping[2] = AMDGPU::getValueMapping(RSrcBank, Size2); // rsrc
2798 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, Size3);
2799 OpdsMapping[4] = AMDGPU::getValueMapping(OffsetBank, Size4);
2800 OpdsMapping[5] = nullptr;
2801 OpdsMapping[6] = nullptr;
2809 OpdsMapping[2] = AMDGPU::getValueMapping(Bank, 32);
2815 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2820 OpdsMapping[0] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, 1);
2821 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, WaveSize);
2822 OpdsMapping[3] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, WaveSize);
2826 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::VCCRegBankID, 1);
2833 OpdsMapping[0] = getVGPROpMapping(MI.getOperand(0).getReg(), MRI, *TRI);
2834 OpdsMapping[2] = getSGPROpMapping(MI.getOperand(2).getReg(), MRI, *TRI);
2835 OpdsMapping[3] = getVGPROpMapping(MI.getOperand(3).getReg(), MRI, *TRI);
2836 OpdsMapping[4] = getSGPROpMapping(MI.getOperand(4).getReg(), MRI, *TRI);
2842 OpdsMapping[1] = getVGPROpMapping(MI.getOperand(1).getReg(), MRI, *TRI);
2843 OpdsMapping[2] = getSGPROpMapping(MI.getOperand(2).getReg(), MRI, *TRI);
2844 OpdsMapping[3] = getVGPROpMapping(MI.getOperand(3).getReg(), MRI, *TRI);
2845 OpdsMapping[4] = getSGPROpMapping(MI.getOperand(4).getReg(), MRI, *TRI);
2850 OpdsMapping[0] = getVGPROpMapping(MI.getOperand(0).getReg(), MRI, *TRI);
2851 OpdsMapping[2] = getSGPROpMapping(MI.getOperand(2).getReg(), MRI, *TRI);
2852 OpdsMapping[3] = getVGPROpMapping(MI.getOperand(3).getReg(), MRI, *TRI);
2853 OpdsMapping[4] = getVGPROpMapping(MI.getOperand(4).getReg(), MRI, *TRI);
2854 OpdsMapping[5] = getSGPROpMapping(MI.getOperand(5).getReg(), MRI, *TRI);
2859 OpdsMapping[1] = getVGPROpMapping(MI.getOperand(1).getReg(), MRI, *TRI);
2860 OpdsMapping[2] = getSGPROpMapping(MI.getOperand(2).getReg(), MRI, *TRI);
2861 OpdsMapping[3] = getVGPROpMapping(MI.getOperand(3).getReg(), MRI, *TRI);
2862 OpdsMapping[4] = getVGPROpMapping(MI.getOperand(4).getReg(), MRI, *TRI);
2863 OpdsMapping[5] = getSGPROpMapping(MI.getOperand(5).getReg(), MRI, *TRI);
2868 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2869 OpdsMapping[2] = AMDGPU::getValueMapping(AMDGPU::SGPRRegBankID, Size);
2875 OpdsMapping[1] = AMDGPU::getValueMapping(AMDGPU::VGPRRegBankID, 32);
2880 OpdsMapping[2] = AMDGPU::getValueMapping(Bank, 32);
2889 OpdsMapping[1] = AMDGPU::getValueMapping(Bank, 32);
2930 OpdsMapping[0] = AMDGPU::getValueMappingSGPR64Only(Bank, Size);
2931 OpdsMapping[1] = AMDGPU::getValueMapping(CondBank, 1);
2932 OpdsMapping[2] = AMDGPU::getValueMappingSGPR64Only(Bank, Size);
2933 OpdsMapping[3] = AMDGPU::getValueMappingSGPR64Only(Bank, Size);
2935 OpdsMapping[0] = AMDGPU::getValueMapping(Bank, Size);
2936 OpdsMapping[1] = AMDGPU::getValueMapping(CondBank, 1);
2937 OpdsMapping[2] = AMDGPU::getValueMapping(Bank, Size);
2938 OpdsMapping[3] = AMDGPU::getValueMapping(Bank, Size);
2971 OpdsMapping[0] = AMDGPU::getValueMapping(Bank, 1);
lib/Target/AMDGPU/AMDGPUSubtarget.cpp 788 for (const SDep &SI : Succs[I]->Succs) {
790 if (SU != Succs[I] && llvm::find(Succs, SU) == Succs.end())
lib/Target/AMDGPU/AMDILCFGStructurizer.cpp 698 ContInstr[i]->eraseFromParent();
1050 ExitBlkSet.insert(ExitBlks[i]);
1060 mergeLoopbreakBlock(ExitingMBBs[i], ExitBlk);
1062 settleLoopcontBlock(LatchBlks[i], LoopHeader);
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 3528 ((AMDGPUOperand &)*Operands[0]).getToken(), FBS);
3530 ((AMDGPUOperand &)*Operands[0]).getLocRange());
3539 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc();
5752 AMDGPUOperand &Opr = ((AMDGPUOperand &)*Operands[Operands.size() - 1]);
lib/Target/AMDGPU/GCNNSAReassign.cpp 116 if (VRM->hasPhys(Intervals[N]->reg))
117 LRM->unassign(*Intervals[N]);
120 if (LRM->checkInterference(*Intervals[N], StartReg + N))
124 LRM->assign(*Intervals[N], StartReg + N);
323 if (VRM->hasPhys(Intervals[I]->reg))
324 LRM->unassign(*Intervals[I]);
327 LRM->assign(*Intervals[I], OrigRegs[I]);
327 LRM->assign(*Intervals[I], OrigRegs[I]);
lib/Target/AMDGPU/GCNRegBankReassign.cpp 536 if (!(OperandMasks[I].Mask & OperandMasks[J].Mask))
536 if (!(OperandMasks[I].Mask & OperandMasks[J].Mask))
539 unsigned Reg1 = OperandMasks[I].Reg;
540 unsigned Reg2 = OperandMasks[J].Reg;
541 unsigned SubReg1 = OperandMasks[I].SubReg;
542 unsigned SubReg2 = OperandMasks[J].SubReg;
543 unsigned Mask1 = OperandMasks[I].Mask;
544 unsigned Mask2 = OperandMasks[J].Mask;
lib/Target/AMDGPU/GCNSchedStrategy.cpp 338 PressureBefore = Pressure[RegionIdx];
341 GCNRPTracker::printLiveRegs(dbgs(), LiveIns[RegionIdx], MRI);
343 llvm::getRegPressure(MRI, LiveIns[RegionIdx]).print(dbgs());
349 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd);
363 Pressure[RegionIdx] = PressureAfter;
392 Pressure[RegionIdx] = PressureAfter;
429 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd);
456 if (Regions[CurRegion].first->getParent() != MBB)
467 auto &Rgn = Regions[CurRegion];
478 if (Regions[CurRegion].first == I) {
479 LiveIns[CurRegion] = RPTracker.getLiveRegs();
483 if (Regions[CurRegion].second == I) {
484 Pressure[CurRegion] = RPTracker.moveMaxPressure();
lib/Target/AMDGPU/R600ISelLowering.cpp 1595 CCValAssign &VA = ArgLocs[i];
1634 unsigned ValBase = ArgLocs[In.getOrigArgIndex()].getLocMemOffset();
1936 EVT OpVT = Ops[0].getValueType();
1941 Ops[Elt] = InVal;
lib/Target/AMDGPU/R600InstrInfo.cpp 934 MachineOperand &MO = Cond[1];
952 MachineOperand &MO2 = Cond[2];
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp 262 InstsToErase[i]->eraseFromParent();
290 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType);
290 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType);
295 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType);
295 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType);
lib/Target/AMDGPU/R600Packetizer.cpp 195 const SDep &Dep = SUJ->Succs[i];
lib/Target/AMDGPU/SIFoldOperands.cpp 520 const MachineOperand *Op = Defs[I].first;
537 appendFoldCandidate(FoldList, UseMI, UseOpIdx, Defs[0].first);
701 MachineOperand *Def = Defs[I].first;
755 B.addImm(Defs[I].second);
lib/Target/AMDGPU/SIISelLowering.cpp 2128 CCValAssign &VA = ArgLocs[ArgIdx++];
2310 CCValAssign &VA = RVLocs[I];
2358 RetOps[0] = Chain;
2383 CCValAssign VA = RVLocs[i];
2687 InVals.push_back(DAG.getUNDEF(CLI.Ins[I].VT));
2785 CCValAssign &VA = ArgLocs[i];
2786 SDValue Arg = OutVals[realArgIdx];
2826 ISD::ArgFlagsTy Flags = Outs[realArgIdx].Flags;
2857 if (Outs[i].Flags.isByVal()) {
2859 DAG.getConstant(Outs[i].Flags.getByValSize(), DL, MVT::i32);
2861 Chain, DL, DstAddr, Arg, SizeNode, Outs[i].Flags.getByValAlign(),
2979 IsThisReturn ? OutVals[0] : SDValue());
5182 VecElts[i] = Elt;
5185 VecElts[i] = DAG.getUNDEF(MVT::f32);
5188 return VecElts[0];
5277 PreTFCRes = BVElts[0];
5293 SDValue TFCRes = DAG.getNode(ISD::BITCAST, DL, ResultTypes[1], TFCElt[0]);
5354 ResultTypes[0] = Is64Bit ? MVT::v2i64 : MVT::v2i32;
5385 MVT LoadVT = ResultTypes[0].getSimpleVT();
5544 ResultTypes[0] = NewVT;
5549 ResultTypes.erase(&ResultTypes[1]);
5626 return DAG.getMergeValues({Elt[0], SDValue(NewNode, 1)}, DL);
5701 return Loads[0];
8105 NewOps[N->getOpcode() == ISD::STORE ? 2 : 1] = NewPtr;
lib/Target/AMDGPU/SIInstrInfo.cpp 2009 auto Pred = Cond[0].getImm();
2109 if (Cond[0].isImm()) {
2110 Cond[0].setImm(-Cond[0].getImm());
2110 Cond[0].setImm(-Cond[0].getImm());
4247 MIB.addReg(SRegs[i]);
lib/Target/AMDGPU/SILowerControlFlow.cpp 482 if (Ops[0].isIdenticalTo(Ops[1])) UniqueOpndIdx = 2;
482 if (Ops[0].isIdenticalTo(Ops[1])) UniqueOpndIdx = 2;
483 else if (Ops[0].isIdenticalTo(Ops[2])) UniqueOpndIdx = 1;
483 else if (Ops[0].isIdenticalTo(Ops[2])) UniqueOpndIdx = 1;
484 else if (Ops[1].isIdenticalTo(Ops[2])) UniqueOpndIdx = 1;
484 else if (Ops[1].isIdenticalTo(Ops[2])) UniqueOpndIdx = 1;
489 MI.addOperand(Ops[UniqueOpndIdx]);
lib/Target/AMDGPU/SILowerI1Copies.cpp 327 MachineBasicBlock *Dom = CommonDominators[LoopLevel];
368 if (PDT.dominates(VisitedPostDom, NextLevel[i])) {
369 Stack.push_back(NextLevel[i]);
371 NextLevel[i] = NextLevel.back();
615 SSAUpdater.AddAvailableValue(IncomingBlocks[i],
620 MachineBasicBlock &IMBB = *IncomingBlocks[i];
622 IMBB, getSaluInsertionAtEnd(IMBB), {}, IncomingUpdated[i],
623 SSAUpdater.GetValueInMiddleOfBlock(&IMBB), IncomingRegs[i]);
634 MachineBasicBlock &IMBB = *IncomingBlocks[i];
637 SSAUpdater.AddAvailableValue(&IMBB, IncomingRegs[i]);
645 if (!IncomingUpdated[i])
648 MachineBasicBlock &IMBB = *IncomingBlocks[i];
650 IMBB, getSaluInsertionAtEnd(IMBB), {}, IncomingUpdated[i],
651 SSAUpdater.GetValueInMiddleOfBlock(&IMBB), IncomingRegs[i]);
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp 383 Spill.Lanes[I] = *NextSpillReg++;
lib/Target/ARC/ARCISelLowering.cpp 263 CCValAssign &VA = ArgLocs[i];
264 SDValue Arg = OutVals[i];
315 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
316 RegsToPass[i].second, Glue);
340 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
341 RegsToPass[i].second.getValueType()));
398 int Offset = ResultMemLocs[i].first;
399 unsigned Index = ResultMemLocs[i].second;
405 InVals[Index] = Load;
480 CCValAssign &VA = ArgLocs[i];
632 CCValAssign &VA = RVLocs[i];
660 CCValAssign &VA = RVLocs[i];
672 RetOps[0] = Chain; // Update chain.
lib/Target/ARC/ARCInstrInfo.cpp 353 Cond[2].setImm(GetOppositeBranchCondition((ARCCC::CondCode)Cond[2].getImm()));
353 Cond[2].setImm(GetOppositeBranchCondition((ARCCC::CondCode)Cond[2].getImm()));
lib/Target/ARM/ARMBaseInstrInfo.cpp 477 ARMCC::CondCodes CC = (ARMCC::CondCodes)(int)Cond[0].getImm();
478 Cond[0].setImm(ARMCC::getOppositeCondition(CC));
2515 MIB.add(RegList[i]);
3176 OperandsToUpdate[i].first->setImm(OperandsToUpdate[i].second);
3176 OperandsToUpdate[i].first->setImm(OperandsToUpdate[i].second);
lib/Target/ARM/ARMBasicBlockInfo.cpp 49 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()];
132 const unsigned Offset = BBInfo[i - 1].postOffset(Align);
133 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align);
139 BBInfo[i].Offset == Offset &&
140 BBInfo[i].KnownBits == KnownBits)
143 BBInfo[i].Offset = Offset;
144 BBInfo[i].KnownBits = KnownBits;
lib/Target/ARM/ARMBasicBlockInfo.h 141 BBInfo[MBB->getNumber()].Size += Size;
lib/Target/ARM/ARMCallLowering.cpp 207 SplitArgs.emplace_back(OrigArg.Regs[0], SplitVTs[0].getTypeForEVT(Ctx),
214 EVT SplitVT = SplitVTs[i];
551 if (Arg.Flags[0].isByVal())
lib/Target/ARM/ARMCallingConv.cpp 181 assert(PendingMembers[0].getLocVT() == LocVT);
197 unsigned Align = std::min(PendingMembers[0].getExtraInfo(), StackAlign);
lib/Target/ARM/ARMCodeGenPrepare.cpp 633 Type *Ty = TruncTysMap[Call][i];
644 Type *Ty = TruncTysMap[Switch][0];
654 Type *Ty = TruncTysMap[I][i];
720 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]);
lib/Target/ARM/ARMConstantIslandPass.cpp 308 return BBInfo[LHS.getNumber()].postOffset() <
309 BBInfo[RHS.getNumber()].postOffset();
336 const BasicBlockInfo &BBI = BBInfo[J];
340 << format(" size=%#x\n", BBInfo[J].Size);
529 MachineBasicBlock::iterator InsAt = InsPoint[LogAlign];
538 if (InsPoint[a] == InsAt)
539 InsPoint[a] = CPEMI;
975 const BasicBlockInfo &BBI = BBInfo[U.MI->getParent()->getNumber()];
1025 const unsigned CPEOffset = BBInfo[Water->getNumber()].postOffset(CPEAlign);
1030 NextBlockOffset = BBInfo[Water->getNumber()].postOffset();
1032 NextBlockOffset = BBInfo[NextBlock->getNumber()].Offset;
1070 const BasicBlockInfo &BBI = BBInfo[Block];
1218 unsigned MinNoSplitDisp = BBInfo[UserBB->getNumber()].postOffset(CPEAlign);
1274 const BasicBlockInfo &UserBBI = BBInfo[UserMBB->getNumber()];
1551 BBUtils->getBBInfo()[NewIsland->getNumber()].Offset));
1566 BBInfo[CPEBB->getNumber()].Size = 0;
1634 BBInfo[MBB->getNumber()].Size += 2;
1744 MachineInstr *MI = PushPopMIs[i];
1885 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset;
1979 BBInfo[MBB->getNumber()].Size -= 2;
1990 BBInfo[MBB->getNumber()].Size -= LastMI->getDesc().getSize();
2168 MachineInstr *MI = T2JumpTables[i];
2183 unsigned DstOffset = BBInfo[MBB->getNumber()].Offset;
2342 BBInfo[MBB->getNumber()].Size -= Delta;
2362 MachineInstr *MI = T2JumpTables[i];
lib/Target/ARM/ARMFastISel.cpp 1903 CCValAssign &VA = ArgLocs[i];
1904 MVT ArgVT = ArgVTs[VA.getValNo()];
1917 !VA.isRegLoc() || !ArgLocs[++i].isRegLoc())
1953 CCValAssign &VA = ArgLocs[i];
1954 const Value *ArgVal = Args[VA.getValNo()];
1955 Register Arg = ArgRegs[VA.getValNo()];
1956 MVT ArgVT = ArgVTs[VA.getValNo()];
2002 CCValAssign &NextVA = ArgLocs[++i];
2053 MVT DestVT = RVLocs[0].getValVT();
2058 .addReg(RVLocs[0].getLocReg())
2059 .addReg(RVLocs[1].getLocReg()));
2061 UsedRegs.push_back(RVLocs[0].getLocReg());
2062 UsedRegs.push_back(RVLocs[1].getLocReg());
2068 MVT CopyVT = RVLocs[0].getValVT();
2079 ResultReg).addReg(RVLocs[0].getLocReg());
2080 UsedRegs.push_back(RVLocs[0].getLocReg());
2127 CCValAssign &VA = ValLocs[0];
2150 if (Outs[0].Flags.isZExt() || Outs[0].Flags.isSExt()) {
2150 if (Outs[0].Flags.isZExt() || Outs[0].Flags.isSExt()) {
2151 SrcReg = ARMEmitIntExt(RVVT, SrcReg, DestVT, Outs[0].Flags.isZExt());
lib/Target/ARM/ARMFrameLowering.cpp 1029 MIB.addReg(Regs[i].first, getKillRegState(Regs[i].second));
1029 MIB.addReg(Regs[i].first, getKillRegState(Regs[i].second));
1032 .addReg(Regs[0].first, getKillRegState(Regs[0].second))
1032 .addReg(Regs[0].first, getKillRegState(Regs[0].second))
1124 MIB.addReg(Regs[i], getDefRegState(true));
1135 if (Regs[0] == ARM::PC)
1136 Regs[0] = ARM::LR;
1138 BuildMI(MBB, MI, DL, TII.get(LdrOpc), Regs[0])
2052 unsigned Reg = UnspilledCS1GPRs[i];
lib/Target/ARM/ARMISelDAGToDAG.cpp 4683 IsTiedToChangedOp = OpChanged[DefIdx];
4766 OpChanged[OpChanged.size() -1 ] = true;
lib/Target/ARM/ARMISelLowering.cpp 1938 CCValAssign VA = RVLocs[i];
1956 VA = RVLocs[++i]; // skip ahead to next loc
1970 VA = RVLocs[++i]; // skip ahead to next loc
1974 VA = RVLocs[++i]; // skip ahead to next loc
2066 bool isStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
2133 CCValAssign &VA = ArgLocs[i];
2134 SDValue Arg = OutVals[realArgIdx];
2135 ISD::ArgFlagsTy Flags = Outs[realArgIdx].Flags;
2165 VA, ArgLocs[++i], StackPtr, MemOpChains, Flags);
2167 VA = ArgLocs[++i]; // skip ahead to next loc
2170 VA, ArgLocs[++i], StackPtr, MemOpChains, Flags);
2178 PassF64ArgInRegs(dl, DAG, Chain, Arg, RegsToPass, VA, ArgLocs[++i],
2183 Outs[0].VT == MVT::i32) {
2186 assert(!Ins.empty() && Ins[0].VT == MVT::i32 &&
2260 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
2261 RegsToPass[i].second, InFlag);
2398 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
2399 RegsToPass[i].second.getValueType()));
2447 isThisReturn ? OutVals[0] : SDValue());
2639 CCValAssign &VA = ArgLocs[i];
2652 if (!ArgLocs[++i].isRegLoc())
2655 if (!ArgLocs[++i].isRegLoc())
2657 if (!ArgLocs[++i].isRegLoc())
2748 CCValAssign &VA = RVLocs[i];
2799 VA = RVLocs[++i]; // skip ahead to next loc
2805 VA = RVLocs[++i]; // skip ahead to next loc
2820 VA = RVLocs[++i]; // skip ahead to next loc
2848 RetOps[0] = Chain;
3986 CCValAssign &VA = ArgLocs[i];
4013 CCValAssign &VA = ArgLocs[i];
4027 SDValue ArgValue1 = GetF64FormalArgument(VA, ArgLocs[++i],
4029 VA = ArgLocs[++i]; // skip ahead to next loc
4038 ArgValue2 = GetF64FormalArgument(VA, ArgLocs[++i],
4049 ArgValue = GetF64FormalArgument(VA, ArgLocs[++i], Chain, DAG, dl);
7282 DAG.getBuildVector(HVT, dl, makeArrayRef(&Ops[0], NumElts / 2));
7286 HVT, dl, makeArrayRef(&Ops[NumElts / 2], NumElts / 2));
7505 int *LaneMask = &Mask[i * ResMultiplier];
7520 ShuffleOps[i] = Sources[i].ShuffleVec;
13059 SDValue &StVal = Ops[Ops.size()-2];
13075 SDValue &LdVal = NewResults[0];
13287 ShuffleVec[i] = DAG.getDataLayout().isBigEndian() ? (i + 1) * SizeRatio - 1
15572 AsmStr = AsmPieces[0];
15578 AsmPieces[0] == "rev" && AsmPieces[1] == "$0" && AsmPieces[2] == "$1" &&
15578 AsmPieces[0] == "rev" && AsmPieces[1] == "$0" && AsmPieces[2] == "$1" &&
15578 AsmPieces[0] == "rev" && AsmPieces[1] == "$0" && AsmPieces[2] == "$1" &&
16839 SubVec.size() > 1 ? concatenateVectors(Builder, SubVec) : SubVec[0];
16957 if (Mask[IdxI] >= 0) {
16959 Op0, Op1, createSequentialMask(Builder, Mask[IdxI], LaneLen, 0)));
16964 if (Mask[IdxJ * Factor + IdxI] >= 0) {
16965 StartMask = Mask[IdxJ * Factor + IdxI] - IdxJ;
lib/Target/ARM/ARMLegalizerInfo.cpp 457 MIRBuilder.buildOr(OriginalResult, Results[0], Results[1]);
457 MIRBuilder.buildOr(OriginalResult, Results[0], Results[1]);
lib/Target/ARM/ARMLoadStoreOptimizer.cpp 2244 MachineInstr *Op = Ops[i];
2285 MemOps.insert(Ops[i]);
2286 MemRegs.insert(Ops[i]->getOperand(0).getReg());
2308 MachineInstr *Op1 = Ops[Ops.size()-2];
2429 if (Offset == getMemoryOpOffset(*BI->second[i])) {
2453 unsigned Base = LdBases[i];
2461 unsigned Base = StBases[i];
lib/Target/ARM/ARMParallelDSP.cpp 599 MulCandidate *PMul0 = static_cast<MulCandidate*>(Muls[i].get());
607 MulCandidate *PMul1 = static_cast<MulCandidate*>(Muls[j].get());
736 LoadInst *Base = Loads[0];
737 LoadInst *Offset = Loads[1];
lib/Target/ARM/ARMRegisterBankInfo.cpp 460 OperandBanks[0] = Size == 64 ? &ARM::ValueMappings[ARM::DPR3OpsIdx]
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 5928 ARMOperand &TyOp = static_cast<ARMOperand &>(*Operands[2]);
5932 ARMOperand &Mnemonic = static_cast<ARMOperand &>(*Operands[0]);
6421 const auto &Op3 = static_cast<ARMOperand &>(*Operands[3]);
6422 auto &Op4 = static_cast<ARMOperand &>(*Operands[4]);
6433 auto &Op5 = static_cast<ARMOperand &>(*Operands[5]);
6511 !static_cast<ARMOperand &>(*Operands[4]).isModImm() &&
6512 static_cast<ARMOperand &>(*Operands[4]).isImm0_65535Expr() &&
6513 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0)
6519 static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6520 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
6521 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0)
6529 Operands.size() == 6 && static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6530 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
6531 static_cast<ARMOperand &>(*Operands[4]).getReg() == ARM::SP &&
6532 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0 &&
6533 ((Mnemonic == "add" && static_cast<ARMOperand &>(*Operands[5]).isReg()) ||
6534 static_cast<ARMOperand &>(*Operands[5]).isImm0_1020s4()))
6542 Operands.size() == 6 && static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6543 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
6544 static_cast<ARMOperand &>(*Operands[5]).isImm()) {
6550 isARMLowRegister(static_cast<ARMOperand &>(*Operands[3]).getReg()) &&
6551 isARMLowRegister(static_cast<ARMOperand &>(*Operands[4]).getReg()) &&
6552 static_cast<ARMOperand &>(*Operands[5]).isImm0_7())
6556 if (static_cast<ARMOperand &>(*Operands[4]).getReg() != ARM::PC &&
6557 static_cast<ARMOperand &>(*Operands[5]).isT2SOImm())
6569 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0 &&
6570 static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6571 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
6572 static_cast<ARMOperand &>(*Operands[5]).isReg() &&
6577 (!isARMLowRegister(static_cast<ARMOperand &>(*Operands[3]).getReg()) ||
6578 !isARMLowRegister(static_cast<ARMOperand &>(*Operands[4]).getReg()) ||
6579 !isARMLowRegister(static_cast<ARMOperand &>(*Operands[5]).getReg()) ||
6580 !inITBlock() || (static_cast<ARMOperand &>(*Operands[3]).getReg() !=
6581 static_cast<ARMOperand &>(*Operands[5]).getReg() &&
6582 static_cast<ARMOperand &>(*Operands[3]).getReg() !=
6583 static_cast<ARMOperand &>(*Operands[4]).getReg())))
6589 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0 &&
6590 static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6591 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
6595 (!isARMLowRegister(static_cast<ARMOperand &>(*Operands[3]).getReg()) ||
6596 !isARMLowRegister(static_cast<ARMOperand &>(*Operands[4]).getReg()) ||
6607 static_cast<ARMOperand &>(*Operands[3]).isReg() &&
6608 static_cast<ARMOperand &>(*Operands[3]).getReg() == ARM::SP &&
6609 static_cast<ARMOperand &>(*Operands[1]).getReg() == 0 &&
6610 (static_cast<ARMOperand &>(*Operands[4]).isImm() ||
6612 static_cast<ARMOperand &>(*Operands[5]).isImm())))
6624 (static_cast<ARMOperand &>(*Operands[2]).getToken() == ".f32" ||
6625 static_cast<ARMOperand &>(*Operands[2]).getToken() == ".f16")) {
6626 if (static_cast<ARMOperand &>(*Operands[3]).isToken() &&
6627 (static_cast<ARMOperand &>(*Operands[3]).getToken() == ".f32" ||
6628 static_cast<ARMOperand &>(*Operands[3]).getToken() == ".f16"))
6631 if (static_cast<ARMOperand &>(*Operands[RegIdx]).isReg() &&
6633 static_cast<ARMOperand &>(*Operands[RegIdx]).getReg()) ||
6635 static_cast<ARMOperand &>(*Operands[RegIdx]).getReg())))
6717 ARMOperand &Op2 = static_cast<ARMOperand &>(*Operands[2]);
6718 ARMOperand &Op3 = static_cast<ARMOperand &>(*Operands[3]);
7023 auto Sz1 = static_cast<ARMOperand &>(*Operands[2]);
7024 auto Sz2 = static_cast<ARMOperand &>(*Operands[3]);
7061 if (static_cast<ARMOperand &>(*Operands[I]).isVPTPred())
7084 static_cast<ARMOperand &>(*Operands[2]).isImm())
7099 ARMOperand &Op1 = static_cast<ARMOperand &>(*Operands[Idx]);
7100 ARMOperand &Op2 = static_cast<ARMOperand &>(*Operands[Idx + 1]);
7119 Operands[Idx] =
7134 static_cast<ARMOperand &>(*Operands[3]).isReg() &&
7135 static_cast<ARMOperand &>(*Operands[3]).getReg() == ARM::PC &&
7136 static_cast<ARMOperand &>(*Operands[4]).isReg() &&
7137 static_cast<ARMOperand &>(*Operands[4]).getReg() == ARM::LR &&
7138 static_cast<ARMOperand &>(*Operands[5]).isImm()) {
10482 ((ARMOperand &)*Operands[0]).getToken(), FBS);
10484 ((ARMOperand &)*Operands[0]).getLocRange());
11166 ARMOperand &Op = (ARMOperand &)*Operands[0];
11564 ((ARMOperand &)*Operands[I.getOperandIndex()]).getStartLoc();
11704 Error(Messages[0].Loc, Messages[0].Message);
11704 Error(Messages[0].Loc, Messages[0].Message);
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp 314 if (Contents[i].Tag == Attribute)
315 return &Contents[i];
1113 AttributeItem item = Contents[i];
1299 uint64_t Intval = Opcodes[0] |
1300 Opcodes[1] << 8 |
1301 Opcodes[2] << 16 |
1302 Opcodes[3] << 24;
1378 uint64_t Intval = Opcodes[I] |
1379 Opcodes[I + 1] << 8 |
1380 Opcodes[I + 2] << 16 |
1381 Opcodes[I + 3] << 24;
lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp 38 Vec[Pos] = elem;
188 for (size_t j = OpBegins[i - 1], end = OpBegins[i]; j < end; ++j)
188 for (size_t j = OpBegins[i - 1], end = OpBegins[i]; j < end; ++j)
189 OpStreamer.EmitByte(Ops[j]);
lib/Target/ARM/Thumb2SizeReduction.cpp 1041 const MBBInfo &PInfo = BlockInfo[Pred->getNumber()];
1113 MBBInfo &Info = BlockInfo[MBB.getNumber()];
lib/Target/AVR/AVRISelLowering.cpp 968 unsigned Size = Args[i];
1198 CCValAssign &VA = ArgLocs[AI];
1200 SDValue Arg = OutVals[AI];
1241 CCValAssign &VA = ArgLocs[Loc];
1242 SDValue Arg = OutVals[Loc];
1401 CCValAssign &VA = RVLocs[i];
1423 RetOps[0] = Chain; // Update chain.
lib/Target/AVR/AVRInstrInfo.cpp 386 AVRCC::CondCodes OldBranchCode = (AVRCC::CondCodes)Cond[0].getImm();
470 AVRCC::CondCodes CC = static_cast<AVRCC::CondCodes>(Cond[0].getImm());
471 Cond[0].setImm(getOppositeCondition(CC));
lib/Target/BPF/AsmParser/BPFAsmParser.cpp 266 BPFOperand &Op0 = (BPFOperand &)*Operands[0];
267 BPFOperand &Op1 = (BPFOperand &)*Operands[1];
268 BPFOperand &Op2 = (BPFOperand &)*Operands[2];
269 BPFOperand &Op3 = (BPFOperand &)*Operands[3];
311 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc();
lib/Target/BPF/BPFISelLowering.cpp 327 CCValAssign &VA = ArgLocs[i];
328 SDValue Arg = OutVals[i];
434 CCValAssign &VA = RVLocs[i];
445 RetOps[0] = Chain; // Update chain.
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp 587 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get()))
615 HexagonOperand &FirstOperand = static_cast<HexagonOperand &>(*Operands[0]);
831 MCParsedAsmOperand &Operand = *Operands[Operands.size() - Index - 1];
lib/Target/Hexagon/BitTracker.cpp 208 Changed |= Bits[i].meet(RCV, BitRef(SelfR, i));
225 Bits[i+B] = RC[i];
228 Bits[i+B] = RC[i];
230 Bits[i] = RC[i+(W-B)];
241 RC.Bits[i-B] = Bits[i];
247 RC.Bits[i] = Bits[i+B];
249 RC.Bits[i+(W-B)] = Bits[i];
264 Tmp[i] = Bits[i];
267 Bits[i] = Bits[W-Sh+i];
267 Bits[i] = Bits[W-Sh+i];
270 Bits[i+Sh] = Tmp.Bits[i];
270 Bits[i+Sh] = Tmp.Bits[i];
278 Bits[B++] = V;
288 Bits[i+W] = RC.Bits[i];
322 const BitValue &V = Bits[i];
324 Bits[i].RefI = BitRef(R, i);
lib/Target/Hexagon/BitTracker.h 312 return Bits[BitN];
366 RC.Bits[i] = BitValue::self(BitRef(Reg, i));
374 RC.Bits[i] = BitValue(BitValue::Top);
lib/Target/Hexagon/HexagonBitSimplify.cpp 1030 MRI.markUsesInDebugValueAsUndef(Regs[i]);
lib/Target/Hexagon/HexagonConstPropagation.cpp 1020 removeCFGEdge(B, ToRemove[i]);
2519 bool Eval = constToInt(LSL.Values[i], LoVs[i]);
2522 assert(LoVs[i].getBitWidth() == 32);
2525 bool Eval = constToInt(LSH.Values[i], HiVs[i]);
2528 assert(HiVs[i].getBitWidth() == 32);
2532 APInt HV = HiVs[i].zextOrSelf(64) << 32;
2534 APInt LV = LoVs[j].zextOrSelf(64);
2853 unsigned R = DefRegs[i];
2936 dbgs() << "Rewrite: for " << MI << " created " << *NewInstrs[0];
2938 dbgs() << " " << *NewInstrs[i];
lib/Target/Hexagon/HexagonFrameLowering.cpp 455 MachineBasicBlock *DomB = SFBlocks[0];
457 DomB = MDT.findNearestCommonDominator(DomB, SFBlocks[i]);
461 MachineBasicBlock *PDomB = SFBlocks[0];
463 PDomB = MPT.findNearestCommonDominator(PDomB, SFBlocks[i]);
lib/Target/Hexagon/HexagonGenInsert.cpp 1057 IFMap.erase(Prune[i]);
1492 MRI->markUsesInDebugValueAsUndef(Regs[I]);
1605 IFMap.erase(Out[i]);
lib/Target/Hexagon/HexagonHardwareLoops.cpp 1111 DeadPhis[i]->eraseFromParent();
1305 removeIfDead(OldInsts[i]);
1702 if (!Cond[CSz-1].isReg())
1705 Register P = Cond[CSz - 1].getReg();
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp 1179 Ops[i] = U->getOperand(i);
1180 EVT BVT = Ops[I1N].getValueType();
1189 Ops[I1N] = C0;
1191 Ops[I1N] = C1;
1195 Ops[I1N] = C0;
1197 Ops[I1N] = C1;
1730 const WeightedLeaf &L = Q[Pos];
1745 Q.erase(&Q[ResultPos]);
1757 const WeightedLeaf &L = Q[Pos];
1772 Q.erase(&Q[ResultPos]);
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 1134 MuxBytes[M] = 0xFF;
1263 if (MaskL[I] != -1)
1264 Bytes[I] = 0xFF;
1328 if (MaskL[I] != -1)
1329 Bytes[I] = 0xFF;
1796 Perm[Log2_32(X)] = Log2_32(I)-1;
1877 for (unsigned B = Perm[A]; B != A; B = Perm[B]) {
1877 for (unsigned B = Perm[A]; B != A; B = Perm[B]) {
1913 bool IsInc = I == E-1 || SwapElems[I] < SwapElems[I+1];
1913 bool IsInc = I == E-1 || SwapElems[I] < SwapElems[I+1];
1914 unsigned S = (1u << SwapElems[I]);
1916 while (++I < E-1 && IsInc == (SwapElems[I] < SwapElems[I+1]))
1916 while (++I < E-1 && IsInc == (SwapElems[I] < SwapElems[I+1]))
1917 S |= 1u << SwapElems[I];
1920 S |= 1u << SwapElems[I];
lib/Target/Hexagon/HexagonISelLowering.cpp 215 CCValAssign &VA = RVLocs[i];
224 RetOps[0] = Chain; // Update chain.
279 if (RVLocs[i].getValVT() == MVT::i1) {
286 SDValue FR0 = DAG.getCopyFromReg(Chain, dl, RVLocs[i].getLocReg(),
300 RetVal = DAG.getCopyFromReg(Chain, dl, RVLocs[i].getLocReg(),
301 RVLocs[i].getValVT(), Glue);
327 bool IsStructRet = Outs.empty() ? false : Outs[0].Flags.isSRet();
358 CCValAssign &VA = ArgLocs[i];
381 CCValAssign &VA = ArgLocs[i];
382 SDValue Arg = OutVals[i];
383 ISD::ArgFlagsTy Flags = Outs[i].Flags;
460 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
461 RegsToPass[i].second, Glue);
477 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
478 RegsToPass[i].second, Glue);
506 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
507 RegsToPass[i].second.getValueType()));
719 CCValAssign &VA = ArgLocs[i];
1947 int M = Mask[i];
1967 uint64_t M = ByteMask[i] & 0xFF;
2145 uint32_t V = (Consts[0]->getZExtValue() & 0xFFFF) |
2146 Consts[1]->getZExtValue() << 16;
2157 int32_t V = (Consts[0]->getZExtValue() & 0xFF) |
2158 (Consts[1]->getZExtValue() & 0xFF) << 8 |
2159 (Consts[1]->getZExtValue() & 0xFF) << 16 |
2160 Consts[2]->getZExtValue() << 24;
2250 Val = (Val << W) | (Consts[Num-1-i]->getZExtValue() & Mask);
2508 Rs[i] = DAG.getSelect(dl, MVT::i32, Ops[i/Rep], S, Z);
2564 SDValue W0 = Words[IdxW][i], W1 = Words[IdxW][i+1];
2564 SDValue W0 = Words[IdxW][i], W1 = Words[IdxW][i+1];
2579 Words[IdxW][1], Words[IdxW][0]);
2579 Words[IdxW][1], Words[IdxW][0]);
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp 372 if (isUndef(Words[i]))
376 SplatV = Words[i];
377 else if (SplatV != Words[i])
481 {HalfV0, Words[i]});
483 {HalfV1, Words[i+NumWords/2]});
519 Mask[BlockLen*Num + Off] = i;
1065 SDValue V = Elems[i];
1070 Elems[i] = DAG.getNode(ISD::SIGN_EXTEND_INREG, dl, NTy,
1078 Elems[i] = DAG.getSExtOrTrunc(V, dl, NTy);
1080 Elems[i] = DAG.getUNDEF(NTy);
1128 Res = DAG.getNode(ISD::OR, dl, ByteTy, Res, Prefixes[e-i-1]);
lib/Target/Hexagon/HexagonInstrInfo.cpp 1526 assert(Cond[0].isImm() && "First entry in the cond vector not imm-val");
1527 unsigned opcode = Cond[0].getImm();
1533 Cond[0].setImm(NewOpcode);
4143 unsigned Opc = getInvertedPredicatedOpcode(Cond[0].getImm());
4144 Cond[0].setImm(Opc);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 2138 ExitB = ExitBlocks[0];
lib/Target/Hexagon/HexagonSplitDouble.cpp 495 if (!TII->PredOpcodeHasJMP_c(Cond[0].getImm()))
500 assert(Cond[1].isReg() && "Unexpected Cond vector from analyzeBranch");
502 Register PR = Cond[1].getReg();
lib/Target/Hexagon/HexagonSubtarget.cpp 348 MachineInstr *DDst = Dst->Succs[0].getSUnit()->getInstr();
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp 928 auto &Dep = PacketSU->Succs[i];
992 auto Dep = PacketSU->Succs[i];
1399 if (SUJ->Succs[i].getSUnit() != SUI)
1402 SDep::Kind DepType = SUJ->Succs[i].getKind();
1421 DepReg = SUJ->Succs[i].getReg();
1428 if (!isCallDependent(I, DepType, SUJ->Succs[i].getReg()))
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp 181 if (Chain[i] != OtherChain[i])
216 return Chain[index];
639 Instruction *InstInPreheader = InstsInPreheader[i];
lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp 332 MCInst const &I = *BranchLocations[J];
lib/Target/Hexagon/RDFGraph.cpp 583 return Ms[0];
lib/Target/Hexagon/RDFLiveness.cpp 672 RegisterRef RR = NodeAddr<DefNode*>(Ds[0]).Addr->getRegRef(DFG);
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp 673 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc();
880 if (Operands[0]->isToken())
881 Type = static_cast<LanaiOperand *>(Operands[0].get())->getToken();
lib/Target/Lanai/LanaiISelLowering.cpp 457 CCValAssign &VA = ArgLocs[i];
519 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), DL, Reg, InVals[0]);
554 CCValAssign &VA = RVLocs[i];
583 RetOps[0] = Chain; // Update chain
591 ArrayRef<SDValue>(&RetOps[0], RetOps.size()));
658 CCValAssign &VA = ArgLocs[I];
681 Arg = ByValArgs[J++];
707 ArrayRef<SDValue>(&MemOpChains[0], MemOpChains.size()));
715 Chain = DAG.getCopyToReg(Chain, DL, RegsToPass[I].first,
716 RegsToPass[I].second, InFlag);
748 Ops.push_back(DAG.getRegister(RegsToPass[I].first,
749 RegsToPass[I].second.getValueType()));
755 ArrayRef<SDValue>(&Ops[0], Ops.size()));
787 Chain = DAG.getCopyFromReg(Chain, DL, RVLocs[I].getLocReg(),
788 RVLocs[I].getValVT(), InFlag)
lib/Target/Lanai/LanaiInstrInfo.cpp 652 static_cast<LPCC::CondCode>(Condition[0].getImm());
653 Condition[0].setImm(getOppositeCondition(BranchCond));
lib/Target/MSP430/AsmParser/MSP430AsmParser.cpp 274 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc();
lib/Target/MSP430/MSP430BranchSelector.cpp 95 unsigned TotalSize = BlockOffsets[Begin->getNumber()];
97 BlockOffsets[MBB.getNumber()] = TotalSize;
133 BlockOffsets[DestBB->getNumber()] - BlockOffsets[MBB->getNumber()];
133 BlockOffsets[DestBB->getNumber()] - BlockOffsets[MBB->getNumber()];
198 .add(Cond[0]);
213 BlockOffsets[i] += InstrSizeDiff;
lib/Target/MSP430/MSP430ISelLowering.cpp 505 unsigned Parts = ArgsParts[i];
624 CCValAssign &VA = ArgLocs[i];
699 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), dl, Reg, InVals[i]);
746 CCValAssign &VA = RVLocs[i];
777 RetOps[0] = Chain; // Update chain.
812 CCValAssign &VA = ArgLocs[i];
875 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
876 RegsToPass[i].second, InFlag);
897 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
898 RegsToPass[i].second.getValueType()));
934 Chain = DAG.getCopyFromReg(Chain, dl, RVLocs[i].getLocReg(),
935 RVLocs[i].getValVT(), InFlag).getValue(1);
lib/Target/MSP430/MSP430InstrInfo.cpp 135 MSP430CC::CondCodes CC = static_cast<MSP430CC::CondCodes>(Cond[0].getImm());
159 Cond[0].setImm(CC);
254 MSP430CC::CondCodes OldBranchCode = (MSP430CC::CondCodes)Cond[0].getImm();
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 1386 int Reg = (*(RegList.List))[i];
5604 ErrorLoc = Operands[ErrorInfo]->getStartLoc();
5758 SMLoc ErrorStart = Operands[3]->getStartLoc();
5759 SMLoc ErrorEnd = Operands[4]->getEndLoc();
5764 SMLoc ErrorStart = Operands[3]->getStartLoc();
5765 SMLoc ErrorEnd = Operands[4]->getEndLoc();
5770 SMLoc ErrorStart = Operands[3]->getStartLoc();
5771 SMLoc ErrorEnd = Operands[4]->getEndLoc();
6127 MipsOperand &Mnemonic = static_cast<MipsOperand &>(*Operands[0]);
7301 MipsOperand &RegOpnd = static_cast<MipsOperand &>(*Reg[0]);
7330 MipsOperand &RegOpnd = static_cast<MipsOperand &>(*Reg[0]);
7409 MipsOperand &FuncRegOpnd = static_cast<MipsOperand &>(*TmpReg[0]);
7436 MipsOperand &SaveOpnd = static_cast<MipsOperand &>(*TmpReg[0]);
8293 MipsOperand &StackRegOpnd = static_cast<MipsOperand &>(*TmpReg[0]);
8337 MipsOperand &ReturnRegOpnd = static_cast<MipsOperand &>(*TmpReg[0]);
lib/Target/Mips/MicroMipsSizeReduction.cpp 387 if (Registers[i] == Reg1) {
388 if (Registers[i + 1] == Reg2)
lib/Target/Mips/MipsAnalyzeImmediate.cpp 92 if ((Seq.size() < 2) || (Seq[0].Opc != ADDiu) ||
93 (Seq[1].Opc != SLL) || (Seq[1].ImmOpnd < 16))
93 (Seq[1].Opc != SLL) || (Seq[1].ImmOpnd < 16))
97 int64_t Imm = SignExtend64<16>(Seq[0].ImmOpnd);
98 int64_t ShiftedImm = (uint64_t)Imm << (Seq[1].ImmOpnd - 16);
104 Seq[0].Opc = LUi;
105 Seq[0].ImmOpnd = (unsigned)(ShiftedImm & 0xffff);
lib/Target/Mips/MipsBranchExpansion.cpp 299 MBBInfos[I].Size += TII->getInstSizeInBytes(*MI);
312 Offset += MBBInfos[N].Size;
319 Offset += MBBInfos[N].Size;
328 Offset += MBBInfos[N].Size;
641 MBBInfos[MBB->getNumber()].Size + 4;
807 MBBInfos[I].Offset = Offset;
808 MBBInfos[I].Br = &*Br;
lib/Target/Mips/MipsCCState.h 151 bool WasOriginalArgF128(unsigned ValNo) { return OriginalArgWasF128[ValNo]; }
153 return OriginalArgWasFloat[ValNo];
161 bool IsCallOperandFixed(unsigned ValNo) { return CallOperandIsFixed[ValNo]; }
lib/Target/Mips/MipsCallLowering.cpp 400 const CCValAssign &VA = ArgLocs[i];
404 ArgLocs[i] =
408 ArgLocs[i] = CCValAssign::getReg(VA.getValNo(), VA.getValVT(),
546 if (Arg.Flags[0].isByVal())
548 if (Arg.Flags[0].isSRet() && !Arg.Ty->isPointerTy())
715 ArgInfo Info = ArgInfo{OrigArg.Regs[i], SplitEVTs[i].getTypeForEVT(Ctx)};
lib/Target/Mips/MipsConstantIslandPass.cpp 565 MachineBasicBlock::iterator InsAt = InsPoint[LogAlign];
576 if (InsPoint[a] == InsAt)
577 InsPoint[a] = CPEMI;
lib/Target/Mips/MipsDelaySlotFiller.cpp 864 if (!hasUnoccupiedSlot(BranchInstrs[0]))
869 return std::make_pair(R, BranchInstrs[0]);
875 if (hasUnoccupiedSlot(BranchInstrs[0]))
876 return std::make_pair(MipsInstrInfo::BT_Cond, BranchInstrs[0]);
879 if (hasUnoccupiedSlot(BranchInstrs[1]) && (FalseBB == &Dst))
880 return std::make_pair(MipsInstrInfo::BT_Uncond, BranchInstrs[1]);
lib/Target/Mips/MipsFastISel.cpp 1156 CCValAssign &VA = ArgLocs[i];
1157 const Value *ArgVal = CLI.OutVals[VA.getValNo()];
1158 MVT ArgVT = OutVTs[VA.getValNo()];
1295 MVT CopyVT = RVLocs[0].getValVT();
1305 ResultReg).addReg(RVLocs[0].getLocReg());
1306 CLI.InRegs.push_back(RVLocs[0].getLocReg());
1467 unsigned SrcReg = Allocation[ArgNo].Reg;
1468 unsigned DstReg = FuncInfo.MF->addLiveIn(SrcReg, Allocation[ArgNo].RC);
1472 unsigned ResultReg = createResultReg(Allocation[ArgNo].RC);
1714 CCValAssign &VA = ValLocs[0];
1759 if (Outs[0].Flags.isZExt() || Outs[0].Flags.isSExt()) {
1759 if (Outs[0].Flags.isZExt() || Outs[0].Flags.isSExt()) {
1760 bool IsZExt = Outs[0].Flags.isZExt();
1776 MIB.addReg(RetRegs[i], RegState::Implicit);
lib/Target/Mips/MipsISelLowering.cpp 3127 SDValue Arg = OutVals[i];
3128 CCValAssign &VA = ArgLocs[i];
3130 ISD::ArgFlagsTy Flags = Outs[i].Flags;
3200 unsigned ValSizeInBits = Outs[i].ArgVT.getSizeInBits();
3354 CCValAssign &VA = RVLocs[i];
3357 SDValue Val = DAG.getCopyFromReg(Chain, DL, RVLocs[i].getLocReg(),
3358 RVLocs[i].getLocVT(), InFlag);
3497 CCValAssign &VA = ArgLocs[i];
3595 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), DL, Reg, InVals[i]);
3671 CCValAssign &VA = RVLocs[i];
3737 RetOps[0] = Chain; // Update chain.
lib/Target/Mips/MipsInstrInfo.cpp 186 Cond[0].setImm(getOppositeBranchOpc(Cond[0].getImm()));
186 Cond[0].setImm(getOppositeBranchOpc(Cond[0].getImm()));
lib/Target/Mips/MipsSEISelLowering.cpp 1350 SDValue Out = (ResTys[0] == MVT::Untyped) ? extractLOHI(Val, DL, DAG) : Val;
2563 int Idx = Indices[j];
2948 int Idx = Indices[i];
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 379 EVT elemtype = vtparts[i];
380 if (vtparts[i].isVector()) {
381 elems = vtparts[i].getVectorNumElements();
382 elemtype = vtparts[i].getVectorElementType();
837 printModuleLevelGV(Globals[i], OS2);
1590 EVT elemtype = vtparts[i];
1591 if (vtparts[i].isVector()) {
1592 elems = vtparts[i].getVectorNumElements();
1593 elemtype = vtparts[i].getVectorElementType();
lib/Target/NVPTX/NVPTXAsmPrinter.h 151 unsigned int nextSymbolPos = symbolPosInBuffer[nSym];
159 const Value *v = Symbols[nSym];
160 const Value *v0 = SymbolsBeforeStripping[nSym];
185 nextSymbolPos = symbolPosInBuffer[nSym];
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp 222 NewValue = Builder.CreateInsertElement(NewValue, NewOperands[i], Idx);
227 Builder.CreateInsertValue(NewValue, NewOperands[i], makeArrayRef(i));
261 NewOperands[0], NewOperands[1]);
261 NewOperands[0], NewOperands[1]);
268 return Builder.CreateExtractElement(NewOperands[0], NewOperands[1]);
268 return Builder.CreateExtractElement(NewOperands[0], NewOperands[1]);
271 return Builder.CreateInsertElement(NewOperands[0], NewOperands[1],
271 return Builder.CreateInsertElement(NewOperands[0], NewOperands[1],
272 NewOperands[2]);
275 return Builder.CreateShuffleVector(NewOperands[0], NewOperands[1],
275 return Builder.CreateShuffleVector(NewOperands[0], NewOperands[1],
276 NewOperands[2]);
279 return Builder.CreateExtractValue(NewOperands[0], C->getIndices());
282 return Builder.CreateInsertValue(NewOperands[0], NewOperands[1],
282 return Builder.CreateInsertValue(NewOperands[0], NewOperands[1],
289 NewOperands[0],
290 makeArrayRef(&NewOperands[1], NumOperands - 1))
293 NewOperands[0],
294 makeArrayRef(&NewOperands[1], NumOperands - 1));
297 return Builder.CreateSelect(NewOperands[0], NewOperands[1], NewOperands[2]);
297 return Builder.CreateSelect(NewOperands[0], NewOperands[1], NewOperands[2]);
297 return Builder.CreateSelect(NewOperands[0], NewOperands[1], NewOperands[2]);
302 NewOperands[0], NewOperands[1]);
302 NewOperands[0], NewOperands[1]);
307 NewOperands[0], C->getType());
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp 2320 MVT::i32, Ops[0], CvtNone);
2321 Ops[0] = SDValue(Cvt, 0);
2329 MVT::i32, Ops[0], CvtNone);
2330 Ops[0] = SDValue(Cvt, 0);
lib/Target/NVPTX/NVPTXISelLowering.cpp 196 EVT VT = TempVTs[i];
197 uint64_t Off = TempOffsets[i];
308 assert(VectorInfo[I] == PVF_SCALAR && "Unexpected vector info state.");
321 VectorInfo[I] = PVF_FIRST;
322 VectorInfo[I + 1] = PVF_LAST;
327 VectorInfo[I] = PVF_FIRST;
328 VectorInfo[I + 1] = PVF_INNER;
329 VectorInfo[I + 2] = PVF_INNER;
330 VectorInfo[I + 3] = PVF_LAST;
1460 EVT VT = Outs[OIdx].VT;
1463 if (!Outs[OIdx].Flags.isByVal()) {
1510 if (VectorInfo[j] & PVF_FIRST) {
1514 StoreOperands.push_back(DAG.getConstant(Offsets[j], dl, MVT::i32));
1517 EVT EltVT = VTs[j];
1518 SDValue StVal = OutVals[OIdx];
1522 StVal = DAG.getNode(Outs[OIdx].Flags.isSExt() ? ISD::SIGN_EXTEND
1534 if (VectorInfo[j] & PVF_LAST) {
1555 EVT TheStoreType = ExtendIntegerParam ? MVT::i32 : VTs[j];
1557 NeedAlign ? GreatestCommonDivisor64(ArgAlign, Offsets[j]) : 0;
1585 unsigned sz = Outs[OIdx].Flags.getByValSize();
1587 unsigned ArgAlign = Outs[OIdx].Flags.getByValAlign();
1604 EVT elemtype = VTs[j];
1605 int curOffset = Offsets[j];
1608 SDValue srcAddr = DAG.getNode(ISD::ADD, dl, PtrVT, OutVals[OIdx],
1784 EVT TheLoadType = VTs[i];
1785 EVT EltType = Ins[i].VT;
1786 unsigned EltAlign = GreatestCommonDivisor64(RetAlign, Offsets[i]);
1792 if (VTs[i].isInteger())
1798 if (VectorInfo[i] & PVF_FIRST) {
1805 if (VectorInfo[i] & PVF_LAST) {
1826 DAG.getConstant(Offsets[VecIdx], dl, MVT::i32), InFlag};
1836 ProxyRegTruncates.push_back(Optional<MVT>(Ins[VecIdx + j].VT));
1865 DAG.getVTList(ProxyRegOps[i].getSimpleValueType(), MVT::Other, MVT::Glue),
1866 { Chain, ProxyRegOps[i], InFlag }
1872 if (ProxyRegTruncates[i].hasValue()) {
1873 Ret = DAG.getNode(ISD::TRUNCATE, dl, ProxyRegTruncates[i].getValue(), Ret);
2566 if (VectorInfo[parti] & PVF_FIRST) {
2572 if (VectorInfo[parti] & PVF_LAST) {
2574 EVT EltVT = VTs[parti];
2588 DAG.getConstant(Offsets[VecIdx], dl, PtrVT));
2691 if (VectorInfo[i] & PVF_FIRST) {
2694 StoreOperands.push_back(DAG.getConstant(Offsets[i], dl, MVT::i32));
2712 if (VectorInfo[i] & PVF_LAST) {
2731 EVT TheStoreType = ExtendIntegerRetVal ? MVT::i32 : VTs[i];
lib/Target/NVPTX/NVPTXImageOptimizer.cpp 87 InstrToDelete[i]->eraseFromParent();
lib/Target/NVPTX/NVPTXMachineFunctionInfo.h 35 if (ImageHandleList[i] == std::string(Symbol))
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 1152 ((PPCOperand &)*Operands[0]).getToken(), FBS);
1154 ((PPCOperand &)*Operands[0]).getLocRange());
1162 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc();
1615 std::swap(Operands[1], Operands[3]);
1615 std::swap(Operands[1], Operands[3]);
1616 std::swap(Operands[2], Operands[1]);
1616 std::swap(Operands[2], Operands[1]);
lib/Target/PowerPC/PPCCCState.h 36 bool WasOriginalArgPPCF128(unsigned ValNo) { return OriginalArgWasPPCF128[ValNo]; }
lib/Target/PowerPC/PPCEarlyReturn.cpp 148 PredToRemove[i]->removeSuccessor(&ReturnMBB, true);
lib/Target/PowerPC/PPCFastISel.cpp 1393 CCValAssign &VA = ArgLocs[I];
1394 MVT ArgVT = ArgVTs[VA.getValNo()];
1431 CCValAssign &VA = ArgLocs[I];
1432 unsigned Arg = ArgRegs[VA.getValNo()];
1433 MVT ArgVT = ArgVTs[VA.getValNo()];
1505 CCValAssign &VA = RVLocs[0];
1612 ISD::ArgFlagsTy Flags = CLI.OutFlags[i];
1616 Value *ArgValue = CLI.OutVals[i];
1668 MIB.addReg(RegArgs[II], RegState::Implicit);
1718 CCValAssign &VA = ValLocs[0];
1742 CCValAssign &VA = ValLocs[i];
1786 TII.get(TargetOpcode::COPY), RetRegs[i])
1796 MIB.addReg(RetRegs[i], RegState::Implicit);
lib/Target/PowerPC/PPCFrameLowering.cpp 1950 int FI = FPRegs[i].getFrameIdx();
1999 if (!GPRegs[i].isSpilledToReg()) {
2000 int FI = GPRegs[i].getFrameIdx();
2008 if (!G8Regs[i].isSpilledToReg()) {
2009 int FI = G8Regs[i].getFrameIdx();
2078 int FI = VRegs[i].getFrameIdx();
lib/Target/PowerPC/PPCHazardRecognizers.cpp 39 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit());
43 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier())
43 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier())
47 if (SU->Preds[i].getSUnit() == CurGroup[j])
47 if (SU->Preds[i].getSUnit() == CurGroup[j])
65 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit());
69 if (SU->Preds[i].isCtrl())
73 if (SU->Preds[i].getSUnit() == CurGroup[j])
73 if (SU->Preds[i].getSUnit() == CurGroup[j])
lib/Target/PowerPC/PPCISelDAGToDAG.cpp 1234 Bits[i] = LHSBits[i < RotAmt ? i + (NumBits - RotAmt) : i - RotAmt];
1246 Bits[i] = LHSBits[i - ShiftAmt];
1249 Bits[i] = ValueBit(ValueBit::ConstZero);
1261 Bits[i] = LHSBits[i + ShiftAmt];
1264 Bits[i] = ValueBit(ValueBit::ConstZero);
1282 Bits[i] = (*LHSBits)[i];
1287 Bits[i] = (*LHSBits)[i];
1289 Bits[i] = ValueBit(ValueBit::ConstZero);
1312 Bits[i] = LHSBits[i];
1315 Bits[i] = RHSBits[i];
1317 Bits[i] = ValueBit(ValueBit::ConstZero);
1320 Bits[i] = RHSBits[i];
1322 Bits[i] = LHSBits[i];
1328 if (Bits[i].hasValue()) {
1329 LastVal = Bits[i].getValue();
1330 LastIdx = Bits[i].getValueBitIndex();
1355 Bits[i] = (*LHSBits)[i];
1358 Bits[i] = ValueBit(ValueBit::ConstZero);
1378 if ((*InBits)[i].hasValue() && (*InBits)[i].getValueBitIndex() >= 32) {
1378 if ((*InBits)[i].hasValue() && (*InBits)[i].getValueBitIndex() >= 32) {
1386 Bits[i] = (*InBits)[i];
1386 Bits[i] = (*InBits)[i];
1400 Bits[i] = (*LHSBits)[i];
1404 Bits[i] = ValueBit((*LHSBits)[i].getValue(),
1417 Bits[i] = ValueBit(V, i);
1421 Bits[i] = ValueBit(V, i, ValueBit::VariableKnownToBeZero);
1431 Bits[i] = ValueBit(V, i);
1442 if (Bits[i].hasValue()) {
1443 unsigned VBI = Bits[i].getValueBitIndex();
1445 RLAmt[i] = i - VBI;
1447 RLAmt[i] = Bits.size() - (VBI - i);
1448 } else if (Bits[i].isZero()) {
1450 RLAmt[i] = UINT32_MAX;
1462 unsigned LastRLAmt = RLAmt[0];
1463 SDValue LastValue = Bits[0].hasValue() ? Bits[0].getValue() : SDValue();
1463 SDValue LastValue = Bits[0].hasValue() ? Bits[0].getValue() : SDValue();
1465 bool IsGroupOfZeros = !Bits[LastGroupStartIdx].hasValue();
1467 unsigned ThisRLAmt = RLAmt[i];
1468 SDValue ThisValue = Bits[i].hasValue() ? Bits[i].getValue() : SDValue();
1468 SDValue ThisValue = Bits[i].hasValue() ? Bits[i].getValue() : SDValue();
1482 if (IsGroupOfZeros && Bits[i].isZero())
1490 if (!(IsGroupOfZeros && ThisValue && !Bits[i].isZero()))
1499 IsGroupOfZeros = !Bits[LastGroupStartIdx].hasValue();
1513 if (BitGroups[0].StartIdx == 0 &&
1514 BitGroups[BitGroups.size()-1].EndIdx == Bits.size()-1 &&
1515 BitGroups[0].V == BitGroups[BitGroups.size()-1].V &&
1515 BitGroups[0].V == BitGroups[BitGroups.size()-1].V &&
1516 BitGroups[0].RLAmt == BitGroups[BitGroups.size()-1].RLAmt) {
1516 BitGroups[0].RLAmt == BitGroups[BitGroups.size()-1].RLAmt) {
1518 BitGroups[BitGroups.size()-1].EndIdx = BitGroups[0].EndIdx;
1518 BitGroups[BitGroups.size()-1].EndIdx = BitGroups[0].EndIdx;
1573 if (!Bits[i].hasValue())
1575 if (Bits[i].getValueBitIndex() >= 32)
1580 if (!Bits[i].hasValue())
1582 if (Bits[i].getValueBitIndex() >= 32)
1586 if (!Bits[i].hasValue())
1588 if (Bits[i].getValueBitIndex() >= 32)
1709 if (Bits[i].hasValue())
1756 if (!Bits[i].hasValue() || Bits[i].getValue() != VRI.V)
1756 if (!Bits[i].hasValue() || Bits[i].getValue() != VRI.V)
1758 if (RLAmt[i] != VRI.RLAmt)
1857 ValueRotInfo &VRI = ValueRotsVec[0];
2240 if (!ValueRotsVec[0].Repl32) {
2242 if (ValueRotsVec[i].Repl32) {
2243 if (ValueRotsVec[i].NumGroups > ValueRotsVec[0].NumGroups)
2243 if (ValueRotsVec[i].NumGroups > ValueRotsVec[0].NumGroups)
2249 ValueRotInfo &VRI = ValueRotsVec[MaxGroupsIdx];
lib/Target/PowerPC/PPCISelLowering.cpp 3478 CCValAssign &VA = ArgLocs[i];
3535 unsigned RegHi = MF.addLiveIn(ArgLocs[++i].getLocReg(), RC);
5133 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
5134 RegsToPass[i].second.getValueType()));
5168 CCValAssign &VA = RVLocs[i];
5178 VA = RVLocs[++i]; // skip ahead to next loc
5319 Ops[1] = Callee;
5531 CCValAssign &VA = ArgLocs[i];
5541 CCValAssign &ByValVA = ByValArgLocs[j++];
5589 RegsToPass.push_back(std::make_pair(ArgLocs[++i].getLocReg(),
5620 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
5621 RegsToPass[i].second, InFlag);
6311 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
6312 RegsToPass[i].second, InFlag);
6692 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
6693 RegsToPass[i].second, InFlag);
6905 CCValAssign &VA = RVLocs[i];
6934 VA = RVLocs[++i]; // skip ahead to next loc
6961 RetOps[0] = Chain; // Update chain.
7642 Ops[0] = Vec;
7645 Ops[i] = UndefVec;
7675 ShuffV[i * Stride] = i;
7678 ShuffV[i * Stride - 1] = i - 1;
9598 Ops[2] = NewCmpOp;
12164 if (isa<ConstantSDNode>(Inputs[i]))
12167 for (SDNode::use_iterator UI = Inputs[i].getNode()->use_begin(),
12168 UE = Inputs[i].getNode()->use_end();
12180 if (User->getOperand(0) == Inputs[i])
12183 if (User->getOperand(0) == Inputs[i] ||
12184 User->getOperand(1) == Inputs[i])
12191 for (SDNode::use_iterator UI = PromOps[i].getNode()->use_begin(),
12192 UE = PromOps[i].getNode()->use_end();
12204 if (User->getOperand(0) == PromOps[i])
12207 if (User->getOperand(0) == PromOps[i] ||
12208 User->getOperand(1) == PromOps[i])
12218 if (isa<ConstantSDNode>(Inputs[i]))
12221 DAG.ReplaceAllUsesOfValueWith(Inputs[i], Inputs[i].getOperand(0));
12221 DAG.ReplaceAllUsesOfValueWith(Inputs[i], Inputs[i].getOperand(0));
12280 if (isa<ConstantSDNode>(Ops[C+i]))
12281 Ops[C+i] = DAG.getNode(ISD::TRUNCATE, dl, MVT::i1, Ops[C+i]);
12281 Ops[C+i] = DAG.getNode(ISD::TRUNCATE, dl, MVT::i1, Ops[C+i]);
12377 if (isa<ConstantSDNode>(Inputs[i]))
12380 for (SDNode::use_iterator UI = Inputs[i].getNode()->use_begin(),
12381 UE = Inputs[i].getNode()->use_end();
12390 if (User->getOperand(0) == Inputs[i])
12394 if (User->getOperand(0) == Inputs[i])
12397 if (User->getOperand(1) == Inputs[i])
12405 for (SDNode::use_iterator UI = PromOps[i].getNode()->use_begin(),
12406 UE = PromOps[i].getNode()->use_end();
12415 if (User->getOperand(0) == PromOps[i])
12419 if (User->getOperand(0) == PromOps[i])
12422 if (User->getOperand(1) == PromOps[i])
12435 if (isa<ConstantSDNode>(Inputs[i]))
12439 Inputs[i].getOperand(0).getValueSizeInBits();
12443 !DAG.MaskedValueIsZero(Inputs[i].getOperand(0),
12447 DAG.ComputeNumSignBits(Inputs[i].getOperand(0)) <
12461 if (isa<ConstantSDNode>(Inputs[i]))
12464 SDValue InSrc = Inputs[i].getOperand(0);
12465 if (Inputs[i].getValueType() == N->getValueType(0))
12466 DAG.ReplaceAllUsesOfValueWith(Inputs[i], InSrc);
12468 DAG.ReplaceAllUsesOfValueWith(Inputs[i],
12471 DAG.ReplaceAllUsesOfValueWith(Inputs[i],
12474 DAG.ReplaceAllUsesOfValueWith(Inputs[i],
12527 if (!isa<ConstantSDNode>(Ops[C+i]))
12529 if (Ops[C+i].getValueType() == N->getValueType(0))
12533 Ops[C+i] = DAG.getSExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12533 Ops[C+i] = DAG.getSExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12535 Ops[C+i] = DAG.getZExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12535 Ops[C+i] = DAG.getZExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12537 Ops[C+i] = DAG.getAnyExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12537 Ops[C+i] = DAG.getAnyExtOrTrunc(Ops[C+i], dl, N->getValueType(0));
12546 Ops[0] = DAG.getNode(ISD::TRUNCATE, dl, SI0->second, Ops[0]);
12546 Ops[0] = DAG.getNode(ISD::TRUNCATE, dl, SI0->second, Ops[0]);
12549 Ops[1] = DAG.getNode(ISD::TRUNCATE, dl, SI1->second, Ops[1]);
12549 Ops[1] = DAG.getNode(ISD::TRUNCATE, dl, SI1->second, Ops[1]);
12815 ShuffleMask[CorrectElems & 0xF] = Elems & 0xF;
12817 ShuffleMask[(CorrectElems & 0xF0) >> 4] = (Elems & 0xF0) >> 4;
lib/Target/PowerPC/PPCInstrInfo.cpp 1245 MBB.insert(MI, NewMIs[i]);
1303 MBB.insert(MI, NewMIs[i]);
1316 if (Cond[1].getReg() == PPC::CTR8 || Cond[1].getReg() == PPC::CTR)
1316 if (Cond[1].getReg() == PPC::CTR8 || Cond[1].getReg() == PPC::CTR)
1317 Cond[0].setImm(Cond[0].getImm() == 0 ? 1 : 0);
1317 Cond[0].setImm(Cond[0].getImm() == 0 ? 1 : 0);
1320 Cond[0].setImm(PPC::InvertPredicate((PPC::Predicate)Cond[0].getImm()));
1320 Cond[0].setImm(PPC::InvertPredicate((PPC::Predicate)Cond[0].getImm()));
1999 PredsToUpdate[i].first->setImm(PredsToUpdate[i].second);
1999 PredsToUpdate[i].first->setImm(PredsToUpdate[i].second);
2002 SubRegsToUpdate[i].first->setSubReg(SubRegsToUpdate[i].second);
2002 SubRegsToUpdate[i].first->setSubReg(SubRegsToUpdate[i].second);
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp 297 if (auto *II = dyn_cast<IntrinsicInst>(BucketChain.Elements[j].Instr))
307 if (!BucketChain.Elements[j].Offset ||
308 BucketChain.Elements[j].Offset->isZero())
311 const SCEV *Offset = BucketChain.Elements[j].Offset;
320 std::swap(BucketChain.Elements[j], BucketChain.Elements[0]);
320 std::swap(BucketChain.Elements[j], BucketChain.Elements[0]);
lib/Target/PowerPC/PPCReduceCRLogicals.cpp 585 CRLogicalOpInfo CRI = AllCRLogicalOps[Idx];
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 774 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
802 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
824 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
831 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
917 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
923 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
929 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
933 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
937 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1736 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
lib/Target/RISCV/RISCVISelLowering.cpp 1565 CCValAssign VA = PendingLocs[0];
1566 ISD::ArgFlagsTy AF = PendingArgFlags[0];
1910 CCValAssign &VA = ArgLocs[i];
1930 CCValAssign &PartVA = ArgLocs[i + 1];
2052 auto IsCalleeStructRet = Outs.empty() ? false : Outs[0].Flags.isSRet();
2129 ISD::ArgFlagsTy Flags = Outs[i].Flags;
2133 SDValue Arg = OutVals[i];
2157 CCValAssign &VA = ArgLocs[i];
2158 SDValue ArgValue = OutVals[i];
2159 ISD::ArgFlagsTy Flags = Outs[i].Flags;
2197 SDValue SpillSlot = DAG.CreateStackTemporary(Outs[i].ArgVT);
2204 unsigned ArgIndex = Outs[i].OrigArgIndex;
2205 assert(Outs[i].PartOffset == 0);
2206 while (i + 1 != e && Outs[i + 1].OrigArgIndex == ArgIndex) {
2207 SDValue PartValue = OutVals[i + 1];
2208 unsigned PartOffset = Outs[i + 1].PartOffset;
2223 ArgValue = ByValArgs[j++];
2402 CCValAssign &VA = RVLocs[i];
2444 RetOps[0] = Chain; // Update chain.
lib/Target/RISCV/RISCVInstrInfo.cpp 417 Cond[0].setImm(getOppositeBranchOpcode(Cond[0].getImm()));
417 Cond[0].setImm(getOppositeBranchOpcode(Cond[0].getImm()));
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp 618 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc();
lib/Target/Sparc/SparcISelDAGToDAG.cpp 209 IsTiedToChangedOp = OpChanged[DefIdx];
292 OpChanged[OpChanged.size() -1 ] = true;
lib/Target/Sparc/SparcISelLowering.cpp 234 CCValAssign &VA = RVLocs[i];
254 VA = RVLocs[++i]; // skip ahead to next loc
280 RetOps[0] = Chain; // Update chain.
281 RetOps[1] = DAG.getConstant(RetAddrOffset, DL, MVT::i32);
317 CCValAssign &VA = RVLocs[i];
345 if (i+1 < RVLocs.size() && RVLocs[i+1].getLocReg() == VA.getLocReg()) {
360 RetOps[0] = Chain; // Update chain.
402 CCValAssign &VA = ArgLocs[i];
425 CCValAssign &NextVA = ArgLocs[++i];
530 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), dl, Reg, InVals[0]);
594 CCValAssign &VA = ArgLocs[i];
750 ISD::ArgFlagsTy Flags = Outs[i].Flags;
754 SDValue Arg = OutVals[i];
788 CCValAssign &VA = ArgLocs[i];
789 SDValue Arg = OutVals[realArgIdx];
791 ISD::ArgFlagsTy Flags = Outs[realArgIdx].Flags;
795 Arg = ByValArgs[byvalArgIdx++];
829 assert(Outs[realArgIdx].OrigArgIndex == 0);
871 CCValAssign &NextVA = ArgLocs[++i];
934 unsigned Reg = toCallerWindow(RegsToPass[i].first);
935 Chain = DAG.getCopyToReg(Chain, dl, Reg, RegsToPass[i].second, InFlag);
958 Ops.push_back(DAG.getRegister(toCallerWindow(RegsToPass[i].first),
959 RegsToPass[i].second.getValueType()));
989 if (RVLocs[i].getLocVT() == MVT::v2i32) {
992 Chain, dl, toCallerWindow(RVLocs[i++].getLocReg()), MVT::i32, InFlag);
998 Chain, dl, toCallerWindow(RVLocs[i].getLocReg()), MVT::i32, InFlag);
1006 DAG.getCopyFromReg(Chain, dl, toCallerWindow(RVLocs[i].getLocReg()),
1007 RVLocs[i].getValVT(), InFlag)
1049 const CCValAssign &VA = ArgLocs[i];
1087 ArgLocs[i] = NewVA;
1138 const CCValAssign &VA = ArgLocs[i];
1139 SDValue Arg = CLI.OutVals[i];
1200 if (i+1 < ArgLocs.size() && ArgLocs[i+1].isRegLoc() &&
1201 ArgLocs[i+1].getLocReg() == VA.getLocReg()) {
1203 CLI.OutVals[i+1]);
1238 RegsToPass[i].first, RegsToPass[i].second, InGlue);
1238 RegsToPass[i].first, RegsToPass[i].second, InGlue);
1258 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
1259 RegsToPass[i].second.getValueType()));
1295 if (CLI.Ins.size() == 1 && CLI.Ins[0].VT == MVT::f32 && !CLI.CS)
1296 CLI.Ins[0].Flags.setInReg();
1302 CCValAssign &VA = RVLocs[i];
1315 RV = DAG.getCopyFromReg(Chain, DL, Reg, RVLocs[i].getLocVT(), InGlue);
lib/Target/Sparc/SparcInstrInfo.cpp 300 SPCC::CondCodes CC = static_cast<SPCC::CondCodes>(Cond[0].getImm());
301 Cond[0].setImm(GetOppositeBranchCondition(CC));
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp 1098 MCParsedAsmOperand &Operand = *Operands[i];
1278 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc();
1288 ((SystemZOperand &)*Operands[0]).getToken(), FBS);
1290 ((SystemZOperand &)*Operands[0]).getLocRange());
lib/Target/SystemZ/SystemZCallingConv.h 78 bool IsFixed(unsigned ValNo) { return ArgIsFixed[ValNo]; }
79 bool IsShortVector(unsigned ValNo) { return ArgIsShortVector[ValNo]; }
lib/Target/SystemZ/SystemZElimCompare.cpp 215 MachineInstr *Branch = CCUsers[0];
259 MachineInstr *Branch = CCUsers[0];
344 MachineInstr *MI = CCUsers[I];
372 AlterMasks[I]->setImm(CCValues);
373 unsigned CCMask = AlterMasks[I + 1]->getImm();
375 AlterMasks[I + 1]->setImm((CCMask & ReusableCCMask) |
496 MachineInstr *Branch = CCUsers[0];
lib/Target/SystemZ/SystemZHazardRecognizer.cpp 153 ProcResourceCounters[i] = ((ProcResourceCounters[i] > NumGroups)
153 ProcResourceCounters[i] = ((ProcResourceCounters[i] > NumGroups)
154 ? (ProcResourceCounters[i] - NumGroups)
159 (ProcResourceCounters[CriticalResourceIdx] <=
303 ProcResourceCounters[PI->ProcResourceIdx];
310 ProcResourceCounters[CriticalResourceIdx]))) {
lib/Target/SystemZ/SystemZISelLowering.cpp 1319 CCValAssign &VA = ArgLocs[I];
1385 CCValAssign &PartVA = ArgLocs[I + 1];
1444 CCValAssign &VA = ArgLocs[I];
1452 if (Outs[I].Flags.isSwiftSelf() || Outs[I].Flags.isSwiftError())
1452 if (Outs[I].Flags.isSwiftSelf() || Outs[I].Flags.isSwiftError())
1502 CCValAssign &VA = ArgLocs[I];
1503 SDValue ArgValue = OutVals[I];
1507 SDValue SpillSlot = DAG.CreateStackTemporary(Outs[I].ArgVT);
1514 unsigned ArgIndex = Outs[I].OrigArgIndex;
1515 assert (Outs[I].PartOffset == 0);
1516 while (I + 1 != E && Outs[I + 1].OrigArgIndex == ArgIndex) {
1517 SDValue PartValue = OutVals[I + 1];
1518 unsigned PartOffset = Outs[I + 1].PartOffset;
1574 Chain = DAG.getCopyToReg(Chain, DL, RegsToPass[I].first,
1575 RegsToPass[I].second, Glue);
1587 Ops.push_back(DAG.getRegister(RegsToPass[I].first,
1588 RegsToPass[I].second.getValueType()));
1621 CCValAssign &VA = RetLocs[I];
1683 CCValAssign &VA = RetLocs[I];
1700 RetOps[0] = Chain;
4125 Transform[From] = -1;
4132 Transform[From] = To;
4161 Bytes[I * BytesPerElement + J] = Index * BytesPerElement + J;
4171 Bytes[I * BytesPerElement + J] = Index * BytesPerElement + J;
4365 if (Ops[OpNo] == Op)
4401 SDValue SubOps[] = { Ops[I], Ops[I + Stride] };
4401 SDValue SubOps[] = { Ops[I], Ops[I + Stride] };
4406 unsigned OpNo = unsigned(Bytes[J]) / SystemZ::VectorBytes;
4407 unsigned Byte = unsigned(Bytes[J]) % SystemZ::VectorBytes;
4409 NewBytes[J] = Byte;
4411 NewBytes[J] = SystemZ::VectorBytes + Byte;
4413 NewBytes[J] = -1;
4418 Ops[I] = getPermuteNode(DAG, DL, *P, SubOps[0], SubOps[1]);
4421 if (NewBytes[J] >= 0) {
4422 assert(unsigned(NewBytesMap[J]) < SystemZ::VectorBytes &&
4424 Bytes[J] = I * SystemZ::VectorBytes + NewBytesMap[J];
4424 Bytes[J] = I * SystemZ::VectorBytes + NewBytesMap[J];
4426 assert(NewBytesMap[J] < 0 && "Invalid double permute");
4430 Ops[I] = getGeneralPermuteNode(DAG, DL, SubOps, NewBytes);
4432 if (NewBytes[J] >= 0)
4433 Bytes[J] = I * SystemZ::VectorBytes + J;
4440 Ops[1] = Ops[Stride];
4440 Ops[1] = Ops[Stride];
4442 if (Bytes[I] >= int(SystemZ::VectorBytes))
4443 Bytes[I] -= (Stride - 1) * SystemZ::VectorBytes;
4451 Op = getPermuteNode(DAG, DL, *P, Ops[OpNo0], Ops[OpNo1]);
4451 Op = getPermuteNode(DAG, DL, *P, Ops[OpNo0], Ops[OpNo1]);
4453 Op = getGeneralPermuteNode(DAG, DL, &Ops[0], Bytes);
4558 ResidueOps.push_back(DAG.getUNDEF(ResidueOps[0].getValueType()));
4622 return joinDwords(DAG, DL, Elems[0], Elems[1]);
4622 return joinDwords(DAG, DL, Elems[0], Elems[1]);
4626 return buildMergeScalars(DAG, DL, VT, Elems[0], Elems[1]);
4626 return buildMergeScalars(DAG, DL, VT, Elems[0], Elems[1]);
4636 SDValue Op01 = buildMergeScalars(DAG, DL, VT, Elems[0], Elems[1]);
4636 SDValue Op01 = buildMergeScalars(DAG, DL, VT, Elems[0], Elems[1]);
4637 SDValue Op23 = buildMergeScalars(DAG, DL, VT, Elems[2], Elems[3]);
4637 SDValue Op23 = buildMergeScalars(DAG, DL, VT, Elems[2], Elems[3]);
4659 SDValue Elem = Elems[I];
4663 Constants[I] = Elem;
4664 Done[I] = true;
4674 if (!Constants[I].getNode())
4675 Constants[I] = DAG.getUNDEF(Elems[I].getValueType());
4675 Constants[I] = DAG.getUNDEF(Elems[I].getValueType());
4687 if (isVectorElementLoad(Elems[I])) {
4688 SDNode *Ld = Elems[I].getNode();
4700 bool Def1 = !Elems[I1].isUndef();
4701 bool Def2 = !Elems[I2].isUndef();
4703 SDValue Elem1 = Elems[Def1 ? I1 : I2];
4704 SDValue Elem2 = Elems[Def2 ? I2 : I1];
4707 Done[I1] = true;
4708 Done[I2] = true;
4716 if (!Done[I] && !Elems[I].isUndef() && Elems[I] != ReplicatedVal)
4716 if (!Done[I] && !Elems[I].isUndef() && Elems[I] != ReplicatedVal)
4716 if (!Done[I] && !Elems[I].isUndef() && Elems[I] != ReplicatedVal)
4717 Result = DAG.getNode(ISD::INSERT_VECTOR_ELT, DL, VT, Result, Elems[I],
4748 Ops[I] = Op.getOperand(I);
lib/Target/SystemZ/SystemZInstrInfo.cpp 433 unsigned OldCCValid = Cond[0].getImm();
434 unsigned OldCCMask = Cond[1].getImm();
473 Cond[1].setImm(Cond[1].getImm() ^ Cond[0].getImm());
473 Cond[1].setImm(Cond[1].getImm() ^ Cond[0].getImm());
473 Cond[1].setImm(Cond[1].getImm() ^ Cond[0].getImm());
lib/Target/SystemZ/SystemZLongBranch.cpp 281 MBBInfo &Block = MBBs[I];
317 const MBBInfo &Target = MBBs[Terminator.TargetBlock];
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp 822 ErrorLoc = Operands[ErrorInfo]->getStartLoc();
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp 255 NumPredsLeft[MBB.getNumber()] = N;
300 if (--NumPredsLeft[Succ->getNumber()] == 0)
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp 248 if (MachineBasicBlock *ScopeTop = ScopeTops[I->getNumber()]) {
367 if (!ScopeTops[Number] ||
368 ScopeTops[Number]->getNumber() > Header->getNumber())
369 ScopeTops[Number] = Header;
432 assert((!ScopeTops[AfterLoop->getNumber()] ||
433 ScopeTops[AfterLoop->getNumber()]->getNumber() < MBB.getNumber()) &&
435 if (!ScopeTops[AfterLoop->getNumber()])
436 ScopeTops[AfterLoop->getNumber()] = &MBB;
479 if (MachineBasicBlock *ScopeTop = ScopeTops[I->getNumber()]) {
634 if (!ScopeTops[Number] ||
635 ScopeTops[Number]->getNumber() > Header->getNumber())
636 ScopeTops[Number] = Header;
1175 if (ScopeTops[MBB.getNumber()])
1181 ScopeTops[MBB.getNumber()] = EndToBegin[&MI]->getParent();
1184 ScopeTops[MBB.getNumber()] = EHPadToTry[&MBB]->getParent();
1306 assert(ScopeTops[Stack.back()->getNumber()]->getNumber() <=
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 699 Outs[0].Flags.isSRet()) {
700 std::swap(Outs[0], Outs[1]);
700 std::swap(Outs[0], Outs[1]);
701 std::swap(OutVals[0], OutVals[1]);
701 std::swap(OutVals[0], OutVals[1]);
706 const ISD::OutputArg &Out = Outs[I];
707 SDValue &OutVal = OutVals[I];
745 const ISD::OutputArg &Out = Outs[I];
746 SDValue &Arg = OutVals[I];
773 assert(ArgLocs[ValNo].getValNo() == ValNo &&
775 unsigned Offset = ArgLocs[ValNo++].getLocMemOffset();
lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp 224 MachineFunction &MF = *Cond[1].getParent()->getParent()->getParent();
226 if (Cond[1].isReg() &&
227 MRI.getRegClass(Cond[1].getReg()) == &WebAssembly::EXNREFRegClass)
lib/Target/WebAssembly/WebAssemblyRegColoring.cpp 137 LiveInterval *LI = SortedIntervals[I];
145 if (MRI->getRegClass(SortedIntervals[C]->reg) != RC)
147 for (LiveInterval *OtherLI : Assignments[C])
155 unsigned New = SortedIntervals[Color]->reg;
156 SlotMapping[I] = New;
159 Assignments[Color].push_back(LI);
168 unsigned Old = SortedIntervals[I]->reg;
169 unsigned New = SlotMapping[I];
lib/Target/X86/AsmParser/X86AsmParser.cpp 175 InfixCalculatorTok StackOp = InfixOperatorStack[Idx];
190 StackOp = InfixOperatorStack[Idx];
227 ICToken Op = PostfixStack[i];
1287 X86Operand &OrigOp = static_cast<X86Operand &>(*OrigOperands[i + 1]);
1288 X86Operand &FinalOp = static_cast<X86Operand &>(*FinalOperands[i]);
1352 OrigOperands.push_back(std::move(FinalOperands[i]));
2688 static_cast<X86Operand &>(*Operands[0]).setTokenValue(Repl);
2693 X86Operand &Op1 = (X86Operand &)*Operands[1];
2694 X86Operand &Op2 = (X86Operand &)*Operands[2];
2706 Operands[0] = X86Operand::CreateToken(Name, NameLoc);
2711 Operands[1] = X86Operand::CreateReg(Reg, Loc, Loc);
2730 X86Operand &Op = (X86Operand &)*Operands[1];
2732 Operands[1] = X86Operand::CreateReg(X86::DX, Op.getStartLoc(),
2833 X86Operand &Op1 = static_cast<X86Operand &>(*Operands[2]);
2838 X86Operand &Op1 = static_cast<X86Operand &>(*Operands[1]);
2848 X86Operand &Op1 = static_cast<X86Operand &>(*Operands[1]);
2853 static_cast<X86Operand &>(*Operands[0]).setTokenValue("int3");
2859 X86Operand &Op1 = static_cast<X86Operand &>(*Operands[1]);
2864 static_cast<X86Operand &>(*Operands[0]).setTokenValue("xlatb");
3078 Operands[0] = X86Operand::CreateToken(Repl, IDLoc);
3145 assert((*Operands[0]).isToken() && "Leading operand should always be a mnemonic!");
3149 MatchFPUWaitAlias(IDLoc, static_cast<X86Operand &>(*Operands[0]), Operands,
3151 X86Operand &Op = static_cast<X86Operand &>(*Operands[0]);
3187 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc();
3303 X86Operand &Operand = (X86Operand &)*Operands[ErrorInfo];
3351 assert((*Operands[0]).isToken() && "Leading operand should always be a mnemonic!");
3352 StringRef Mnemonic = (static_cast<X86Operand &>(*Operands[0])).getToken();
3354 StringRef Base = (static_cast<X86Operand &>(*Operands[0])).getToken();
3358 MatchFPUWaitAlias(IDLoc, static_cast<X86Operand &>(*Operands[0]), Operands, Out, MatchingInlineAsm);
3359 X86Operand &Op = static_cast<X86Operand &>(*Operands[0]);
3402 auto *X86Op = static_cast<X86Operand *>(Operands[1].get());
3542 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc();
lib/Target/X86/MCTargetDesc/X86InstComments.cpp 1280 if ((int)ShuffleMask[i] >= 0 && // Not sentinel.
1281 ShuffleMask[i] >= (int)e) // From second mask.
1282 ShuffleMask[i] -= e;
1292 if (ShuffleMask[i] == SM_SentinelZero) {
1299 bool isSrc1 = ShuffleMask[i] < (int)ShuffleMask.size();
1303 while (i != e && (int)ShuffleMask[i] != SM_SentinelZero &&
1304 (ShuffleMask[i] < (int)ShuffleMask.size()) == isSrc1) {
1309 if (ShuffleMask[i] == SM_SentinelUndef)
1312 OS << ShuffleMask[i] % ShuffleMask.size();
lib/Target/X86/Utils/X86ShuffleDecode.cpp 38 ShuffleMask[CountD] = InVal;
40 if (ZMask & 1) ShuffleMask[0] = SM_SentinelZero;
41 if (ZMask & 2) ShuffleMask[1] = SM_SentinelZero;
42 if (ZMask & 4) ShuffleMask[2] = SM_SentinelZero;
43 if (ZMask & 8) ShuffleMask[3] = SM_SentinelZero;
53 ShuffleMask[Idx + i] = NumElts + i;
lib/Target/X86/X86CallFrameOptimization.cpp 449 if (Context.ArgStoreVector[StackDisp] != nullptr)
451 Context.ArgStoreVector[StackDisp] = &*I;
lib/Target/X86/X86CallLowering.cpp 69 EVT VT = SplitVTs[0];
89 SplitRegs.push_back(Info.Regs[0]);
209 ArgInfo CurArgInfo = ArgInfo{VRegs[i], SplitEVTs[i].getTypeForEVT(Ctx)};
478 MIRBuilder.buildMerge(Info.OrigRet.Regs[0], NewRegs);
lib/Target/X86/X86CallingConv.cpp 53 unsigned Reg = State.AllocateReg(AvailableRegs[I]);
lib/Target/X86/X86CmovConversion.cpp 227 for (MachineLoop *Child : Loops[i]->getSubLoops())
lib/Target/X86/X86CondBrFolding.cpp 382 LLVM_DEBUG(dbgs() << "PredMBB is: " << *(BranchPath[0]) << "\n");
lib/Target/X86/X86FastISel.cpp 1206 CCValAssign &VA = ValLocs[0];
1228 if (!Outs[0].Flags.isZExt() && !Outs[0].Flags.isSExt())
1228 if (!Outs[0].Flags.isZExt() && !Outs[0].Flags.isSExt())
1234 if (Outs[0].Flags.isSExt())
1239 unsigned Op = Outs[0].Flags.isZExt() ? ISD::ZERO_EXTEND :
1286 MIB.addReg(RetRegs[i], RegState::Implicit);
3255 Value *&Val = OutVals[i];
3256 ISD::ArgFlagsTy Flags = OutFlags[i];
3319 CCValAssign const &VA = ArgLocs[i];
3320 const Value *ArgVal = OutVals[VA.getValNo()];
3321 MVT ArgVT = OutVTs[VA.getValNo()];
3326 unsigned ArgReg = ArgRegs[VA.getValNo()];
3418 ISD::ArgFlagsTy Flags = OutFlags[VA.getValNo()];
3553 CCValAssign &VA = RVLocs[i];
3560 ((Is64Bit || Ins[i].Flags.isInReg()) && !Subtarget->hasSSE1())) {
lib/Target/X86/X86FloatingPoint.cpp 354 LiveBundles[Bundles->getBundle(Entry->getNumber(), false)];
404 LiveBundles[Bundles->getBundle(MBB.getNumber(), false)].Mask |= Mask;
468 unsigned Reg = DeadRegs[i];
513 LiveBundles[Bundles->getBundle(MBB->getNumber(), false)];
552 LiveBundle &Bundle = LiveBundles[BundleIdx];
lib/Target/X86/X86FrameLowering.cpp 3149 ObjectsToAllocate[i++] = Obj.ObjectIndex;
lib/Target/X86/X86ISelLowering.cpp 2496 CCValAssign &VA = RVLocs[I];
2574 Passv64i1ArgInRegs(dl, DAG, ValToCopy, RegsToPass, VA, RVLocs[++I],
2582 MF.getRegInfo().disableCalleeSavedRegister(RVLocs[I].getLocReg());
2627 SDValue Val = DAG.getCopyFromReg(RetOps[0], dl, SRetReg,
2657 RetOps[0] = Chain; // Update chain.
2837 CCValAssign &VA = RVLocs[I];
2875 getv64i1Argument(VA, RVLocs[++I], Chain, DAG, dl, Subtarget, &InFlag);
3219 CCValAssign &VA = ArgLocs[I];
3231 getv64i1Argument(VA, ArgLocs[++I], Chain, DAG, dl, Subtarget);
3331 SDValue Copy = DAG.getCopyToReg(DAG.getEntryNode(), dl, Reg, InVals[I]);
3757 ISD::ArgFlagsTy Flags = Outs[OutIndex].Flags;
3761 CCValAssign &VA = ArgLocs[I];
3763 SDValue Arg = OutVals[OutIndex];
3823 Passv64i1ArgInRegs(dl, DAG, Arg, RegsToPass, VA, ArgLocs[++I], Subtarget);
3929 CCValAssign &VA = ArgLocs[I];
3944 SDValue Arg = OutVals[OutsIndex];
3945 ISD::ArgFlagsTy Flags = Outs[OutsIndex].Flags;
3988 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
3989 RegsToPass[i].second, InFlag);
4032 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
4033 RegsToPass[i].second.getValueType()));
4367 if (!ArgLocs[i].isRegLoc())
4386 CCValAssign &VA = RVLocs[i];
4429 CCValAssign &VA = ArgLocs[i];
4457 CCValAssign &VA = ArgLocs[i];
5294 WidenedMask[i / 2] = SM_SentinelUndef;
5301 WidenedMask[i / 2] = M1 / 2;
5305 WidenedMask[i / 2] = M0 / 2;
5313 WidenedMask[i / 2] = SM_SentinelZero;
5322 WidenedMask[i / 2] = M0 / 2;
5340 if (TargetMask[i] == SM_SentinelUndef)
5343 TargetMask[i] = SM_SentinelZero;
5922 MaskVec[i] = (i == Idx) ? NumElems : i;
6019 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset);
6078 SrcEltBits[i] = Cst->getAPIntValue().zextOrTrunc(SrcEltSizeInBits);
6096 SrcEltBits[i] = RawBits.zextOrTrunc(SrcEltSizeInBits);
6114 if (!CollectConstantBits(Cst->getAggregateElement(i), SrcEltBits[i],
6130 if (CollectConstantBits(Broadcast, SrcEltBits[0], UndefSrcElts, 0)) {
6133 SrcEltBits.append(NumSrcElts - 1, SrcEltBits[0]);
6161 if (CollectConstantBits(C, SrcEltBits[0], UndefSrcElts, 0)) {
6164 SrcEltBits.append(NumSrcElts - 1, SrcEltBits[0]);
6216 EltBits[BaseIdx + i] = EltSubBits[i];
6216 EltBits[BaseIdx + i] = EltSubBits[i];
6277 EltBits.push_back(EltBits0[M]);
6281 EltBits.push_back(EltBits1[M - NumElts]);
6301 if (0 <= SplatIndex && EltBits[i] != EltBits[SplatIndex]) {
6301 if (0 <= SplatIndex && EltBits[i] != EltBits[SplatIndex]) {
6308 SplatVal = EltBits[SplatIndex];
6737 SDValue V1 = Ops[0];
6738 SDValue V2 = IsUnary ? V1 : Ops[1];
6758 int M = Mask[i];
6800 else if (SrcEltBits[SrcIdx][M] == 0)
6820 Mask[i] = SM_SentinelUndef;
6822 Mask[i] = SM_SentinelZero;
6897 const APInt &ByteBits = EltBits[i];
6960 if (Mask0[i] == SM_SentinelUndef && Mask1[i] == SM_SentinelUndef)
6960 if (Mask0[i] == SM_SentinelUndef && Mask1[i] == SM_SentinelUndef)
6962 else if (Mask0[i] == SM_SentinelZero && Mask1[i] == SM_SentinelZero)
6962 else if (Mask0[i] == SM_SentinelZero && Mask1[i] == SM_SentinelZero)
6964 else if (Mask1[i] == SM_SentinelZero)
6965 Mask.push_back(Mask0[i]);
6966 else if (Mask0[i] == SM_SentinelZero)
6967 Mask.push_back(Mask1[i] + (int)(MaskSize * SrcInputs0.size()));
6992 Mask[InsertIdx + i] = NumElts + ExtractIdx + i;
7030 int M = SubMask[i];
7035 Mask[i + InsertIdx] = M;
7171 Mask[i + j] = i + j - ByteShift;
7175 Mask[i + j - ByteShift] = i + j;
7245 if (Inputs[i].isUndef())
7261 if (UsedInputs[j] != Inputs[i])
7261 if (UsedInputs[j] != Inputs[i])
7272 UsedInputs.push_back(Inputs[i]);
7354 int Elt = ShuffleMask[Index];
7362 SDValue NewV = (Elt < NumElems) ? ShuffleOps[0] : ShuffleOps[1];
7362 SDValue NewV = (Elt < NumElems) ? ShuffleOps[0] : ShuffleOps[1];
7828 if (!findEltLoadSrc(Elt, Loads[i], ByteOffsets[i]) || ByteOffsets[i] < 0)
7828 if (!findEltLoadSrc(Elt, Loads[i], ByteOffsets[i]) || ByteOffsets[i] < 0)
7828 if (!findEltLoadSrc(Elt, Loads[i], ByteOffsets[i]) || ByteOffsets[i] < 0)
7830 unsigned LoadSizeInBits = Loads[i]->getValueSizeInBits(0);
7831 if (((ByteOffsets[i] * 8) + EltSizeInBits) > LoadSizeInBits)
7856 LoadSDNode *LDBase = Loads[FirstLoadedElt];
7864 if (ByteOffsets[FirstLoadedElt] != 0)
7870 LoadSDNode *Ld = Loads[EltIdx];
7871 int64_t ByteOffset = ByteOffsets[EltIdx];
7875 Loads[BaseIdx] == Ld && ByteOffsets[BaseIdx] == 0);
7875 Loads[BaseIdx] == Ld && ByteOffsets[BaseIdx] == 0);
7950 ClearMask[(i * Scale) + j] = (i * Scale) + j + Offset;
8013 if (RepeatedLoads[i % SubElems].isUndef())
8014 RepeatedLoads[i % SubElems] = Elt;
8016 Match &= (RepeatedLoads[i % SubElems] == Elt);
8463 Mask[i] = Idx;
8465 Mask[i] = Idx + NumElems;
8566 unsigned InsertIdx = NonConstIdx[i];
9245 if (IsShift && any_of(RHSElts, [&](SDValue V) { return RHSElts[0] != V; }))
9657 ConstVecOps[i] = ConstantInt::get(Context, C->getAPIntValue());
9659 ConstVecOps[i] = ConstantFP::get(Context, C->getValueAPF());
9862 Ops[i] = getZeroVector(VT, Subtarget, DAG, dl);
9864 Ops[i] = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, VT, Op.getOperand(i));
9871 Ops[i] = Ops[i*2]; // Must be a zero vector.
9871 Ops[i] = Ops[i*2]; // Must be a zero vector.
9874 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2+1], Ops[i*2]);
9874 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2+1], Ops[i*2]);
9874 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2+1], Ops[i*2]);
9877 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9877 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9877 Ops[i] = getMOVL(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9880 Ops[i] = getUnpackl(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9880 Ops[i] = getUnpackl(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9880 Ops[i] = getUnpackl(DAG, dl, VT, Ops[i*2], Ops[i*2+1]);
9893 return DAG.getVectorShuffle(VT, dl, Ops[0], Ops[1], MaskVec);
9893 return DAG.getVectorShuffle(VT, dl, Ops[0], Ops[1], MaskVec);
9924 Ops[i] = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, VT, Op.getOperand(i));
9926 Ops[i] = DAG.getUNDEF(VT);
9943 Ops[i] = DAG.getVectorShuffle(VT, dl, Ops[2*i], Ops[(2*i)+1], Mask);
9943 Ops[i] = DAG.getVectorShuffle(VT, dl, Ops[2*i], Ops[(2*i)+1], Mask);
9943 Ops[i] = DAG.getVectorShuffle(VT, dl, Ops[2*i], Ops[(2*i)+1], Mask);
9945 return Ops[0];
10176 if (RepeatedMask[i % LaneSize] < 0)
10178 RepeatedMask[i % LaneSize] = LocalM;
10179 else if (RepeatedMask[i % LaneSize] != LocalM)
10219 if (!isUndefOrZero(RepeatedMask[i % LaneSize]))
10221 RepeatedMask[i % LaneSize] = SM_SentinelZero;
10232 if (RepeatedMask[i % LaneSize] == SM_SentinelUndef)
10234 RepeatedMask[i % LaneSize] = LocalM;
10235 else if (RepeatedMask[i % LaneSize] != LocalM)
10337 Mask[i] = i;
10342 Mask[i] += Size;
10560 PSHUFBMask[i] = DAG.getUNDEF(MVT::i8);
10564 PSHUFBMask[i] = ZeroMask;
10581 PSHUFBMask[i] = DAG.getConstant(M, DL, MVT::i8);
10672 MatchLo &= (M == Unpckl[i]);
10673 MatchHi &= (M == Unpckh[i]);
10933 VMaskOps[i] = AllOnes;
11076 if (RepeatedMask[i] >= 8)
11146 Mask[i] < 0 ? DAG.getUNDEF(MVT::i8)
11147 : DAG.getConstant(Mask[i] < Size ? -1 : 0, DL,
11204 if (BlendMask[Mask[i] % Size] < 0)
11205 BlendMask[Mask[i] % Size] = Mask[i];
11206 else if (BlendMask[Mask[i] % Size] != Mask[i])
11209 PermuteMask[i] = Mask[i] % Size;
11277 PermuteMask[Lane + Elt + 0] = Lane + (2 * (M0 % NumHalfLaneElts));
11279 PermuteMask[Lane + Elt + 1] = Lane + (2 * (M1 % NumHalfLaneElts)) + 1;
11358 PermMask[Lane + Elt] = Lane + ((M + Ofs - RotAmt) % NumEltsPerLane);
11360 PermMask[Lane + Elt] = Lane + ((M - Ofs - RotAmt) % NumEltsPerLane);
11391 V1Mask[i] = Mask[i];
11392 BlendMask[i] = i;
11394 V2Mask[i] = Mask[i] - Size;
11395 BlendMask[i] = i + Size;
11972 ShMask[i] = SafeOffset(SrcIdx) ? SrcIdx : -1;
12069 ShMask[i - AlignToUnpack] = i;
12315 V1Mask[V2Index] = -1;
12343 V2Shuffle[V2Index] = 0;
12832 VMask[(UnpackIdx / 2) * Scale + i % Scale + (UnpackLo ? 0 : Size / 2)] =
12889 PermMask[i] =
13471 auto &DWordPair = DWordPairs[j];
13489 int PSHUFHalfMask[4] = {DWordPairs[0].first, DWordPairs[0].second,
13489 int PSHUFHalfMask[4] = {DWordPairs[0].first, DWordPairs[0].second,
13490 DWordPairs[1].first, DWordPairs[1].second};
13490 DWordPairs[1].first, DWordPairs[1].second};
13923 V1Mask[i] = DAG.getConstant(V1Idx, DL, MVT::i8);
13924 V2Mask[i] = DAG.getConstant(V2Idx, DL, MVT::i8);
14407 ByteClearOps[i] = DAG.getConstant(0xFF, DL, MVT::i8);
14578 V2BlendMask[i] = M - NumElements;
14579 BlendMask[i] = SplitNumElements + i;
14585 V1BlendMask[i] = M;
14586 BlendMask[i] = i;
14610 if (BlendMask[i] >= 0 && BlendMask[i] < SplitNumElements)
14610 if (BlendMask[i] >= 0 && BlendMask[i] < SplitNumElements)
14611 BlendMask[i] = V1BlendMask[i] - (UseLoV1 ? 0 : SplitNumElements);
14611 BlendMask[i] = V1BlendMask[i] - (UseLoV1 ? 0 : SplitNumElements);
14620 if (BlendMask[i] >= SplitNumElements)
14621 BlendMask[i] = V2BlendMask[i] + (UseLoV2 ? SplitNumElements : 0);
14621 BlendMask[i] = V2BlendMask[i] + (UseLoV2 ? SplitNumElements : 0);
14715 if (!isUndefOrEqual(SrcLaneMask[DstLane], SrcLane))
14717 SrcLaneMask[DstLane] = SrcLane;
14719 PermMask[i] = (DstLane * NumEltsPerLane) + (M % NumEltsPerLane);
14725 int SrcLane = SrcLaneMask[DstLane];
14728 LaneMask[(DstLane * NumEltsPerLane) + j] =
14742 else if (SrcLaneMask[i] != 0 && SrcLaneMask[i] != NumLanes)
14742 else if (SrcLaneMask[i] != 0 && SrcLaneMask[i] != NumLanes)
14792 int &M = InLaneMask[i];
14828 if (WidenedMask[0] == 0 && IsHighZero) {
14868 if (WidenedMask[0] < 2 && WidenedMask[1] >= 2) {
14868 if (WidenedMask[0] < 2 && WidenedMask[1] >= 2) {
14869 unsigned PermMask = ((WidenedMask[0] % 2) << 0) |
14870 ((WidenedMask[1] % 2) << 1);
14890 assert((WidenedMask[0] >= 0 || IsLowZero) &&
14891 (WidenedMask[1] >= 0 || IsHighZero) && "Undef half?");
14894 PermMask |= IsLowZero ? 0x08 : (WidenedMask[0] << 0);
14895 PermMask |= IsHighZero ? 0x80 : (WidenedMask[1] << 4);
14951 InLaneMask[i] = (M % NumLaneElts) + Src * NumElts;
14958 LaneSrcs[Lane][0] = Srcs[0];
14959 LaneSrcs[Lane][1] = Srcs[1];
14988 std::swap(LaneSrcs[Lane][0], LaneSrcs[Lane][1]);
14988 std::swap(LaneSrcs[Lane][0], LaneSrcs[Lane][1]);
15004 if (LaneSrcs[Lane][0] >= 0)
15013 if (RepeatMask[i] < 0)
15014 RepeatMask[i] = M % NumLaneElts;
15016 if (RepeatMask[i] < NumElts) {
15017 if (RepeatMask[i] != M % NumLaneElts)
15019 LaneSrcs[Lane][0] = M / NumLaneElts;
15021 if (RepeatMask[i] != ((M % NumLaneElts) + NumElts))
15023 LaneSrcs[Lane][1] = M / NumLaneElts;
15027 if (LaneSrcs[Lane][0] < 0 && LaneSrcs[Lane][1] < 0)
15027 if (LaneSrcs[Lane][0] < 0 && LaneSrcs[Lane][1] < 0)
15033 int Src = LaneSrcs[Lane][0];
15038 NewMask[Lane * NumLaneElts + i] = M;
15050 int Src = LaneSrcs[Lane][1];
15055 NewMask[Lane * NumLaneElts + i] = M;
15067 NewMask[i] = RepeatMask[i % NumLaneElts];
15067 NewMask[i] = RepeatMask[i % NumLaneElts];
15068 if (NewMask[i] < 0)
15071 NewMask[i] += (i / NumLaneElts) * NumLaneElts;
15324 int &R = RepeatMask[j];
15345 BroadcastMask[i + j] = j;
15389 SubLaneMask[Elt] = LocalM;
15414 int M = SubLaneMask[i];
15417 assert((RepeatedSubLaneMask[i] < 0 || RepeatedSubLaneMask[i] == M) &&
15417 assert((RepeatedSubLaneMask[i] < 0 || RepeatedSubLaneMask[i] == M) &&
15419 RepeatedSubLaneMask[i] = M;
15426 Dst2SrcSubLanes[DstSubLane] = SrcSubLane;
15431 if (Dst2SrcSubLanes[DstSubLane] < 0)
15443 int M = RepeatedSubLaneMask[Elt];
15447 RepeatedMask[Idx] = M + (Lane * NumLaneElts);
15455 int SrcSubLane = Dst2SrcSubLanes[i / NumSubLaneElts];
15459 SubLaneMask[i + j] = j + (SrcSubLane * NumSubLaneElts);
16271 if (WidenedMask[0] == 0 && (Zeroable & 0xf0) == 0xf0 &&
16272 (WidenedMask[1] == 1 || (Zeroable & 0x0c) == 0x0c)) {
16302 assert(WidenedMask[i] >= -1);
16303 if (WidenedMask[i] < 0)
16307 if (WidenedMask[i] < 4) {
16308 if (WidenedMask[i] != i) {
16314 if (V2Index >= 0 || WidenedMask[i] != 4) {
16333 assert(WidenedMask[i] >= -1);
16334 if (WidenedMask[i] < 0)
16337 SDValue Op = WidenedMask[i] >= 4 ? V2 : V1;
16346 PermMask |= (WidenedMask[i] % 4) << (i * 2);
17102 ZeroableMask[i] = SM_SentinelZero;
17135 if (WidenedMask[i] == SM_SentinelZero) {
17136 WidenedMask[i] = i + NewNumElts;
18403 Mask[0] = Extract.getConstantOperandVal(1);
19972 EVT VT = VecIns[0].getValueType();
19981 VecIns[i] = DAG.getBitcast(TestVT, VecIns[i]);
19981 VecIns[i] = DAG.getBitcast(TestVT, VecIns[i]);
19987 SDValue LHS = VecIns[Slot];
19988 SDValue RHS = VecIns[Slot + 1];
21651 HiMask[i] = HalfNumElts + i;
21682 Mask[i * Scale + (Scale - 1)] = i;
21752 ShufMask[i] = i + NumElems/2;
23864 SDValue Chain = Results[1];
23868 Results[1] = ecx;
25221 ShufMask[i] = (i / 2) * 2 + ((i % 2) * NumElts) + 1;
26261 if (CstSplatIndex < 0 || EltBits[i] == EltBits[CstSplatIndex]) {
26261 if (CstSplatIndex < 0 || EltBits[i] == EltBits[CstSplatIndex]) {
26274 uint64_t RotateAmt = EltBits[CstSplatIndex].urem(EltSizeInBits);
26295 uint64_t RotateAmt = EltBits[CstSplatIndex].urem(EltSizeInBits);
27861 ConcatOps[0] = Res;
27888 Ops[0] = N->getOperand(0);
27890 Ops[0] = N->getOperand(1);
27952 Ops0[0] = N->getOperand(0);
27997 Ops[i] = DAG.getNode(ISD::TRUNCATE, dl, EltVT, Val);
28106 ShufMask[i] = i + HalfNumElts;
28149 ConcatOps[0] = Res;
31631 int M = Mask[i];
31646 if (Ops[OpIdx].getValueType() != VT) {
31651 DemandedOps[OpIdx].setBit(EltIdx);
31655 if (!DemandedOps[i])
31658 DAG.computeKnownBits(Ops[i], DemandedOps[i], Depth + 1);
31658 DAG.computeKnownBits(Ops[i], DemandedOps[i], Depth + 1);
31768 int M = Mask[i];
31782 if (Ops[OpIdx].getValueType() != VT) {
31786 DemandedOps[OpIdx].setBit(EltIdx);
31790 if (!DemandedOps[i])
31793 DAG.ComputeNumSignBits(Ops[i], DemandedOps[i], Depth + 1);
31793 DAG.ComputeNumSignBits(Ops[i], DemandedOps[i], Depth + 1);
32169 if (RepeatedMask[i] >= 8)
32225 int M0 = RepeatedMask[Offset];
32226 int M1 = RepeatedMask[Offset + 1];
32415 if (isUndefOrZero(Mask[i]))
32589 if (Mask[i] == SM_SentinelZero)
32590 Mask[i] = NumMaskElts + i;
32637 int M = Mask[i];
32644 EltBits[i] = AllOnes;
32720 int M = Mask[i / Ratio];
32751 int M = Mask[i / Ratio];
32826 unsigned WideSizeInBits = WideInputs[0].getValueSizeInBits();
32828 SDValue &Src = WideInputs[i];
32829 unsigned &Offset = Offsets[i];
32858 EVT WideSVT = WideInputs[0].getValueType().getScalarType();
32877 Offsets[i] += i * Scale * NumMaskElts;
32883 M = (M % NumMaskElts) + Offsets[M / NumMaskElts];
32899 SDValue WideRoot = WideInputs[0];
32932 if (!getTargetConstantBitsFromNode(SrcOp, MaskSizeInBits, UndefEltsOps[i],
32933 RawBitsOps[i]))
32963 auto &SrcUndefElts = UndefEltsOps[SrcOpIdx];
32969 auto &SrcEltBits = RawBitsOps[SrcOpIdx];
32970 APInt &Bits = SrcEltBits[SrcMaskIdx];
32977 ConstantBitData[i] = Bits;
33071 if (InputBC == peekThroughBitcasts(Ops[i]))
33075 Ops[InsertionPoint] = Input;
33124 Mask[i] = RootMask[RootIdx];
33137 Mask[i] = RootMaskedIdx;
33143 if (OpMask[OpIdx] < 0) {
33146 Mask[i] = OpMask[OpIdx];
33146 Mask[i] = OpMask[OpIdx];
33153 ? OpMask[OpIdx]
33154 : (OpMask[OpIdx] << OpRatioLog2) + (RootMaskedIdx & (OpRatio - 1));
33157 int InputIdx = OpMask[OpIdx] / (int)OpMask.size();
33158 assert(0 <= OpInputIdx[InputIdx] && "Unknown target shuffle input");
33159 OpMaskedIdx += OpInputIdx[InputIdx] * MaskWidth;
33161 Mask[i] = OpMaskedIdx;
33196 if (Ops[i].getNode()->hasOneUse() ||
33197 SDNode::areOnlyUsersOf(CombinedNodes, Ops[i].getNode()))
33227 std::swap(Ops[0], Ops[1]);
33227 std::swap(Ops[0], Ops[1]);
33271 assert(Mask[j] == Mask[i * LaneElts + j] - (LaneElts * i) &&
33271 assert(Mask[j] == Mask[i * LaneElts + j] - (LaneElts * i) &&
33392 M = VMask[M];
33478 DemandedMask[i] = i;
33644 int M = TargetMask1[SrcIdx];
33647 Op1 = Ops1[M < 4 ? 0 : 1];
33673 int M = TargetMask0[i];
33686 Op0 = Ops0[0];
33689 Op0 = Ops0[1];
33752 if (Mask[0] == Mask[1] && Mask[2] == Mask[3] &&
33752 if (Mask[0] == Mask[1] && Mask[2] == Mask[3] &&
33752 if (Mask[0] == Mask[1] && Mask[2] == Mask[3] &&
33752 if (Mask[0] == Mask[1] && Mask[2] == Mask[3] &&
33765 WordMask[i + NOffset] = Mask[i] + NOffset;
33766 WordMask[i + VOffset] = VMask[i] + VOffset;
33771 MappedMask[i] = 2 * DMask[WordMask[i] / 2] + WordMask[i] % 2;
34605 if (isUndefOrEqual(Mask[0], 2) && isUndefOrEqual(Mask[1], 3)) {
34605 if (isUndefOrEqual(Mask[0], 2) && isUndefOrEqual(Mask[1], 3)) {
34667 OpMask[i] = SM_SentinelUndef;
34680 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, OpInputs[Src]));
34685 if (OpInputs[Src].getValueType() != VT)
34692 int M = OpMask[i] - Lo;
34699 if (SimplifyDemandedVectorElts(OpInputs[Src], SrcElts, SrcUndef, SrcZero,
35034 int M = ShuffleMask[i];
35051 return DAG.getBitcast(VT, ShuffleOps[IdentityOp.countTrailingZeros()]);
35114 int Idx = (Elt > (int)NumOriginalElts) ? SM_SentinelUndef : ShuffleMask[Elt];
35129 SDValue LdNode = (Idx < (int)NumOriginalElts) ? ShuffleOps[0] : ShuffleOps[1];
35129 SDValue LdNode = (Idx < (int)NumOriginalElts) ? ShuffleOps[0] : ShuffleOps[1];
35133 (ShuffleOps.size() > 1 && ShuffleOps[0] == ShuffleOps[1]) ? 2 : 1;
35133 (ShuffleOps.size() > 1 && ShuffleOps[0] == ShuffleOps[1]) ? 2 : 1;
35168 : DAG.getBitcast(OriginalVT, ShuffleOps[1]);
35170 DAG.getBitcast(OriginalVT, ShuffleOps[0]),
35450 Ops[i / 2] = DAG.getNode(ISD::INTRINSIC_WO_CHAIN, DL, MVT::x86mmx, Intrin,
35451 Ops[i], Ops[i + 1]);
35451 Ops[i], Ops[i + 1]);
35455 return Ops[0];
35530 Ops[0] = N0;
35574 if (EltBits[0].countLeadingZeros() >= 32)
35576 DAG.getConstant(EltBits[0].trunc(32), DL, MVT::i32));
35579 APFloat F64(APFloat::IEEEdouble(), EltBits[0]);
35726 Ops[0] = Zext0.getOperand(0);
35729 Ops[0] = Zext1.getOperand(0);
36016 Mask[j] = MaskEnd + j;
36111 Mask[i] = SM_SentinelUndef;
36126 int SrcIdx = Mask[N->getConstantOperandVal(1)];
36136 SDValue SrcOp = Ops[SrcIdx / Mask.size()];
36406 return DAG.getConstant(EltBits[Idx].zextOrSelf(VT.getScalarSizeInBits()),
37913 ShuffleMask[2 * i] = i;
37914 ShuffleMask[2 * i + 1] = i + NumElts;
37921 ShuffleMask[2 * i] = i + NumElts / 2;
37922 ShuffleMask[2 * i + 1] = i + NumElts * 3 / 2;
38457 APInt &Val = EltBits[SrcIdx];
38479 Bits[Lane * NumDstEltsPerLane + Elt] = Val;
38533 EltBits[0].getZExtValue(), DAG);
39163 Ops[0] = SubVec;
39207 unsigned NumElts = SrcOps[0].getValueType().getVectorNumElements();
39209 SDValue Mask = combineBitcastvxi1(DAG, MaskVT, SrcOps[0], dl, Subtarget);
39273 ShuffleMask[VecIdx] =
39274 EltBits[i].isNullValue() ? SM_SentinelZero : VecIdx;
39324 if (EltBits0[i] != ~EltBits1[i])
39324 if (EltBits0[i] != ~EltBits1[i])
39612 unsigned NumElts = SrcOps[0].getValueType().getVectorNumElements();
39614 SDValue Mask = combineBitcastvxi1(DAG, MaskVT, SrcOps[0], dl, Subtarget);
40045 ConcatOps[0] = SatVal;
40526 Ops[0] = StoredVal;
40811 N0 = SrcOps.size() > 0 ? SrcOps[0] : SDValue();
40812 N1 = SrcOps.size() > 1 ? SrcOps[1] : SDValue();
40817 N0 = extract128BitVector(SrcOps[0], 0, DAG, SDLoc(Op));
40818 N1 = extract128BitVector(SrcOps[0], NumElts, DAG, SDLoc(Op));
40880 int LIdx = LMask[i + j], RIdx = RMask[i + j];
40880 int LIdx = LMask[i + j], RIdx = RMask[i + j];
41480 if (!UndefElts[I] && !EltBits[I].isSignMask())
41665 NewOps[i] = getNegatedExpression(Op.getOperand(i), DAG, LegalOperations,
41669 bool NegA = !!NewOps[0];
41670 bool NegB = !!NewOps[1];
41671 bool NegC = !!NewOps[2];
41676 if (!NewOps[i])
41677 NewOps[i] = Op.getOperand(i);
43815 Ops[0] = Sad;
44470 Mask[i] = i;
44473 Mask[i + IdxVal] = i + ExtIdxVal + VecNumElts;
44492 ISD::isBuildVectorAllZeros(SubVectorOps[1].getNode()))
44495 SubVectorOps[0], DAG.getIntPtrConstant(0, dl));
45263 if (matchAsm(AsmPieces[0], {"bswap", "$0"}) ||
45264 matchAsm(AsmPieces[0], {"bswapl", "$0"}) ||
45265 matchAsm(AsmPieces[0], {"bswapq", "$0"}) ||
45266 matchAsm(AsmPieces[0], {"bswap", "${0:q}"}) ||
45267 matchAsm(AsmPieces[0], {"bswapl", "${0:q}"}) ||
45268 matchAsm(AsmPieces[0], {"bswapq", "${0:q}"})) {
45277 (matchAsm(AsmPieces[0], {"rorw", "$$8,", "${0:w}"}) ||
45278 matchAsm(AsmPieces[0], {"rolw", "$$8,", "${0:w}"}))) {
45290 matchAsm(AsmPieces[0], {"rorw", "$$8,", "${0:w}"}) &&
45291 matchAsm(AsmPieces[1], {"rorl", "$$16,", "$0"}) &&
45292 matchAsm(AsmPieces[2], {"rorw", "$$8,", "${0:w}"})) {
45307 if (matchAsm(AsmPieces[0], {"bswap", "%eax"}) &&
45308 matchAsm(AsmPieces[1], {"bswap", "%edx"}) &&
45309 matchAsm(AsmPieces[2], {"xchgl", "%eax,", "%edx"}))
lib/Target/X86/X86ISelLowering.h 1687 ScaledMask[(Scale * i) + s] = M;
1693 ScaledMask[(Scale * i) + s] = (Scale * M) + s;
lib/Target/X86/X86InsertPrefetch.cpp 144 Prefetches[index] = {IID, D};
lib/Target/X86/X86InstrInfo.cpp 2422 if (BranchCond[0].getImm() > X86::LAST_VALID_COND) {
2452 if (CC != BranchCond[0].getImm())
2464 MIB->addOperand(BranchCond[0]); // Condition.
2620 X86::CondCode OldBranchCode = (X86::CondCode)Cond[0].getImm();
2661 Cond[0].setImm(BranchCode);
2734 (Cond[0].getImm() == X86::COND_NE || Cond[0].getImm() == X86::COND_E)) {
2734 (Cond[0].getImm() == X86::COND_NE || Cond[0].getImm() == X86::COND_E)) {
2737 MBP.Predicate = Cond[0].getImm() == X86::COND_NE
5512 MIB.add(AddrOps[i]);
5519 MachineOperand &MO = NewMIs[0]->getOperand(i);
5587 MIB.add(AddrOps[i]);
5995 X86::CondCode CC = static_cast<X86::CondCode>(Cond[0].getImm());
5996 Cond[0].setImm(GetOppositeBranchCondition(CC));
lib/Target/X86/X86InterleavedAccess.cpp 291 TransposedMatrix[i] = Builder.CreateShuffleVector(
313 TransposedMatrix[i] =
351 TransposedMatrix[0] =
353 TransposedMatrix[1] =
563 DecodePALIGNRMask(VT, GroupSize[2 - i], VPAlign[i], false);
565 DecodePALIGNRMask(VT, GroupSize[2] + GroupSize[1], VPAlign2, true, true);
565 DecodePALIGNRMask(VT, GroupSize[2] + GroupSize[1], VPAlign2, true, true);
566 DecodePALIGNRMask(VT, GroupSize[1], VPAlign3, true, true);
599 TransposedMatrix[0] = Builder.CreateShuffleVector(
601 TransposedMatrix[1] = VecElems == 8 ? Vec[2] : TempVec;
602 TransposedMatrix[2] = VecElems == 8 ? TempVec : Vec[2];
618 Index += Mask[i];
648 DecodePALIGNRMask(VT, GroupSize[i], VPAlign[i]);
650 DecodePALIGNRMask(VT, GroupSize[1] + GroupSize[2], VPAlign2, false, true);
650 DecodePALIGNRMask(VT, GroupSize[1] + GroupSize[2], VPAlign2, false, true);
651 DecodePALIGNRMask(VT, GroupSize[1], VPAlign3, false, true);
709 TransposedMatrix[0] = Builder.CreateShuffleVector(IntrVec1, IntrVec2, Mask);
710 TransposedMatrix[2] = Builder.CreateShuffleVector(IntrVec3, IntrVec4, Mask);
715 TransposedMatrix[1] = Builder.CreateShuffleVector(IntrVec1, IntrVec2, Mask);
716 TransposedMatrix[3] = Builder.CreateShuffleVector(IntrVec3, IntrVec4, Mask);
754 Shuffles[i]->replaceAllUsesWith(TransposedVectors[Indices[i]]);
837 Indices.push_back(Mask[i]);
lib/Target/X86/X86MCInstLower.cpp 1651 if (ShuffleMask[i] >= e)
1652 ShuffleMask[i] -= e;
1678 if (ShuffleMask[i] == SM_SentinelZero) {
1685 bool isSrc1 = ShuffleMask[i] < (int)e;
1689 while (i != e && ShuffleMask[i] != SM_SentinelZero &&
1690 (ShuffleMask[i] < (int)e) == isSrc1) {
1695 if (ShuffleMask[i] == SM_SentinelUndef)
1698 CS << ShuffleMask[i] % (int)e;
lib/Target/X86/X86RegisterBankInfo.cpp 118 OpRegBankIdx[Idx] = PMI_None;
120 OpRegBankIdx[Idx] = getPartialMappingIdx(MRI.getType(MO.getReg()), isFP);
138 OpdsMapping[Idx] = Mapping;
219 OpRegBankIdx[0] = getPartialMappingIdx(Ty0, /* isFP */ FirstArgIsFP);
220 OpRegBankIdx[1] = getPartialMappingIdx(Ty1, /* isFP */ SecondArgIsFP);
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp 66 RawMask[i] = 0;
71 RawMask[i] = Elt->getValue().getZExtValue();
103 RawMask[i] = 0;
108 RawMask[i] = EltBits.getZExtValue();
136 uint64_t Element = RawMask[i];
177 uint64_t Element = RawMask[i];
217 uint64_t Selector = RawMask[i];
279 uint64_t Element = RawMask[i];
316 int Index = RawMask[i] & (NumElts - 1);
342 int Index = RawMask[i] & (NumElts*2 - 1);
lib/Target/X86/X86SpeculativeLoadHardening.cpp 2000 HardenOpRegs[0]->getReg() != HardenOpRegs[1]->getReg()) &&
2000 HardenOpRegs[0]->getReg() != HardenOpRegs[1]->getReg()) &&
lib/Target/X86/X86VZeroUpper.cpp 188 if (!BlockStates[MBB.getNumber()].AddedToDirtySuccessors) {
190 BlockStates[MBB.getNumber()].AddedToDirtySuccessors = true;
200 BlockStates[MBB.getNumber()].FirstUnguardedCall = MBB.end();
261 BlockStates[MBB.getNumber()].FirstUnguardedCall = MI;
275 BlockStates[MBB.getNumber()].ExitState = CurState;
330 BlockState &BBState = BlockStates[MBB.getNumber()];
lib/Target/XCore/XCoreFrameLowering.cpp 196 assert(SpillList[i].Offset % 4 == 0 && "Misaligned stack offset");
197 assert(SpillList[i].Offset <= 0 && "Unexpected positive stack offset");
198 int OffsetFromTop = - SpillList[i].Offset/4;
202 BuildMI(MBB, MBBI, dl, TII.get(Opcode), SpillList[i].Reg)
204 .addMemOperand(getFrameIndexMMO(MBB, SpillList[i].FI,
281 assert(SpillList[i].Offset % 4 == 0 && "Misaligned stack offset");
282 assert(SpillList[i].Offset <= 0 && "Unexpected positive stack offset");
283 int OffsetFromTop = - SpillList[i].Offset/4;
288 MBB.addLiveIn(SpillList[i].Reg);
290 .addReg(SpillList[i].Reg, RegState::Kill)
292 .addMemOperand(getFrameIndexMMO(MBB, SpillList[i].FI,
295 unsigned DRegNum = MRI->getDwarfRegNum(SpillList[i].Reg, true);
296 EmitCfiOffset(MBB, MBBI, dl, TII, DRegNum, SpillList[i].Offset);
334 MRI->getDwarfRegNum(SpillList[0].Reg, true),
335 SpillList[0].Offset);
337 MRI->getDwarfRegNum(SpillList[1].Reg, true),
338 SpillList[1].Offset);
lib/Target/XCore/XCoreISelLowering.cpp 1085 int offset = ResultMemLocs[i].first;
1086 unsigned index = ResultMemLocs[i].second;
1090 InVals[index] = load;
1142 CCValAssign &VA = ArgLocs[i];
1187 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
1188 RegsToPass[i].second, InFlag);
1212 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
1213 RegsToPass[i].second.getValueType()));
1296 CCValAssign &VA = ArgLocs[i];
1469 CCValAssign &VA = RVLocs[i];
1497 CCValAssign &VA = RVLocs[i];
1509 RetOps[0] = Chain; // Update chain.
lib/Target/XCore/XCoreInstrInfo.cpp 406 Cond[0].setImm(GetOppositeBranchCondition((XCore::CondCode)Cond[0].getImm()));
406 Cond[0].setImm(GetOppositeBranchCondition((XCore::CondCode)Cond[0].getImm()));
lib/Target/XCore/XCoreLowerThreadLocal.cpp 71 Elements[i] = OriginalInitializer;
205 User *U = Users[I];
230 MadeChange |= lowerGlobal(ThreadLocalGlobals[I]);
lib/TextAPI/MachO/PackedVersion.cpp 36 if (getAsUnsignedInteger(Parts[0], 10, Num))
45 if (getAsUnsignedInteger(Parts[i], 10, Num))
71 if (getAsUnsignedInteger(Parts[0], 10, Num))
85 if (getAsUnsignedInteger(Parts[i], 10, Num))
lib/Transforms/Coroutines/CoroFrame.cpp 96 return Block[Mapping.blockToIndex(BB)];
185 auto &B = Block[I];
224 auto &B = Block[I];
231 auto &S = Block[SuccNo];
lib/Transforms/Coroutines/CoroSplit.cpp 441 EVI->replaceAllUsesWith(Args[EVI->getIndices().front()]);
451 Agg = Builder.CreateInsertValue(Agg, Args[I], I);
1144 if (simplifySuspendPoint(cast<CoroSuspendInst>(S[I]), Shape.CoroBegin)) {
1147 std::swap(S[I], S[N]);
1147 std::swap(S[I], S[N]);
1242 auto Suspend = cast<CoroSuspendRetconInst>(Shape.CoroSuspends[i]);
1285 Builder.CreateBitCast(ReturnPHIs[0], CastedContinuationTy);
1294 RetV = Builder.CreateInsertValue(RetV, ReturnPHIs[I], I);
1302 ReturnPHIs[0]->addIncoming(Continuation, SuspendBB);
1305 ReturnPHIs[NextPHIIndex++]->addIncoming(&*VUse, SuspendBB);
1311 auto Suspend = Shape.CoroSuspends[i];
1312 auto Clone = Clones[i];
lib/Transforms/Coroutines/Coroutines.cpp 481 std::swap(CoroSuspends[FinalSuspendIndex], CoroSuspends.back());
lib/Transforms/IPO/Attributor.cpp 3226 Tracker.valueMayBeCaptured(PotentialCopies[Idx++]);
4531 AbstractAttribute *ChangedAA = ChangedAAs[u];
4638 Function *F = InternalFns[u];
4652 InternalFns[u] = nullptr;
lib/Transforms/IPO/BlockExtractor.cpp 125 LineSplit[1].split(BBNames, ';', /*MaxSplit=*/-1,
129 BlocksByName.push_back({LineSplit[0], {BBNames.begin(), BBNames.end()}});
188 GroupsOfBlocks[NextGroupIdx].push_back(&*Res);
209 CodeExtractorAnalysisCache CEAC(*BBs[0]->getParent());
lib/Transforms/IPO/ConstantMerge.cpp 236 GlobalVariable *Old = SameContentReplacements[i].first;
237 GlobalVariable *New = SameContentReplacements[i].second;
lib/Transforms/IPO/DeadArgumentElimination.cpp 312 unsigned ArgNo = UnusedArgs[I];
588 if (RetValLiveness[Idx] != Live) {
589 RetValLiveness[Idx] = SurveyUses(Ext, MaybeLiveRetUses[Idx]);
589 RetValLiveness[Idx] = SurveyUses(Ext, MaybeLiveRetUses[Idx]);
590 if (RetValLiveness[Idx] == Live)
603 if (RetValLiveness[i] != Live)
604 MaybeLiveRetUses[i].append(MaybeLiveAggregateUses.begin(),
619 MarkValue(CreateRet(&F, i), RetValLiveness[i], MaybeLiveRetUses[i]);
619 MarkValue(CreateRet(&F, i), RetValLiveness[i], MaybeLiveRetUses[i]);
757 ArgAlive[i] = true;
804 NewRetIdxs[i] = RetTypes.size() - 1;
897 if (ArgAlive[i]) {
982 if (NewRetIdxs[i] != -1) {
987 V = ExtractValueInst::Create(New, NewRetIdxs[i], "newret",
1017 if (ArgAlive[i]) {
1050 if (NewRetIdxs[i] != -1) {
1057 RetVal = InsertValueInst::Create(RetVal, EV, NewRetIdxs[i],
lib/Transforms/IPO/FunctionAttrs.cpp 772 ArgumentSCC[0]->Uses[0] == ArgumentSCC[0]) {
lib/Transforms/IPO/GlobalOpt.cpp 253 if (IsSafeComputationToRemove(Dead[i].first, GetTLI)) {
254 Dead[i].second->eraseFromParent();
255 Instruction *I = Dead[i].first;
2406 Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1);
2406 Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1);
2421 Elts[CI->getZExtValue()] =
2422 EvaluateStoreInto(Elts[CI->getZExtValue()], Val, Addr, OpNo+1);
2561 Elts[CI->getZExtValue()] = Val;
lib/Transforms/IPO/IPConstantPropagation.cpp 82 if (ArgumentConstants[i].second)
104 ArgumentConstants[i].second = true;
108 if (C && ArgumentConstants[i].first == nullptr) {
109 ArgumentConstants[i].first = C; // First constant seen.
110 } else if (C && ArgumentConstants[i].first == C) {
119 ArgumentConstants[i].second = true;
130 if (ArgumentConstants[i].second || AI->use_empty() ||
134 Value *V = ArgumentConstants[i].first;
182 Value *RV = RetVals[i];
202 RetVals[i] = V;
212 RetVals[i] = nullptr;
239 Value* New = RetVals[0];
263 Value *New = RetVals[index];
lib/Transforms/IPO/Inliner.cpp 185 AllocaInst *AI = IFI.StaticAllocas[AllocaNo];
248 IFI.StaticAllocas[AllocaNo] = nullptr;
602 if (Function *F = CallSites[i].first.getCalledFunction())
604 std::swap(CallSites[i--], CallSites[--FirstCallInSCC]);
604 std::swap(CallSites[i--], CallSites[--FirstCallInSCC]);
619 CallSite CS = CallSites[CSi].first;
640 InlineHistoryID = CallSites[CSi].second;
743 CallSites[CSi] = CallSites.back();
977 Function &F = *Calls[i].first.getCaller();
982 setInlineRemark(Calls[i].first, "optnone attribute");
1025 for (; i < (int)Calls.size() && Calls[i].first.getCaller() == &F; ++i) {
1028 std::tie(CS, InlineHistoryID) = Calls[i];
lib/Transforms/IPO/LoopExtractor.cpp 120 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) {
134 if (ExitBlocks[i]->isEHPad()) {
lib/Transforms/IPO/PartialInlining.cpp 637 assert(OutliningInfo->Entries[0] == &F->front() &&
lib/Transforms/IPO/SampleProfile.cpp 1195 SingleEdge = std::make_pair(Predecessors[BB][0], BB);
1205 SingleEdge = std::make_pair(BB, Successors[BB][0]);
lib/Transforms/IPO/WholeProgramDevirt.cpp 1629 (LoadedPtrs.size() == 1 && !HasNonCallUses) ? LoadedPtrs[0] : CI);
1640 IRBuilder<> CallB((Preds.size() == 1 && !HasNonCallUses) ? Preds[0] : CI);
lib/Transforms/InstCombine/InstCombineAddSub.cpp 536 const FAddend *ThisAddend = Addends[SymIdx];
553 const FAddend *T = Addends[SameSymIdx];
557 Addends[SameSymIdx] = nullptr;
565 R = *SimpVect[StartIdx];
567 R += *SimpVect[Idx];
lib/Transforms/InstCombine/InstCombineCasts.cpp 1919 if (Elements[ElementIndex])
1922 Elements[ElementIndex] = V;
2022 if (!Elements[i]) continue; // Unset element.
2024 Result = IC.Builder.CreateInsertElement(Result, Elements[i],
lib/Transforms/InstCombine/InstCombineInternal.h 291 Out[i] = isa<UndefValue>(C) ? SafeC : C;
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 411 eraseInstFromFunction(*ToDelete[i]);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 1018 FoldUDivOperandCb Action = UDivActions[i].FoldAction;
1019 Value *ActionOp1 = UDivActions[i].OperandToFold;
1028 Value *SelectRHS = UDivActions[SelectRHSIdx].FoldResult;
1029 size_t SelectLHSIdx = UDivActions[i].SelectLHSIdx;
1030 Value *SelectLHS = UDivActions[SelectLHSIdx].FoldResult;
1040 UDivActions[i].FoldResult = Inst;
1453 Elts[i] = C->getAggregateElement(i); // Handle undef, etc.
1454 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elts[i])) {
1456 Elts[i] = cast<ConstantInt>(ConstantExpr::getNeg(RHS));
lib/Transforms/InstCombine/InstCombinePHI.cpp 193 if (AvailablePtrVals[i] !=
236 auto *IncomingVal = AvailablePtrVals[i];
431 FixedOperands[op] = nullptr; // Needs a PHI.
451 if (FixedOperands[i]) continue; // operand doesn't need a phi.
458 OperandPhis[i] = NewPN;
459 FixedOperands[i] = NewPN;
471 if (PHINode *OpPhi = OperandPhis[op])
476 Value *Base = FixedOperands[0];
715 NewPhi->addIncoming(NewIncoming[i], Phi.getIncomingBlock(i));
967 PHINode *PN = PHIsToSlice[PHIId];
1027 << "AND USER PHI #" << i << ": " << *PHIsToSlice[i] << '\n';);
1038 unsigned PHIId = PHIUsers[UserI].PHIId;
1039 PHINode *PN = PHIsToSlice[PHIId];
1040 unsigned Offset = PHIUsers[UserI].Shift;
1041 Type *Ty = PHIUsers[UserI].Inst->getType();
1114 replaceInstUsesWith(*PHIUsers[UserI].Inst, EltPHI);
1121 replaceInstUsesWith(*PHIsToSlice[i], Undef);
lib/Transforms/InstCombine/InstCombineShifts.cpp 150 NewOps[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC;
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 1039 OverloadTys[0] = NewTy;
1047 Args[DMaskIdx] = NewDMask;
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 484 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext()));
500 Mask[InsertedIdx % NumElts] =
505 Mask[InsertedIdx % NumElts] =
651 Mask[i] = ConstantInt::get(Type::getInt32Ty(V->getContext()), i);
656 Mask[InsertedIdx % NumElts] =
781 ElementPresent[Idx->getZExtValue()] = true;
808 if (!ElementPresent[i])
809 Mask[i] = UndefValue::get(Int32Ty);
842 NewMaskVec[i] = i == IdxC ? Zero : Shuf->getMask()->getAggregateElement(i);
881 NewMaskVec[i] = OldMask->getAggregateElement(i);
889 NewMaskVec[i] = NewMaskEltC;
967 NewShufElts[I] = InsEltScalar;
969 NewMaskElts[I] = ConstantInt::get(Int32Ty, InsEltIndex + NumElts);
972 NewShufElts[I] = ShufConstVec->getAggregateElement(I);
973 NewMaskElts[I] = Mask->getAggregateElement(I);
1001 if (!Values[I]) {
1002 assert(!Mask[I]);
1003 Values[I] = *ValI;
1004 Mask[I] = ConstantInt::get(Type::getInt32Ty(InsElt.getContext()),
1011 if (!Values[I]) {
1012 assert(!Mask[I]);
1013 Values[I] = UndefValue::get(InsElt.getType()->getElementType());
1014 Mask[I] = ConstantInt::get(Type::getInt32Ty(InsElt.getContext()), I);
1422 if (static_cast<unsigned>(Mask[I]) != BegIdx + I)
1551 NewMask[i] = Mask->getAggregateElement(i);
1751 NewMask[i] = isa<UndefValue>(ExtractMaskElt) ? ExtractMaskElt : MaskElt;
1780 if (Mask[i] == -1)
1784 if (Mask[i] == NumElts + i)
1788 if (NewInsIndex != -1 || Mask[i] != IndexC->getSExtValue())
1860 if (Mask[i] == -1)
1865 if (Mask[i] < WideElts) {
1866 if (Shuffle0->getMaskValue(Mask[i]) == -1)
1869 if (Shuffle1->getMaskValue(Mask[i] - WideElts) == -1)
1876 if (Mask[i] < WideElts) {
1877 assert(Mask[i] < NarrowElts && "Unexpected shuffle mask");
1878 NewMask[i] = ConstantInt::get(I32Ty, Mask[i]);
1878 NewMask[i] = ConstantInt::get(I32Ty, Mask[i]);
1880 assert(Mask[i] < (WideElts + NarrowElts) && "Unexpected shuffle mask");
1881 NewMask[i] = ConstantInt::get(I32Ty, Mask[i] - (WideElts - NarrowElts));
1881 NewMask[i] = ConstantInt::get(I32Ty, Mask[i] - (WideElts - NarrowElts));
1904 if (Mask[i] < 0) {
1909 if ((Mask[i] >= (int)e && isa<UndefValue>(RHS)) ||
1910 (Mask[i] < (int)e && isa<UndefValue>(LHS))) {
1911 Mask[i] = -1; // Turn into undef.
1914 Mask[i] = Mask[i] % e; // Force to LHS.
1914 Mask[i] = Mask[i] % e; // Force to LHS.
1915 Elts.push_back(ConstantInt::get(Int32Ty, Mask[i]));
2031 ShuffleMask[I] = ConstantInt::get(Int32Ty, Idx);
2165 if (Mask[i] < 0) {
2168 } else if (Mask[i] < (int)LHSWidth) {
2174 eltMask = LHSMask[Mask[i]];
2174 eltMask = LHSMask[Mask[i]];
2180 eltMask = Mask[i];
2191 eltMask = RHSMask[Mask[i]-LHSWidth];
2191 eltMask = RHSMask[Mask[i]-LHSWidth];
2200 eltMask = Mask[i]-LHSWidth;
2227 if (newMask[i] < 0) {
2230 Elts.push_back(ConstantInt::get(Int32Ty, newMask[i]));
lib/Transforms/InstCombine/InstructionCombining.cpp 1510 if (ShMask[I] >= 0) {
1511 assert(ShMask[I] < (int)NumElts && "Not expecting narrowing shuffle");
1512 Constant *NewCElt = NewVecC[ShMask[I]];
1512 Constant *NewCElt = NewVecC[ShMask[I]];
1524 NewVecC[ShMask[I]] = CElt;
1524 NewVecC[ShMask[I]] = CElt;
2173 ? Builder.CreateInBoundsGEP(SrcEltType, SrcOp, {Ops[1], Ops[2]})
2173 ? Builder.CreateInBoundsGEP(SrcEltType, SrcOp, {Ops[1], Ops[2]})
2174 : Builder.CreateGEP(SrcEltType, SrcOp, {Ops[1], Ops[2]});
2174 : Builder.CreateGEP(SrcEltType, SrcOp, {Ops[1], Ops[2]});
2379 if (!Users[i])
2382 Instruction *I = cast<Instruction>(&*Users[i]);
2390 Users[i] = nullptr; // Skip examining in the next loop.
2395 if (!Users[i])
2398 Instruction *I = cast<Instruction>(&*Users[i]);
2968 if (!isa<ArrayType>(NewClauses[j]->getType()))
2975 if (shorter_filter(NewClauses[k+1], NewClauses[k])) {
2975 if (shorter_filter(NewClauses[k+1], NewClauses[k])) {
3001 Value *Filter = NewClauses[i];
3010 Value *LFilter = NewClauses[j];
3093 NLI->addClause(NewClauses[i]);
3190 TmpUser[0]->insertBefore(&*InsertPos);
3198 TmpUser[0]->insertBefore(DII);
lib/Transforms/Instrumentation/AddressSanitizer.cpp 2076 MetadataGlobals[i] = Metadata;
2148 LivenessGlobals[i] = Liveness;
2256 GlobalVariable *G = GlobalsToChange[i];
2323 NewGlobals[i] = NewGlobal;
2380 Initializers[i] = Initializer;
2387 GlobalVariable *G = NewGlobals[i];
2994 Instruction *InsBefore = AllocaVec[0];
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 183 Region *Parent = RegInfos[0].R->getParent();
854 AddSelects(Result->RegInfos[0]);
888 RegInfo &RI = Scope->RegInfos[0];
1175 if (RI.R == RegInfos[0].R) {
1243 CHRScope *Split = Splits[I];
1244 DenseSet<Value *> &SplitConditionValues = SplitsConditionValues[I];
1245 Instruction *SplitInsertPoint = SplitsInsertPoints[I];
1259 CHRScope *Split = Splits[I];
1260 if (SplitsSplitFromOuter[I]) {
1263 Split->BranchInsertPoint = SplitsInsertPoints[I];
1264 CHR_DEBUG(dbgs() << "BranchInsertPoint " << *SplitsInsertPoints[I]
1353 Scope->RegInfos[0].R->getEntry()->getTerminator())
1437 return Scope1->RegInfos[0].R->getDepth() < Scope2->RegInfos[0].R->getDepth();
1437 return Scope1->RegInfos[0].R->getDepth() < Scope2->RegInfos[0].R->getDepth();
1699 Region *FirstRegion = Scope->RegInfos[0].R;
1701 Region *LastRegion = Scope->RegInfos[Scope->RegInfos.size() - 1].R;
1787 NewBlocks[0]->getIterator(), F.end());
1791 for (Instruction &I : *NewBlocks[i])
1876 CHR_DEBUG(dbgs() << "CHR branch bias " << Weights[0] << ":" << Weights[1]
1876 CHR_DEBUG(dbgs() << "CHR branch bias " << Weights[0] << ":" << Weights[1]
lib/Transforms/Instrumentation/GCOVProfiling.cpp 267 write(Lines[i]);
382 EDOS << Block.OutEdges[i]->Number;
431 << Block.OutEdges[i]->Number << "\n");
432 write(Block.OutEdges[i]->Number);
996 uint32_t CfgChecksum = FileChecksums.empty() ? 0 : FileChecksums[i];
1006 uint32_t FuncChecksum = Funcs.empty() ? 0 : Funcs[j]->getFuncChecksum();
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 1051 auto *AI = Allocas[N];
lib/Transforms/Instrumentation/MemorySanitizer.cpp 3958 CallInst *OrigInst = VAStartInstrumentationList[i];
4101 CallInst *OrigInst = VAStartInstrumentationList[i];
4295 CallInst *OrigInst = VAStartInstrumentationList[i];
4538 CallInst *OrigInst = VAStartInstrumentationList[i];
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 1318 EdgeCounts[SuccNum] = EdgeCount;
1726 BranchProbability BP(scaleBranchCount(Weights[0], Scale),
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 311 CaseCounts[0] = RemainCount;
lib/Transforms/Scalar/CallSiteSplitting.cpp 198 if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) ||
199 isa<IndirectBrInst>(Preds[1]->getTerminator()))
371 Splits[i]->getTerminator()->eraseFromParent();
372 DTU.applyUpdatesPermissive({{DominatorTree::Delete, Splits[i], TailBB}});
454 return {{Preds[0], {}}, {Preds[1], {}}};
454 return {{Preds[0], {}}, {Preds[1], {}}};
463 if (Preds[0] == Preds[1])
463 if (Preds[0] == Preds[1])
lib/Transforms/Scalar/ConstantHoisting.cpp 251 BasicBlock *Node = Orders[Idx++];
lib/Transforms/Scalar/Float2Int.cpp 467 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType());
471 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType());
477 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName());
477 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName());
482 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy);
486 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy);
490 NewV = IRB.CreateNeg(NewOperands[0], I->getName());
497 NewOperands[0], NewOperands[1],
497 NewOperands[0], NewOperands[1],
lib/Transforms/Scalar/GVN.cpp 285 if (e.varargs[0] > e.varargs[1])
285 if (e.varargs[0] > e.varargs[1])
286 std::swap(e.varargs[0], e.varargs[1]);
286 std::swap(e.varargs[0], e.varargs[1]);
293 if (e.varargs[0] > e.varargs[1]) {
293 if (e.varargs[0] > e.varargs[1]) {
294 std::swap(e.varargs[0], e.varargs[1]);
294 std::swap(e.varargs[0], e.varargs[1]);
319 if (e.varargs[0] > e.varargs[1]) {
319 if (e.varargs[0] > e.varargs[1]) {
320 std::swap(e.varargs[0], e.varargs[1]);
320 std::swap(e.varargs[0], e.varargs[1]);
736 gvn.getDominatorTree().properlyDominates(ValuesPerBlock[0].BB,
738 assert(!ValuesPerBlock[0].AV.isUndefValue() &&
740 return ValuesPerBlock[0].MaterializeAdjustedValue(LI, gvn);
988 BasicBlock *DepBB = Deps[i].getBB();
989 MemDepResult DepInfo = Deps[i].getResult();
1006 Value *Address = Deps[i].getAddress();
1330 !Deps[0].getResult().isDef() && !Deps[0].getResult().isClobber()) {
1330 !Deps[0].getResult().isDef() && !Deps[0].getResult().isClobber()) {
1669 Exp.varargs[i] = phiTranslate(Pred, PhiBlock, Exp.varargs[i], Gvn);
1669 Exp.varargs[i] = phiTranslate(Pred, PhiBlock, Exp.varargs[i], Gvn);
1674 if (Exp.varargs[0] > Exp.varargs[1]) {
1674 if (Exp.varargs[0] > Exp.varargs[1]) {
1675 std::swap(Exp.varargs[0], Exp.varargs[1]);
1675 std::swap(Exp.varargs[0], Exp.varargs[1]);
2386 if (Value *V = predMap[i].first) {
2390 Phi->addIncoming(V, predMap[i].second);
lib/Transforms/Scalar/GVNSink.cpp 716 Instruction *I0 = NewInsts[0];
747 if (isMemoryInst(NewInsts[0]))
862 I0->getOperandUse(O).set(NewOperands[O]);
lib/Transforms/Scalar/IndVarSimplify.cpp 513 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i]))
836 BasicBlock *ExitBlock = ExitBlocks[0];
839 Value *Incoming = P->getIncomingValueForBlock(ExitingBlocks[0]);
2890 if (!DT->dominates(ExitingBlocks[i-1], ExitingBlocks[i]))
2890 if (!DT->dominates(ExitingBlocks[i-1], ExitingBlocks[i]))
2896 if (BadExit(ExitingBlocks[i])) {
lib/Transforms/Scalar/InferAddressSpaces.cpp 471 return new BitCastInst(NewPointerOperands[0], NewPtrType);
478 NewPHI->addIncoming(NewPointerOperands[OperandNo],
486 GEP->getSourceElementType(), NewPointerOperands[0],
493 return SelectInst::Create(I->getOperand(0), NewPointerOperands[1],
494 NewPointerOperands[2], "", nullptr, I);
572 NewOperands[0]->getType()->getPointerElementType());
lib/Transforms/Scalar/JumpThreading.cpp 1783 PredBBs[0] = PredBB;
2141 return NewBBs[0];
2209 BPI->setEdgeProbability(BB, I, BBSuccProbs[I]);
lib/Transforms/Scalar/LICM.cpp 1795 BasicBlock *ExitBlock = LoopExitBlocks[i];
1799 Instruction *InsertPos = LoopInsertPts[i];
1809 MemoryAccess *MSSAInsertPoint = MSSAInsertPts[i];
1818 MSSAInsertPts[i] = NewMemAcc;
2097 LoopUses[0])
2106 DebugLoc DL = LoopUses[0]->getDebugLoc();
lib/Transforms/Scalar/LoopDeletion.cpp 54 Value *incoming = P.getIncomingValueForBlock(ExitingBlocks[0]);
lib/Transforms/Scalar/LoopDistribute.cpp 516 int &Partition = PtrToPartitions[I];
644 ++Accesses[Dep.Source].NumUnsafeDependencesStartOrEnd;
645 --Accesses[Dep.Destination].NumUnsafeDependencesStartOrEnd;
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 622 if (!DT->dominates(BB, ExitBlocks[i]))
673 assert(SL[i]->isSimple() && "Expected only non-volatile stores.");
675 Value *FirstStoredVal = SL[i]->getValueOperand();
676 Value *FirstStorePtr = SL[i]->getPointerOperand();
680 unsigned FirstStoreSize = DL->getTypeStoreSize(SL[i]->getValueOperand()->getType());
684 Heads.insert(SL[i]);
711 assert(SL[k]->isSimple() && "Expected only non-volatile stores.");
712 Value *SecondStorePtr = SL[k]->getPointerOperand();
720 Value *SecondStoredVal = SL[k]->getValueOperand();
732 if (isConsecutiveAccess(SL[i], SL[k], *DL, *SE, false)) {
732 if (isConsecutiveAccess(SL[i], SL[k], *DL, *SE, false)) {
744 Tails.insert(SL[k]);
745 Heads.insert(SL[i]);
746 ConsecutiveChain[SL[i]] = SL[k];
746 ConsecutiveChain[SL[i]] = SL[k];
lib/Transforms/Scalar/LoopInterchange.cpp 537 std::swap(LoopList[i - 1], LoopList[i]);
537 std::swap(LoopList[i - 1], LoopList[i]);
555 Loop *InnerLoop = LoopList[InnerLoopId];
556 Loop *OuterLoop = LoopList[OuterLoopId];
lib/Transforms/Scalar/LoopRerollPass.cpp 280 if (PossibleReds[i].size() % Scale == 0) {
281 PossibleRedLastSet.insert(PossibleReds[i].getReducedValue());
282 PossibleRedPHISet.insert(PossibleReds[i].getPHI());
284 PossibleRedSet.insert(PossibleReds[i].getPHI());
285 PossibleRedIdx[PossibleReds[i].getPHI()] = i;
286 for (Instruction *J : PossibleReds[i]) {
897 const SCEV *StepSCEV = SE->getMinusSCEV(SE->getSCEV(DRS.Roots[0]), ADR);
904 const SCEV *NewStepSCEV = SE->getMinusSCEV(SE->getSCEV(DRS.Roots[i]),
905 SE->getSCEV(DRS.Roots[i-1]));
987 if (V.Roots.empty() || V.Roots.size() != RootSets[0].Roots.size()) {
995 Scale = RootSets[0].Roots.size() + 1;
1364 if (DRS.Roots[Iter-1] == (Instruction*) Op2) {
1431 IncrExprs.push_back(SE->getMinusSCEV(SE->getSCEV(DRS.Roots[0]), IVSCEV));
1450 replaceIV(RootSets[i], StartExprs[i], IncrExprs[i]);
1450 replaceIV(RootSets[i], StartExprs[i], IncrExprs[i]);
1450 replaceIV(RootSets[i], StartExprs[i], IncrExprs[i]);
1510 for (Instruction *J : PossibleReds[i]) {
1516 !PossibleReds[i].getReducedValue()->isAssociative()) {
1554 for (int e = PossibleReds[i].size(); j != e; ++j)
1555 if (PossibleRedIter[PossibleReds[i][j]] != 0) {
1562 for (User *U : PossibleReds[i].getReducedValue()->users()) {
1567 User->replaceUsesOfWith(PossibleReds[i].getReducedValue(),
1568 PossibleReds[i][j]);
lib/Transforms/Scalar/LoopStrengthReduce.cpp 2582 LSRUse &LU = Uses[LUIdx];
2592 LSRUse &LU = Uses[LUIdx];
2616 LSRUse &LU = Uses[LUIdx];
2813 const SCEV *HeadExpr = SE.getSCEV(getWideOperand(Incs[0].IVOperand));
2842 LLVM_DEBUG(dbgs() << "Chain: " << *Chain.Incs[0].UserInst << " users:\n";
2856 && SE.getSCEV(Chain.tailUserInst()) == Chain.Incs[0].IncExpr) {
2897 LLVM_DEBUG(dbgs() << "Chain: " << *Chain.Incs[0].UserInst << " Cost: " << cost
2917 IVChain &Chain = IVChainVec[ChainIdx];
2970 IVChainVec[ChainIdx].add(IVInc(UserInst, IVOper, LastIncExpr));
2972 IVChain &Chain = IVChainVec[ChainIdx];
2974 SmallPtrSet<Instruction*,4> &NearUsers = ChainUsersVec[ChainIdx].NearUsers;
2977 ChainUsersVec[ChainIdx].FarUsers.insert(NearUsers.begin(),
3012 ChainUsersVec[ChainIdx].FarUsers.erase(UserInst);
3065 ChainUsersVec[ChainIdx].NearUsers.erase(&I);
3093 if (!isProfitableChain(IVChainVec[UsersIdx],
3094 ChainUsersVec[UsersIdx].FarUsers, SE))
3098 IVChainVec[ChainIdx] = IVChainVec[UsersIdx];
3098 IVChainVec[ChainIdx] = IVChainVec[UsersIdx];
3099 FinalizeChain(IVChainVec[ChainIdx]);
3107 LLVM_DEBUG(dbgs() << "Final Chain: " << *Chain.Incs[0].UserInst << "\n");
3310 LSRUse &LU = Uses[LUIdx];
3462 LSRUse &LU = Uses[LUIdx];
3612 LU.AccessTy, InnerAddOps[0], Base.getNumRegs() > 1))
3634 F.BaseRegs[Idx] = InnerSum;
3756 F.BaseRegs[Idx] = G;
3792 F.deleteBaseReg(F.BaseRegs[Idx]);
3797 F.BaseRegs[Idx] = NewG;
3841 F.BaseRegs[Idx] = G;
3923 F.BaseRegs[i] = SE.getMulExpr(F.BaseRegs[i], FactorS);
3923 F.BaseRegs[i] = SE.getMulExpr(F.BaseRegs[i], FactorS);
3924 if (getExactSDiv(F.BaseRegs[i], FactorS, SE) != Base.BaseRegs[i])
3924 if (getExactSDiv(F.BaseRegs[i], FactorS, SE) != Base.BaseRegs[i])
3993 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(Base.BaseRegs[i]);
4004 F.deleteBaseReg(F.BaseRegs[i]);
4186 LSRUse &LU = Uses[LUIdx];
4196 Formula F = LU.Formulae[L];
4231 const SCEV *BaseReg = F.BaseRegs[N];
4246 NewF.BaseRegs[N] = SE.getAddExpr(NegImmS, BaseReg);
4277 LSRUse &LU = Uses[LUIdx];
4279 GenerateReassociations(LU, LUIdx, LU.Formulae[i]);
4281 GenerateCombinations(LU, LUIdx, LU.Formulae[i]);
4284 LSRUse &LU = Uses[LUIdx];
4286 GenerateSymbolicOffsets(LU, LUIdx, LU.Formulae[i]);
4288 GenerateConstantOffsets(LU, LUIdx, LU.Formulae[i]);
4290 GenerateICmpZeroScales(LU, LUIdx, LU.Formulae[i]);
4292 GenerateScales(LU, LUIdx, LU.Formulae[i]);
4295 LSRUse &LU = Uses[LUIdx];
4297 GenerateTruncates(LU, LUIdx, LU.Formulae[i]);
4325 LSRUse &LU = Uses[LUIdx];
4332 Formula &F = LU.Formulae[FIdx];
4372 Formula &Best = LU.Formulae[P.first->second];
4438 LSRUse &LU = Uses[LUIdx];
4441 Formula &F = LU.Formulae[i];
4505 LSRUse &LU = Uses[LUIdx];
4532 Formula &F = LUThatHas->Formulae[i];
4602 LSRUse &LU = Uses[LUIdx];
4639 Formula &F = LU.Formulae[FIdx];
4646 Formula &Best = LU.Formulae[P.first->second];
4752 LSRUse &LU = Uses[LUIdx];
4759 float FMinRegNum = LU.Formulae[0].getNumRegs();
4760 float FMinARegNum = LU.Formulae[0].getNumRegs();
4763 Formula &F = LU.Formulae[i];
4790 LLVM_DEBUG(dbgs() << " The formula "; LU.Formulae[MinIdx].print(dbgs());
4793 std::swap(LU.Formulae[MinIdx], LU.Formulae[0]);
4793 std::swap(LU.Formulae[MinIdx], LU.Formulae[0]);
4801 Formula &F = LU.Formulae[0];
4850 LSRUse &LU = Uses[LUIdx];
4855 Formula &F = LU.Formulae[i];
4908 const LSRUse &LU = Uses[Workspace.size()];
4992 Uses[i].print(dbgs());
4995 Solution[i]->print(dbgs());
5092 BasicBlock *BB = ExitingBlocks[0];
5094 BB = DT.findNearestCommonDominator(BB, ExitingBlocks[i]);
5334 NewBB = NewBBs[0];
5383 for (LSRFixup &Fixup : Uses[LUIdx].Fixups)
5479 for (const LSRFixup &Fixup : Uses[LUIdx].Fixups) {
5480 Rewrite(Uses[LUIdx], Fixup, *Solution[LUIdx], Rewriter, DeadInsts);
lib/Transforms/Scalar/LoopUnswitch.cpp 1309 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]);
1311 if (Loop *ExitBBLoop = LI->getLoopFor(ExitBlocks[i]))
1321 Value *V = PN.getIncomingValueForBlock(ExitBlocks[i]);
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp 76 Weights[Index] = LikelyBranchWeight;
lib/Transforms/Scalar/NaryReassociate.cpp 375 IndexExprs[I] = SE->getSCEV(LHS);
383 IndexExprs[I] =
384 SE->getZeroExtendExpr(IndexExprs[I], GEP->getOperand(I)->getType());
lib/Transforms/Scalar/NewGVN.cpp 847 Value *InstrFromDFSNum(unsigned DFSNum) { return DFSToInstr[DFSNum]; }
3155 return singleReachablePHIPath(Visited, cast<MemoryAccess>(OperandList[0]),
lib/Transforms/Scalar/Reassociate.cpp 605 Value *V = LeafOrder[i];
665 NotRewritable.insert(Ops[i].Op);
676 Value *NewLHS = Ops[i].Op;
677 Value *NewRHS = Ops[i+1].Op;
721 Value *NewRHS = Ops[i].Op;
805 RedoInsts.insert(NodesToRewrite[i]);
1051 RepeatedValue E = Tree[i];
1059 if (Factors[i].Op == Factor) {
1067 if (ConstantInt *FC2 = dyn_cast<ConstantInt>(Factors[i].Op))
1074 if (ConstantFP *FC2 = dyn_cast<ConstantFP>(Factors[i].Op)) {
1099 V = Factors[0].Op;
1139 if (match(Ops[i].Op, m_Not(m_Value(X)))) { // Cannot occur for ^.
1153 if (i+1 != Ops.size() && Ops[i+1].Op == Ops[i].Op) {
1153 if (i+1 != Ops.size() && Ops[i+1].Op == Ops[i].Op) {
1165 return Constant::getNullValue(Ops[0].Op->getType());
1321 Type *Ty = Ops[0].Op->getType();
1326 Value *V = Ops[i].Op;
1344 OpndPtrs.push_back(&Opnds[i]);
1367 XorOpnd *CurrOpnd = OpndPtrs[i];
1408 XorOpnd &O = Opnds[i];
1442 Value *TheOp = Ops[i].Op;
1446 if (i+1 != Ops.size() && Ops[i+1].Op == TheOp) {
1452 } while (i != Ops.size() && Ops[i].Op == TheOp);
1533 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul);
1545 Value *Factor = Factors[i];
1605 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul);
1609 if (Value *V = RemoveFactorFromExpression(Ops[i].Op, MaxOccVal)) {
1614 if (Ops[j].Op == Ops[i].Op) {
1614 if (Ops[j].Op == Ops[i].Op) {
1675 Value *Op = Ops[Idx-1].Op;
1679 for (; Idx < Size && Ops[Idx].Op == Op; ++Idx)
1696 Value *Op = Ops[Idx-1].Op;
1700 for (; Idx < Ops.size() && Ops[Idx].Op == Op; ++Idx)
1748 assert(Factors[0].Power);
1751 Idx < Size && Factors[Idx].Power > 0; ++Idx) {
1752 if (Factors[Idx].Power != Factors[LastIdx].Power) {
1752 if (Factors[Idx].Power != Factors[LastIdx].Power) {
1761 InnerProduct.push_back(Factors[LastIdx].Base);
1763 InnerProduct.push_back(Factors[Idx].Base);
1765 } while (Idx < Size && Factors[Idx].Power == Factors[LastIdx].Power);
1765 } while (Idx < Size && Factors[Idx].Power == Factors[LastIdx].Power);
1769 Value *M = Factors[LastIdx].Base = buildMultiplyTree(Builder, InnerProduct);
1787 if (Factors[Idx].Power & 1)
1788 OuterProduct.push_back(Factors[Idx].Base);
1789 Factors[Idx].Power >>= 1;
1791 if (Factors[0].Power) {
1856 if (Ops.size() == 1) return Ops[0].Op;
1921 if (Instruction *Op = dyn_cast<Instruction>(Ops[i])) {
2204 RepeatedValue E = Tree[i];
2261 if (Ops[0].Op == I)
2267 I->replaceAllUsesWith(Ops[0].Op);
2268 if (Instruction *OI = dyn_cast<Instruction>(Ops[0].Op))
2288 Value *Op0 = Ops[i].Op;
2289 Value *Op1 = Ops[j].Op;
2303 unsigned MaxRank = std::max(Ops[i].Rank, Ops[j].Rank);
2303 unsigned MaxRank = std::max(Ops[i].Rank, Ops[j].Rank);
2311 auto Op0 = Ops[BestPair.first];
2312 auto Op1 = Ops[BestPair.second];
2313 Ops.erase(&Ops[BestPair.second]);
2314 Ops.erase(&Ops[BestPair.first]);
2364 Value *Op0 = Ops[i];
2365 Value *Op1 = Ops[j];
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 2231 PartiallyConstructedSafepointRecord &info = Records[i];
2232 findBasePointers(DT, DVCache, ToUpdate[i], info);
2251 PartiallyConstructedSafepointRecord &Info = Records[i];
2257 insertUseHolderAfter(ToUpdate[i], Bases, Holders);
2300 rematerializeLiveValues(ToUpdate[i], Records[i], TTI);
2300 rematerializeLiveValues(ToUpdate[i], Records[i], TTI);
2314 makeStatepointExplicit(DT, ToUpdate[i], Records[i], Replacements);
2314 makeStatepointExplicit(DT, ToUpdate[i], Records[i], Replacements);
2339 PartiallyConstructedSafepointRecord &Info = Records[i];
lib/Transforms/Scalar/SCCP.cpp 671 Succs[0] = true;
681 Succs[0] = Succs[1] = true;
681 Succs[0] = Succs[1] = true;
686 Succs[CI->isZero()] = true;
698 Succs[0] = true;
711 Succs[SI->findCaseValue(CI)->getSuccessorIndex()] = true;
734 Succs[i] = true;
868 if (SuccFeasible[i])
1120 Constant *Ptr = Operands[0];
2209 Function *F = ReturnsToZap[i]->getParent()->getParent();
2210 ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType()));
lib/Transforms/Scalar/SROA.cpp 879 AS.Slices[MTPI->second].kill();
904 Slice &PrevP = AS.Slices[PrevIdx];
922 assert(AS.Slices[PrevIdx].getUse()->getUser() == &II &&
1895 VectorType *V = CandidateTys[0];
1961 assert(VTy == CandidateTys[0] &&
lib/Transforms/Scalar/Scalarizer.cpp 258 if (CV[I])
259 return CV[I];
263 if (!CV[0]) {
265 CV[0] = Builder.CreateBitCast(V, NewPtrTy, V->getName() + ".i0");
268 CV[I] = Builder.CreateConstGEP1_32(ElTy, CV[0], I,
268 CV[I] = Builder.CreateConstGEP1_32(ElTy, CV[0], I,
284 CV[J] = Insert->getOperand(1);
285 return CV[J];
286 } else if (!CV[J]) {
290 CV[J] = Insert->getOperand(1);
293 CV[I] = Builder.CreateExtractElement(V, Builder.getInt32(I),
296 return CV[I];
371 Value *V = SV[I];
453 Res[Elem] = Split(Builder, Op[Elem], I.getName() + ".i" + Twine(Elem));
475 Res[Elem] = Split(Builder, Op0[Elem], Op1[Elem],
520 Scattered[I] = scatter(&CI, OpI);
521 assert(Scattered[I].size() == NumElems && "mismatched call operands");
523 ScalarOperands[I] = OpI;
539 ScalarCallOps.push_back(ScalarOperands[J]);
541 ScalarCallOps.push_back(Scattered[J][Elem]);
544 Res[Elem] = Builder.CreateCall(NewIntrin, ScalarCallOps,
570 Res[I] = Builder.CreateSelect(Op0[I], Op1[I], Op2[I],
575 Res[I] = Builder.CreateSelect(Op0, Op1[I], Op2[I],
624 Ops[I] = scatter(&GEPI, Op);
633 Indices[J] = Ops[J][I];
633 Indices[J] = Ops[J][I];
634 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices,
637 if (GetElementPtrInst *NewGEPI = dyn_cast<GetElementPtrInst>(Res[I]))
656 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(),
677 Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(),
696 Res[ResI++] = Mid[MidI];
709 Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(),
731 Res[I] = UndefValue::get(VT->getElementType());
733 Res[I] = Op0[Selector];
735 Res[I] = Op1[Selector - Op0.size()];
753 Res[I] = Builder.CreatePHI(VT->getElementType(), NumOps,
760 cast<PHINode>(Res[J])->addIncoming(Op[J], IncomingBlock);
784 Res[I] = Builder.CreateAlignedLoad(Layout.VecTy->getElementType(), Ptr[I],
812 Stores[I] = Builder.CreateAlignedStore(Val[I], Ptr[I], Align);
843 Res = Builder.CreateInsertElement(Res, CV[I], Builder.getInt32(I),
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp 639 UserChain[NewSize] = I;
649 User *U = UserChain[ChainIndex];
653 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U));
661 UserChain[ChainIndex] = nullptr;
668 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1);
680 return UserChain[ChainIndex] = NewBO;
685 assert(isa<ConstantInt>(UserChain[ChainIndex]));
686 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType());
689 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]);
695 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1);
696 assert(BO->getOperand(OpNo) == UserChain[ChainIndex - 1]);
lib/Transforms/Scalar/SimplifyCFGPass.cpp 156 LoopHeaders.insert(const_cast<BasicBlock *>(Edges[i].second));
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp 653 auto *PredBB = SpecPreds[PredIdx];
690 assert(SpeculatedValueMap[OrigI][PredIdx] == NewI &&
709 SpecIPN->addIncoming(SpeculatedVals[PredIdx], SpecPreds[PredIdx]);
709 SpecIPN->addIncoming(SpeculatedVals[PredIdx], SpecPreds[PredIdx]);
771 for (auto *PredBB : PNs[0]->blocks()) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 532 const SCEV *OrigIndexExpr = IndexExprs[I - 1];
533 IndexExprs[I - 1] = SE->getZero(OrigIndexExpr->getType());
558 IndexExprs[I - 1] = OrigIndexExpr;
lib/Transforms/Scalar/StructurizeCFG.cpp 647 PHINode *Phi = InsertedPhis[i];
651 InsertedPhis[i] = InsertedPhis.back();
lib/Transforms/Scalar/TailRecursionElimination.cpp 621 ArgumentPHIs[i]->addIncoming(CI->getArgOperand(i), BB);
lib/Transforms/Utils/ASanStackFrameLayout.cpp 63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment);
63 Vars[i].Alignment = std::max(Vars[i].Alignment, kMinAlignment);
69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment);
71 Vars[0].Alignment);
75 size_t Alignment = std::max(Granularity, Vars[i].Alignment);
77 size_t Size = Vars[i].Size;
83 : std::max(Granularity, Vars[i + 1].Alignment);
86 Vars[i].Offset = Offset;
lib/Transforms/Utils/BasicBlockUtils.cpp 165 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*()))
611 return NewBBs[0];
lib/Transforms/Utils/CloneFunction.cpp 117 NewArgAttrs[NewArg->getArgNo()] =
522 const PHINode *OPN = PHIToResolve[phino];
530 PHIToResolve[phino]->getParent() == OldBB; ++phino) {
531 OPN = PHIToResolve[phino];
610 if (isa<PHINode>(VMap[PHIToResolve[Idx]]))
611 Worklist.insert(PHIToResolve[Idx]);
lib/Transforms/Utils/CodeExtractor.cpp 557 Instruction *BitcastAddr = Bitcasts[I];
558 const LifetimeMarkerInfo &LMI = BitcastLifetimeInfo[I];
1373 const auto &Weight = BranchDist.Weights[I];
1376 BranchWeights[Weight.TargetNode.Index] = Weight.Amount;
lib/Transforms/Utils/EscapeEnumerator.cpp 88 CallInst *CI = cast<CallInst>(Calls[--I]);
lib/Transforms/Utils/FunctionComparator.cpp 858 VisitedBBs.insert(FnLBBs[0]);
931 VisitedBBs.insert(BBs[0]);
lib/Transforms/Utils/InlineFunction.cpp 952 const Argument *A = NoAliasArgs[i];
1959 AllocaInst *AI = IFI.StaticAllocas[ai];
2236 NewBr->setDebugLoc(Returns[0]->getDebugLoc());
2242 ReturnInst *R = Returns[0];
2252 Returns[0]->eraseFromParent();
2327 ReturnInst *RI = Returns[i];
2337 ReturnInst *RI = Returns[i];
2353 if (TheCall == Returns[0]->getReturnValue())
2356 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue());
2360 BasicBlock *ReturnBB = Returns[0]->getParent();
2369 CreatedBranchToNormalDest->setDebugLoc(Returns[0]->getDebugLoc());
2372 Returns[0]->eraseFromParent();
lib/Transforms/Utils/LCSSA.cpp 208 ValueHandleBase::ValueIsRAUWd(*UseToRewrite, AddedPHIs[0]);
209 UseToRewrite->set(AddedPHIs[0]);
229 Value *V = AddedPHIs.size() == 1 ? AddedPHIs[0]
lib/Transforms/Utils/Local.cpp 197 Weights[0] += Weights[idx+1];
197 Weights[0] += Weights[idx+1];
199 std::swap(Weights[idx+1], Weights.back());
2714 Result->Provenance[i] = B->Provenance[i];
2716 Result->Provenance[i] = A->Provenance[i];
2771 Result->Provenance[i] = BitPart::Unset;
2786 Result->Provenance[i] = Res->Provenance[i];
2788 Result->Provenance[i] = BitPart::Unset;
2797 Result->Provenance[i] = i;
2850 bitTransformIsCorrectForBSwap(BitProvenance[i], i, DemandedBW);
2852 bitTransformIsCorrectForBitReverse(BitProvenance[i], i, DemandedBW);
lib/Transforms/Utils/LoopSimplify.cpp 91 if (&*BBI == SplitPreds[i])
103 Function::iterator BBI = SplitPreds[i]->getIterator();
105 FoundBB = SplitPreds[i];
114 FoundBB = SplitPreds[0];
629 BasicBlock *ExitingBlock = ExitingBlocks[i];
733 Loop *L2 = Worklist[Idx];
lib/Transforms/Utils/LoopUnrollPeel.cpp 727 NewBlocks[0]->getIterator(), F->end());
lib/Transforms/Utils/LoopUnrollRuntime.cpp 500 OtherExits[0]->getTerminatingDeoptimizeCall());
lib/Transforms/Utils/LoopUtils.cpp 500 for (DomTreeNode *Child : Worklist[I]->getChildren())
834 ShuffleMask[j] = Builder.getInt32(i / 2 + j);
837 std::fill(&ShuffleMask[i / 2], ShuffleMask.end(),
lib/Transforms/Utils/MisExpect.cpp 167 RealWeights[i - 1] = Value->getZExtValue();
lib/Transforms/Utils/PredicateInfo.cpp 729 return ValueInfos[InsertResult.first->second];
731 return ValueInfos[OIN->second];
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 593 AllocaDbgDeclares[AllocaNum] = Info.DbgDeclares;
787 BasicBlock *BB = LiveInBlockWorklist[i];
800 LiveInBlockWorklist[i] = LiveInBlockWorklist.back();
913 for (DbgVariableIntrinsic *DII : AllocaDbgDeclares[AllocaNo])
973 for (DbgVariableIntrinsic *DII : AllocaDbgDeclares[ai->second])
lib/Transforms/Utils/SSAUpdaterBulk.cpp 56 Rewrites[Var].Defines[BB] = V;
65 Rewrites[Var].Uses.push_back(U);
71 return (Var < Rewrites.size()) ? Rewrites[Var].Defines.count(BB) : false;
lib/Transforms/Utils/SimplifyCFG.cpp 1076 Weights[0] += Weights[i + 1];
1076 Weights[0] += Weights[i + 1];
1077 std::swap(Weights[i + 1], Weights.back());
1104 Weights.push_back(Weights[0] * SuccWeights[i + 1]);
1104 Weights.push_back(Weights[0] * SuccWeights[i + 1]);
1105 ValidTotalSuccWeight += SuccWeights[i + 1];
1110 ValidTotalSuccWeight += SuccWeights[0];
1113 Weights[i] *= ValidTotalSuccWeight;
1115 Weights[0] *= SuccWeights[0];
1115 Weights[0] *= SuccWeights[0];
1128 WeightsForHandled[PredCases[i].Value] = Weights[i + 1];
1129 std::swap(Weights[i + 1], Weights.back());
1604 I0->getOperandUse(O).set(NewOperands[O]);
1837 << *UnconditionalPreds[0]->getTerminator()->getPrevNode()
2809 setBranchWeights(PBI, MDWeights[0], MDWeights[1]);
2809 setBranchWeights(PBI, MDWeights[0], MDWeights[1]);
2816 PHIs[i]->getIncomingValueForBlock(PBI->getParent()));
2845 PHIs[i]->setIncomingValueForBlock(PBI->getParent(), MergedCond);
3541 (uint32_t)Weights[SI->findCaseValue(TrueVal)->getSuccessorIndex()];
3543 (uint32_t)Weights[SI->findCaseValue(FalseVal)->getSuccessorIndex()];
3788 New->addCase(Values[i], EdgeBB);
4223 Instruction *TI = Preds[i]->getTerminator();
4318 if (Cases[I - 1]->getValue() != Cases[I]->getValue() + 1)
4318 if (Cases[I - 1]->getValue() != Cases[I]->getValue() + 1)
4415 TrueWeight += Weights[I];
4417 FalseWeight += Weights[I];
4666 return ConstantFoldCompareInstOperands(Cmp->getPredicate(), COps[0],
4667 COps[1], DL);
4800 PHI = Results[0].first;
4801 else if (PHI != Results[0].first)
4995 TableContents[Idx] = CaseRes;
5007 if (!TableContents[I])
5008 TableContents[I] = DefaultValue;
5031 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]);
5051 LinearOffset = cast<ConstantInt>(TableContents[0]);
5066 if (!isa<UndefValue>(TableContents[I - 1])) {
5067 ConstantInt *Val = cast<ConstantInt>(TableContents[I - 1]);
5357 ResultTypes[PHI] = ResultLists[PHI][0].second->getType();
5360 uint64_t NumResults = ResultLists[PHIs[0]].size();
5448 const ResultListTy &ResultList = ResultLists[PHIs[0]];
5483 Constant *DV = NeedMask ? ResultLists[PHI][0].second : DefaultResults[PHI];
5576 int64_t Base = Values[0];
lib/Transforms/Utils/ValueMapper.cpp 178 ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; }
179 ValueMaterializer *getMaterializer() { return MCs[CurrentMCID].Materializer; }
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 646 Instruction *ChainInstr = ChainInstrs[ChainInstrIdx];
906 if (Head == Tails[TIt] &&
907 !InstructionsProcessed.count(Instrs[Heads[TIt]])) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 213 setHint(Name, Args[0]);
lib/Transforms/Vectorize/LoopVectorize.cpp 2246 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2249 Mask[Part], Undefs, RepMask, "interleaved.mask");
2256 Builder.CreateMaskedLoad(NewPtrs[Part], Group->getAlignment(),
2260 NewLoad = Builder.CreateAlignedLoad(VecTy, NewPtrs[Part],
2278 NewLoads[Part], UndefVec, StrideMask, "strided.vec");
2330 auto *Undefs = UndefValue::get(Mask[Part]->getType());
2333 Mask[Part], Undefs, RepMask, "interleaved.mask");
2335 IVec, NewPtrs[Part], Group->getAlignment(), ShuffledMask);
2338 NewStoreInstr = Builder.CreateAlignedStore(IVec, NewPtrs[Part],
2411 Mask[Part] = reverseVector(Mask[Part]);
2411 Mask[Part] = reverseVector(Mask[Part]);
2429 Value *MaskPart = isMaskRequired ? Mask[Part] : nullptr;
2444 Alignment.value(), Mask[Part]);
2460 Value *MaskPart = isMaskRequired ? Mask[Part] : nullptr;
2468 NewLI = Builder.CreateMaskedLoad(VecPtr, Alignment.value(), Mask[Part],
3569 ShuffleMask[0] = Builder.getInt32(VF - 1);
3571 ShuffleMask[I] = Builder.getInt32(I + VF - 1);
3751 RdxParts[Part] = VectorLoopValueMap.getVectorValue(LoopExitInst, Part);
3752 Value *Trunc = Builder.CreateTrunc(RdxParts[Part], RdxVecTy);
3755 for (Value::user_iterator UI = RdxParts[Part]->user_begin();
3756 UI != RdxParts[Part]->user_end();)
3758 (*UI++)->replaceUsesOfWith(RdxParts[Part], Extnd);
3759 RdxParts[Part] = Extnd;
3766 RdxParts[Part] = Builder.CreateTrunc(RdxParts[Part], RdxVecTy);
3766 RdxParts[Part] = Builder.CreateTrunc(RdxParts[Part], RdxVecTy);
3767 VectorLoopValueMap.resetVectorValue(LoopExitInst, Part, RdxParts[Part]);
3814 BCBlockPhi->addIncoming(ReductionStartValue, LoopBypassBlocks[I]);
3950 BasicBlock *NewPredBB = VectorBBPredecessors[i];
3955 OrigPhi->getIncomingValueForBlock(ScalarBBPredecessors[i]);
4353 DT->addNewBlock(LoopScalarPreHeader, LoopBypassBlocks[0]);
4355 DT->changeImmediateDominator(LoopExitBlock, LoopBypassBlocks[0]);
4996 for (auto& pair : RUs[i].MaxLocalUsers) {
5002 MaxVF = VFs[i];
5153 RegisterUsage R = calculateRegisterUsage({VF})[0];
5392 Instruction *I = IdxToInstr[i];
5443 if (MaxUsages[j].find(pair.first) != MaxUsages[j].end())
5443 if (MaxUsages[j].find(pair.first) != MaxUsages[j].end())
5444 MaxUsages[j][pair.first] = std::max(MaxUsages[j][pair.first], pair.second);
5444 MaxUsages[j][pair.first] = std::max(MaxUsages[j][pair.first], pair.second);
5446 MaxUsages[j][pair.first] = pair.second;
5471 dbgs() << "LV(REG): Found max usage: " << MaxUsages[i].size()
5473 for (const auto &pair : MaxUsages[i]) {
5488 RU.MaxLocalUsers = MaxUsages[i];
5489 RUs[i] = RU;
7319 Entry[Part] = In0; // Initialize with the first incoming value.
7324 Entry[Part] =
7325 State.Builder.CreateSelect(Cond, In0, Entry[Part], "predphi");
7330 State.ValueMap.setVectorValue(Phi, Part, Entry[Part]);
7342 MaskValues[Part] = State.get(Mask, Part);
7437 MaskValues[Part] = State.get(Mask, Part);
lib/Transforms/Vectorize/SLPVectorizer.cpp 727 return OpsVec[OpIdx][Lane];
727 return OpsVec[OpIdx][Lane];
741 OpsVec[OpIdx][Lane].IsUsed = false;
741 OpsVec[OpIdx][Lane].IsUsed = false;
746 std::swap(OpsVec[OpIdx1][Lane], OpsVec[OpIdx2][Lane]);
746 std::swap(OpsVec[OpIdx1][Lane], OpsVec[OpIdx2][Lane]);
746 std::swap(OpsVec[OpIdx1][Lane], OpsVec[OpIdx2][Lane]);
746 std::swap(OpsVec[OpIdx1][Lane], OpsVec[OpIdx2][Lane]);
895 OpsVec[OpIdx].resize(NumLanes);
910 OpsVec[OpIdx][Lane] = {cast<Instruction>(VL[Lane])->getOperand(OpIdx),
910 OpsVec[OpIdx][Lane] = {cast<Instruction>(VL[Lane])->getOperand(OpIdx),
975 OpVL[Lane] = OpsVec[OpIdx][Lane].V;
1012 ReorderingModes[OpIdx] = ReorderingMode::Load;
1016 ReorderingModes[OpIdx] = ReorderingMode::Splat;
1018 ReorderingModes[OpIdx] = ReorderingMode::Opcode;
1021 ReorderingModes[OpIdx] = ReorderingMode::Constant;
1024 ReorderingModes[OpIdx] = ReorderingMode::Splat;
1027 ReorderingModes[OpIdx] = ReorderingMode::Failed;
1066 ReorderingModes[OpIdx] = ReorderingMode::Failed;
1252 assert(Operands[OpIdx].size() == 0 && "Already resized?");
1253 Operands[OpIdx].resize(Scalars.size());
1255 Operands[OpIdx][Lane] = OpVL[Lane];
1255 Operands[OpIdx][Lane] = OpVL[Lane];
1261 auto *I0 = cast<Instruction>(Scalars[0]);
1266 Operands[OpIdx].resize(NumLanes);
1268 auto *I = cast<Instruction>(Scalars[Lane]);
1271 Operands[OpIdx][Lane] = I->getOperand(OpIdx);
1271 Operands[OpIdx][Lane] = I->getOperand(OpIdx);
1279 return Operands[OpIdx];
1769 if (auto *I = dyn_cast<Instruction>(TE->getOperand(OpIdx)[Lane]))
2003 return R.VectorizableTree[0].get();
2123 Value *Scalar = Entry->Scalars[Lane];
2147 Value *UseScalar = UseEntry->Scalars[0];
2350 buildTree_rec(OperandsVec[OpIdx], Depth + 1, {TE, OpIdx});
2442 Ptr0 = PointerOps[CurrentOrder.front()];
2443 PtrN = PointerOps[CurrentOrder.back()];
2706 ScalarArgs[j] = CI->getArgOperand(j);
2724 if (ScalarArgs[j] != A1J) {
2729 << " argument " << ScalarArgs[j] << "!=" << A1J
2882 if (ExtIdx >= E || CurrentOrder[ExtIdx] != E + 1)
2885 CurrentOrder[ExtIdx] = I;
2887 if (CurrentOrder[I] != E + 1)
2889 CurrentOrder[I] = I;
3301 Value *FirstReduced = VectorizableTree[0]->Scalars[0];
3365 Instruction *Inst = dyn_cast<Instruction>(TEPtr->Scalars[0]);
3427 unsigned BundleWidth = VectorizableTree[0]->Scalars.size();
3430 TreeEntry &TE = *VectorizableTree[I].get();
3454 << " for bundle that starts with " << *TE.Scalars[0]
3476 auto *ScalarRoot = VectorizableTree[0]->Scalars[0];
3476 auto *ScalarRoot = VectorizableTree[0]->Scalars[0];
3631 if (E->Scalars[Lane] == VL[i]) {
3719 Mask[Indices[I]] = I;
3726 LLVM_DEBUG(dbgs() << "SLP: Diamond merged for " << *E->Scalars[0] << ".\n");
4201 auto *OpInst = cast<Instruction>(E->Scalars[i]);
4204 Mask[i] = Builder.getInt32(e + i);
4205 AltScalars.push_back(E->Scalars[i]);
4207 Mask[i] = Builder.getInt32(i);
4208 OpScalars.push_back(E->Scalars[i]);
4247 auto *VectorRoot = vectorizeTree(VectorizableTree[0].get());
4252 auto *ScalarRoot = VectorizableTree[0]->Scalars[0];
4252 auto *ScalarRoot = VectorizableTree[0]->Scalars[0];
4256 auto BundleWidth = VectorizableTree[0]->Scalars.size();
4260 VectorizableTree[0]->VectorizedValue = Trunc;
4367 Value *Scalar = Entry->Scalars[Lane];
4388 return VectorizableTree[0]->VectorizedValue;
5060 auto &TreeRoot = VectorizableTree[0]->Scalars;
5061 auto *TreeRootIT = dyn_cast<IntegerType>(TreeRoot[0]->getType());
5126 if (MaxBitWidth == DL->getTypeSizeInBits(TreeRoot[0]->getType()) &&
5699 ShuffleMask[i] = Builder.getInt32(2 * i + !IsLeft);
5703 ShuffleMask[i] = Builder.getInt32(NumEltsToRdx + i);
5940 ReductionOps[0].emplace_back(I);
5946 ReductionOps[0].emplace_back(cast<SelectInst>(I)->getCondition());
5947 ReductionOps[1].emplace_back(I);
6304 markExtraArg(Stack[Stack.size() - 2], TreeN);
6410 auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
6430 int ReductionCost = getReductionCost(TTI, ReducedVals[i], ReduxWidth);
6455 DebugLoc Loc = cast<Instruction>(ReducedVals[i])->getDebugLoc();
6478 auto *I = cast<Instruction>(ReducedVals[i]);
7035 unsigned EltSize = R.getVectorElementSize(Entry.second[0]);
7042 auto GEPList = makeArrayRef(&Entry.second[BI], Len);
7092 Bundle[BundleIndex++] = GEPIdx;
7127 Changed |= vectorizeStores(makeArrayRef(&it->second[CI], Len), R);
lib/Transforms/Vectorize/VPlan.h 167 return VectorMapStorage[Key][Part];
174 return ScalarMapStorage[Key][Instance.Part][Instance.Lane];
174 return ScalarMapStorage[Key][Instance.Part][Instance.Lane];
185 VectorMapStorage[Key][Part] = Vector;
197 Entry[Part].resize(VF, nullptr);
200 ScalarMapStorage[Key][Instance.Part][Instance.Lane] = Scalar;
200 ScalarMapStorage[Key][Instance.Part][Instance.Lane] = Scalar;
209 VectorMapStorage[Key][Part] = Vector;
220 ScalarMapStorage[Key][Instance.Part][Instance.Lane] = Scalar;
220 ScalarMapStorage[Key][Instance.Part][Instance.Lane] = Scalar;
266 return Data.PerPartOutput[Def][Part];
277 Data.PerPartOutput[Def][Part] = V;
lib/Transforms/Vectorize/VPlanSLP.cpp 266 return {Mode, BestCandidates[0]};
308 FinalOrder.push_back({Operands.first, {Operands.second[0]}});
309 if (cast<VPInstruction>(Operands.second[0])->getOpcode() ==
316 for (unsigned Lane = 1, E = MultiNodeOps[0].second.size(); Lane < E; ++Lane) {
322 dbgs() << *cast<VPInstruction>(Ops.second[Lane])->getUnderlyingInstr()
324 Candidates.insert(Ops.second[Lane]);
330 if (Mode[Op] == OpMode::Failed)
333 VPValue *Last = FinalOrder[Op].second[Lane - 1];
333 VPValue *Last = FinalOrder[Op].second[Lane - 1];
335 getBest(Mode[Op], Last, Candidates, IAI);
337 FinalOrder[Op].second.push_back(Res.second);
340 FinalOrder[Op].second.push_back(markFailed());
429 if (CombinedOperands[i] == Ops.first)
430 CombinedOperands[i] = NewOp;
lib/Transforms/Vectorize/VPlanValue.h 167 void setOperand(unsigned I, VPValue *New) { Operands[I] = New; }
tools/bugpoint/ExtractFunction.cpp 194 aliases[i]->replaceAllUsesWith(aliases[i]->getAliasee());
194 aliases[i]->replaceAllUsesWith(aliases[i]->getAliasee());
195 aliases[i]->eraseFromParent();
tools/bugpoint/OptimizerDriver.cpp 229 << " " << Args[i];
tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h 136 std::swap(Children[0], Children[1]);
136 std::swap(Children[0], Children[1]);
tools/clang/include/clang/AST/StmtOpenMP.h 888 Counters[i] = nullptr;
889 PrivateCounters[i] = nullptr;
890 Inits[i] = nullptr;
891 Updates[i] = nullptr;
892 Finals[i] = nullptr;
893 DependentCounters[i] = nullptr;
894 DependentInits[i] = nullptr;
895 FinalsConditions[i] = nullptr;
tools/clang/include/clang/AST/TemplateBase.h 591 return Arguments[I];
tools/clang/include/clang/AST/UnresolvedSet.h 114 void erase(unsigned I) { decls()[I] = decls().pop_back_val(); }
128 DeclAccessPair &operator[](unsigned I) { return decls()[I]; }
tools/clang/include/clang/Analysis/SelectorExtras.h 23 return Ctx.Selectors.getSelector(II.size(), &II[0]);
tools/clang/include/clang/Basic/SourceManager.h 1694 return LoadedSLocEntryTable[Index];
tools/clang/include/clang/CodeGen/ConstantInitBuilder.h 292 llvm::Constant *&slot = Builder.Buffer[position.Index];
tools/clang/include/clang/Lex/Preprocessor.h 1445 return CachedTokens[CachedLexPos+N];
1528 CachedTokens[CachedLexPos-1] = Tok;
1540 CachedTokens[CachedLexPos-1] = Tok;
tools/clang/include/clang/Sema/DeclSpec.h 1934 DeclTypeInfo[i].destroy();
2195 return DeclTypeInfo[i];
2282 return DeclTypeInfo[index].Fun;
tools/clang/include/clang/Sema/ScopeInfo.h 683 return Captures[CXXThisCaptureIndex - 1];
698 return Captures[CaptureMap[Var] - 1];
tools/clang/include/clang/Sema/SemaInternal.h 156 ? ValidatedCorrections[CurrentTCIndex]
157 : ValidatedCorrections[0]; // The empty correction.
tools/clang/include/clang/Sema/Template.h 125 assert(Index < TemplateArgumentLists[getNumLevels() - Depth - 1].size());
127 TemplateArgumentLists[getNumLevels() - Depth - 1][Index])
312 delete ArgumentPacks[I];
tools/clang/include/clang/Serialization/ASTReader.h 1240 return GetExistingDecl(I->second[0]);
2407 const uint64_t &operator[](size_t N) { return Record[N]; }
2414 const uint64_t &readInt() { return Record[Idx++]; }
2417 const uint64_t &peekInt() { return Record[Idx]; }
tools/clang/include/clang/Serialization/ASTWriter.h 769 auto &StoredOffset = (*Record)[I];
803 uint64_t &operator[](size_t N) { return (*Record)[N]; }
tools/clang/include/clang/Serialization/ModuleManager.h 173 ModuleFile &getPrimaryModule() { return *Chain[0]; }
tools/clang/lib/ARCMigrate/FileRemapper.cpp 74 StringRef fromFilename = lines[idx];
76 if (lines[idx+1].getAsInteger(10, timeModified))
77 return report("Invalid file data: '" + lines[idx+1] + "' not a number",
79 StringRef toFilename = lines[idx+2];
tools/clang/lib/ARCMigrate/ObjCMT.cpp 684 ClassString += ConformingProtocols[i]->getNameAsString();
693 ClassString += ConformingProtocols[i]->getNameAsString();
866 PotentialImplicitProtocols[i]))
867 ConformingProtocols.push_back(PotentialImplicitProtocols[i]);
877 ObjCProtocolDecl *TargetPDecl = ConformingProtocols[i];
879 ObjCProtocolDecl *PDecl = ConformingProtocols[i1];
1406 const Decl *FirstFD = CFFunctionIBCandidates[0];
1408 CFFunctionIBCandidates[CFFunctionIBCandidates.size()-1];
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 110 PoolVarInfo &info = PoolVars[VarsToHandle[i]];
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp 90 VarDecl *var = BlockVars[i];
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 284 SourceLocation Loc = ATLs[i].first.getAttr()->getLocation();
292 ATLs[i].second->getLocation());
tools/clang/lib/ARCMigrate/TransProperties.cpp 347 QualType ty = props[0].PropD->getType().getUnqualifiedType();
361 attrs = props[0].PropD->getPropertyAttributesAsWritten();
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp 150 CaseInfo &info = Cases[i];
182 DeclRefExpr *DRE = LocalRefs[i];
tools/clang/lib/AST/ASTContext.cpp 563 if (comments::FullComment *FC = getCommentForDecl(Overridden[i], PP))
986 Type *T = Types[i];
4412 CanonArgs[I] = getCanonicalTemplateArgument(Args[I]);
4413 if (!CanonArgs[I].structurallyEquals(Args[I]))
7040 const FieldDecl *Field = Ivars[i];
tools/clang/lib/AST/ASTDiagnostic.cpp 601 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
602 FlatTree[CurrentNode].Kind = Template;
603 FlatTree[CurrentNode].FromArgInfo.TD = FromTD;
604 FlatTree[CurrentNode].ToArgInfo.TD = ToTD;
605 FlatTree[CurrentNode].FromArgInfo.Qual = FromQual;
606 FlatTree[CurrentNode].ToArgInfo.Qual = ToQual;
612 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
613 FlatTree[CurrentNode].Kind = Type;
614 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType;
615 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType;
621 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
622 FlatTree[CurrentNode].Kind = Expression;
623 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
624 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
630 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
631 FlatTree[CurrentNode].Kind = TemplateTemplate;
632 FlatTree[CurrentNode].FromArgInfo.TD = FromTD;
633 FlatTree[CurrentNode].ToArgInfo.TD = ToTD;
642 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
643 FlatTree[CurrentNode].Kind = Integer;
644 FlatTree[CurrentNode].FromArgInfo.Val = FromInt;
645 FlatTree[CurrentNode].ToArgInfo.Val = ToInt;
646 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt;
647 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt;
648 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType;
649 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType;
650 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
651 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
659 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
660 FlatTree[CurrentNode].Kind = Declaration;
661 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl;
662 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl;
663 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf;
664 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf;
665 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr;
666 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr;
667 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
668 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
676 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
677 FlatTree[CurrentNode].Kind = FromDeclarationAndToInteger;
678 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl;
679 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf;
680 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr;
681 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
682 FlatTree[CurrentNode].ToArgInfo.Val = ToInt;
683 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt;
684 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType;
685 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
693 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
694 FlatTree[CurrentNode].Kind = FromIntegerAndToDeclaration;
695 FlatTree[CurrentNode].FromArgInfo.Val = FromInt;
696 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt;
697 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType;
698 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
699 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl;
700 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf;
701 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr;
702 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
709 FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault;
710 FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault;
715 FlatTree[CurrentNode].Same = Same;
720 FlatTree[CurrentNode].Kind = Kind;
725 assert(FlatTree[CurrentNode].Kind != Invalid &&
727 CurrentNode = FlatTree[CurrentNode].ParentNode;
733 assert(FlatTree[CurrentNode].Kind == Template &&
736 DiffNode &Node = FlatTree[CurrentNode];
744 for (i = Node.ChildNode; FlatTree[i].NextNode != 0;
745 i = FlatTree[i].NextNode) {
747 FlatTree[i].NextNode = NextFreeNode;
763 ReadNode = FlatTree[ReadNode].ParentNode;
768 assert(FlatTree[ReadNode].Kind == Template && "Unexpected kind.");
769 FromTD = FlatTree[ReadNode].FromArgInfo.TD;
770 ToTD = FlatTree[ReadNode].ToArgInfo.TD;
771 FromQual = FlatTree[ReadNode].FromArgInfo.Qual;
772 ToQual = FlatTree[ReadNode].ToArgInfo.Qual;
776 assert(FlatTree[ReadNode].Kind == Type && "Unexpected kind");
777 FromType = FlatTree[ReadNode].FromArgInfo.ArgType;
778 ToType = FlatTree[ReadNode].ToArgInfo.ArgType;
782 assert(FlatTree[ReadNode].Kind == Expression && "Unexpected kind");
783 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
784 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
788 assert(FlatTree[ReadNode].Kind == TemplateTemplate && "Unexpected kind.");
789 FromTD = FlatTree[ReadNode].FromArgInfo.TD;
790 ToTD = FlatTree[ReadNode].ToArgInfo.TD;
797 assert(FlatTree[ReadNode].Kind == Integer && "Unexpected kind.");
798 FromInt = FlatTree[ReadNode].FromArgInfo.Val;
799 ToInt = FlatTree[ReadNode].ToArgInfo.Val;
800 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt;
801 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt;
802 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType;
803 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType;
804 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
805 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
812 assert(FlatTree[ReadNode].Kind == Declaration && "Unexpected kind.");
813 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD;
814 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD;
815 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf;
816 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf;
817 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr;
818 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr;
819 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
820 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
827 assert(FlatTree[ReadNode].Kind == FromDeclarationAndToInteger &&
829 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD;
830 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf;
831 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr;
832 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
833 ToInt = FlatTree[ReadNode].ToArgInfo.Val;
834 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt;
835 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType;
836 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
843 assert(FlatTree[ReadNode].Kind == FromIntegerAndToDeclaration &&
845 FromInt = FlatTree[ReadNode].FromArgInfo.Val;
846 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt;
847 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType;
848 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
849 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD;
850 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf;
851 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr;
852 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
857 return FlatTree[ReadNode].FromArgInfo.IsDefault;
862 return FlatTree[ReadNode].ToArgInfo.IsDefault;
867 return FlatTree[ReadNode].Same;
872 return FlatTree[ReadNode].ChildNode != 0;
877 ReadNode = FlatTree[ReadNode].ChildNode;
883 if (FlatTree[ReadNode].NextNode == 0)
886 ReadNode = FlatTree[ReadNode].NextNode;
892 return FlatTree[ReadNode].NextNode != 0;
902 return FlatTree[ReadNode].Kind;
tools/clang/lib/AST/ASTImporter.cpp 2876 ToTPLists[I] = *ToTPListOrErr;
3262 ProtoLoc.setParam(I, Parameters[I]);
3459 if (auto *FoundField = dyn_cast<IndirectFieldDecl>(FoundDecls[I])) {
3564 ToTPLists[I] = *ListOrErr;
6022 ToHandlers[HI] = *ToHandlerOrErr;
6117 ToCatchStmts[CI] = *ToCatchStmtOrErr;
6311 ToIndexExprs[I - 1] = *ToArgOrErr;
6850 ToExprs[I] = *ToIndexExprOrErr;
tools/clang/lib/AST/CommentCommandTraits.cpp 80 return BestCommand.size() == 1 ? BestCommand[0] : nullptr;
tools/clang/lib/AST/CommentParser.cpp 59 const Token &Tok = Toks[Pos.CurToken];
tools/clang/lib/AST/CommentSema.cpp 749 if (ParamVarDocs[ResolvedParamIndex]) {
753 ParamCommandComment *PrevCommand = ParamVarDocs[ResolvedParamIndex];
757 ParamVarDocs[ResolvedParamIndex] = PCC;
763 if (!ParamVarDocs[i])
771 const ParamCommandComment *PCC = UnresolvedParamCommands[i];
793 const ParmVarDecl *CorrectedPVD = OrphanedParamDecls[CorrectedParamIndex];
tools/clang/lib/AST/Decl.cpp 4383 assert(isa<FieldDecl>(Decls[i]) || isa<IndirectFieldDecl>(Decls[i]));
4383 assert(isa<FieldDecl>(Decls[i]) || isa<IndirectFieldDecl>(Decls[i]));
tools/clang/lib/AST/DeclBase.cpp 1367 if (I == Skip[SkipPos])
tools/clang/lib/AST/DeclCXX.cpp 469 QualType Type = VBases[I]->getType();
472 data().getVBases()[I] = *VBases[I];
tools/clang/lib/AST/DeclObjC.cpp 1647 data().IvarList = layout[0].Ivar; Ix++;
1650 for ( ; Ix != EIx; curIvar = layout[Ix].Ivar, Ix++)
1651 curIvar->setNextIvar(layout[Ix].Ivar);
tools/clang/lib/AST/DeclPrinter.cpp 410 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) {
tools/clang/lib/AST/ExprConstant.cpp 1315 Info.CleanupStack[I - 1].isLifetimeExtended())) {
1316 if (!Info.CleanupStack[I - 1].endLifetime(Info, RunDestructors)) {
1670 Expected = Path[Path.size() - 2];
2642 const CXXRecordDecl *Base = getAsBaseClass(D.Entries[I]);
2643 if (isVirtualBaseClass(D.Entries[I]))
4125 LV.Designator.Entries[PathLengthToMember + I]);
4126 const CXXRecordDecl *MPDecl = MemPtr.Path[I];
4149 const CXXRecordDecl *Base = MemPtr.Path[N - I - 1];
4222 FinalType = getAsBaseClass(D.Entries[NewEntriesSize - 1]);
5022 : getAsBaseClass(Designator.Entries[PathLength - 1]);
5452 if (!Evaluate(ArgValues[Idx], Info, Args[Idx])) {
5460 ArgValues[Idx].isLValue() &&
5461 ArgValues[Idx].isNullPointer()) {
5499 RHS.setFrom(Info.Ctx, ArgValues[0]);
6164 assert(!Bytes[Offset.getQuantity() + Index] && "overwriting a byte?");
6165 Bytes[Offset.getQuantity() + Index] = Byte;
7475 if (!EvaluateIgnoredValue(Info, CommaLHSs[I]))
7502 switch (Adjustments[I].Kind) {
7504 if (!HandleLValueBasePath(Info, Adjustments[I].DerivedToBase.BasePath,
7507 Type = Adjustments[I].DerivedToBase.BasePath->getType();
7511 if (!HandleLValueMember(Info, E, Result, Adjustments[I].Field))
7513 Type = Adjustments[I].Field->getType();
7518 Adjustments[I].Ptr.RHS))
7520 Type = Adjustments[I].Ptr.MPT->getPointeeType();
11641 const FieldDecl *LF = getAsField(LHSDesignator.Entries[Mismatch]);
11642 const FieldDecl *RF = getAsField(RHSDesignator.Entries[Mismatch]);
11647 << getAsBaseClass(LHSDesignator.Entries[Mismatch])
11651 << getAsBaseClass(RHSDesignator.Entries[Mismatch])
14315 if (Loc) *Loc = Diags[0].first;
14353 !Evaluate(ArgValues[I - Args.begin()], Info, *I))
14355 ArgValues[I - Args.begin()] = APValue();
tools/clang/lib/AST/Interp/ByteCodeExprGen.h 293 this->Ctx->Descriptors[*Idx].emplace_back(Local);
tools/clang/lib/AST/Interp/EvalEmitter.cpp 238 for (auto &Local : Descriptors[I]) {
tools/clang/lib/AST/Interp/Function.h 97 Scope &getScope(unsigned Idx) { return Scopes[Idx]; }
tools/clang/lib/AST/Interp/Record.h 69 Field *getField(unsigned I) { return &Fields[I]; }
77 Base *getBase(unsigned I) { return &Bases[I]; }
85 Base *getVirtualBase(unsigned I) { return &VirtualBases[I]; }
tools/clang/lib/AST/Interp/State.cpp 109 return OptionalDiagnostic(&(*EvalStatus.Diag)[0].second);
tools/clang/lib/AST/ItaniumMangle.cpp 1040 buffer[stringIndex] = charForHex[hexDigit];
tools/clang/lib/AST/PrintfFormatString.cpp 136 MatchedStr = Matches[1];
137 I += Matches[0].size();
tools/clang/lib/AST/VTableBuilder.cpp 1110 if (Components[VTableIndex].getKind() ==
1153 const VTableComponent &Component = Components[TI.first];
1896 VTableIndices[AP.second.VTableIndex] + AP.second.AddressPointIndex;
1906 const VTableComponent &Component = Components[I];
2117 const ThunkInfo &Thunk = ThunksVector[I];
2878 Groups[J->second].push_back(MD->getCanonicalDecl());
3111 const VTableComponent &Component = Components[I];
3202 const ThunkInfo &Thunk = ThunksVector[I];
3355 PathsSorted[BucketStart].get().MangledPath ==
3356 PathsSorted[I].get().MangledPath);
3361 Changed |= extendPath(PathsSorted[II]);
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 415 if (::clang::ast_matchers::internal::consumeNameSuffix(Patterns[I].P,
tools/clang/lib/Analysis/CloneDetection.cpp 282 size_t ChildHash = ChildHashes[Pos + Length - 1];
494 StmtSequence Prototype = HashGroup[i];
505 const StmtSequence &Candidate = HashGroup[j];
tools/clang/lib/Analysis/ObjCNoReturn.cpp 39 C.Selectors.getSelector(II.size(), &II[0]);
44 C.Selectors.getSelector(II.size(), &II[0]);
tools/clang/lib/Analysis/ThreadSafety.cpp 218 if (FM[FactIDs[i]].matches(CapE)) {
219 FactIDs[i] = FactIDs[n-1];
219 FactIDs[i] = FactIDs[n-1];
224 if (FM[FactIDs[n-1]].matches(CapE)) {
tools/clang/lib/Analysis/UninitializedValues.cpp 132 return vals[block->getBlockID()];
610 SuccsVisited[block->getBlockID()] = block->succ_size();
639 unsigned &SV = SuccsVisited[Pred->getBlockID()];
662 if (SuccsVisited[BlockID] && SuccsVisited[BlockID] < Block->succ_size() &&
662 if (SuccsVisited[BlockID] && SuccsVisited[BlockID] < Block->succ_size() &&
670 if (Succ && SuccsVisited[Succ->getBlockID()] >= Succ->succ_size() &&
tools/clang/lib/Basic/FileManager.cpp 538 UIDToFiles[FE->getUID()] = FE;
543 UIDToFiles[VFE->getUID()] = VFE.get();
tools/clang/lib/Basic/IdentifierTable.cpp 627 SetterName[3] = toUppercase(SetterName[3]);
627 SetterName[3] = toUppercase(SetterName[3]);
tools/clang/lib/Basic/Module.cpp 387 Module *Restriction = WildcardRestrictions[R];
tools/clang/lib/Basic/SourceManager.cpp 477 LoadedSLocEntryTable[Index] = SLocEntry::get(
483 return LoadedSLocEntryTable[Index];
575 LoadedSLocEntryTable[Index] = SLocEntry::get(
639 LoadedSLocEntryTable[Index] = SLocEntry::get(LoadedOffset, Info);
2126 DumpSLocEntry(ID, LoadedSLocEntryTable[Index], NextStart);
2127 NextStart = LoadedSLocEntryTable[Index].getOffset();
tools/clang/lib/CodeGen/CGAtomic.cpp 1186 llvm::Value *LoadVal1 = Args[1].getRValue(*this).getScalarVal();
tools/clang/lib/CodeGen/CGBuiltin.cpp 1190 Address BufAddr(Builder.CreateLoad(GetAddrOfLocalVar(Args[0]), "buf"),
1210 Address Arg = GetAddrOfLocalVar(Args[I]);
4348 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift);
4348 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift);
4350 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name);
4350 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name);
5197 std::swap(Ops[0], Ops[1]);
5197 std::swap(Ops[0], Ops[1]);
5213 if (Ops[j]->getType()->getPrimitiveSizeInBits() ==
5217 assert(ArgTy->isVectorTy() && !Ops[j]->getType()->isVectorTy());
5220 Ops[j] =
5221 CGF.Builder.CreateTruncOrBitCast(Ops[j], ArgTy->getVectorElementType());
5222 Ops[j] =
5223 CGF.Builder.CreateInsertElement(UndefValue::get(ArgTy), Ops[j], C0);
5284 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5284 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5285 Ops[1] = Builder.CreateBitCast(Ops[1], SrcTy);
5285 Ops[1] = Builder.CreateBitCast(Ops[1], SrcTy);
5286 Ops[0] = Builder.CreateAdd(Ops[0], Ops[1], "vaddhn");
5286 Ops[0] = Builder.CreateAdd(Ops[0], Ops[1], "vaddhn");
5286 Ops[0] = Builder.CreateAdd(Ops[0], Ops[1], "vaddhn");
5291 Ops[0] = Builder.CreateLShr(Ops[0], ShiftAmt, "vaddhn");
5291 Ops[0] = Builder.CreateLShr(Ops[0], ShiftAmt, "vaddhn");
5294 return Builder.CreateTrunc(Ops[0], VTy, "vaddhn");
5300 std::swap(Ops[0], Ops[1]);
5300 std::swap(Ops[0], Ops[1]);
5326 return EmitAArch64CompareBuiltinExpr(Ops[0], Ty, ICmpInst::FCMP_OEQ,
5330 return EmitAArch64CompareBuiltinExpr(Ops[0], Ty, ICmpInst::FCMP_OGE,
5334 return EmitAArch64CompareBuiltinExpr(Ops[0], Ty, ICmpInst::FCMP_OLE,
5338 return EmitAArch64CompareBuiltinExpr(Ops[0], Ty, ICmpInst::FCMP_OGT,
5342 return EmitAArch64CompareBuiltinExpr(Ops[0], Ty, ICmpInst::FCMP_OLT,
5352 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5352 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5355 return Usgn ? Builder.CreateUIToFP(Ops[0], Ty, "vcvt")
5356 : Builder.CreateSIToFP(Ops[0], Ty, "vcvt");
5359 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5359 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5362 return Usgn ? Builder.CreateUIToFP(Ops[0], Ty, "vcvt")
5363 : Builder.CreateSIToFP(Ops[0], Ty, "vcvt");
5403 Ops[0] = Builder.CreateBitCast(Ops[0], GetFloatNeonType(this, Type));
5403 Ops[0] = Builder.CreateBitCast(Ops[0], GetFloatNeonType(this, Type));
5404 return Usgn ? Builder.CreateFPToUI(Ops[0], Ty, "vcvt")
5405 : Builder.CreateFPToSI(Ops[0], Ty, "vcvt");
5460 int CV = cast<ConstantInt>(Ops[2])->getSExtValue();
5465 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5465 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5466 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5466 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5467 return Builder.CreateShuffleVector(Ops[0], Ops[1], Indices, "vext");
5467 return Builder.CreateShuffleVector(Ops[0], Ops[1], Indices, "vext");
5472 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5472 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5473 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5473 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5474 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5474 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5477 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
5477 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
5477 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
5492 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
5492 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
5495 Ops[1] = Builder.CreateCall(F, Ops[1], "vld1xN");
5495 Ops[1] = Builder.CreateCall(F, Ops[1], "vld1xN");
5496 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
5497 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5497 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5498 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5498 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5515 Ops[1] = Builder.CreateCall(F, {Ops[1], Align}, NameHint);
5515 Ops[1] = Builder.CreateCall(F, {Ops[1], Align}, NameHint);
5516 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
5517 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5517 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5518 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5518 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5527 Ops[0] = Builder.CreateInsertElement(V, Ld, CI);
5528 return EmitNeonSplat(Ops[0], CI);
5539 Ops[I] = Builder.CreateBitCast(Ops[I], Ty);
5539 Ops[I] = Builder.CreateBitCast(Ops[I], Ty);
5541 Ops[1] = Builder.CreateCall(F, makeArrayRef(Ops).slice(1), NameHint);
5542 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
5543 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5543 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5544 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5544 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
5548 Ops[0] = Builder.CreateBitCast(Ops[0], DTy);
5548 Ops[0] = Builder.CreateBitCast(Ops[0], DTy);
5550 return Builder.CreateZExt(Ops[0], Ty, "vmovl");
5551 return Builder.CreateSExt(Ops[0], Ty, "vmovl");
5555 Ops[0] = Builder.CreateBitCast(Ops[0], QTy);
5555 Ops[0] = Builder.CreateBitCast(Ops[0], QTy);
5556 return Builder.CreateTrunc(Ops[0], Ty, "vmovn");
5591 Ops[1] =
5620 Ops[1] = EmitNeonShiftVector(Ops[1], Ty, false);
5620 Ops[1] = EmitNeonShiftVector(Ops[1], Ty, false);
5621 return Builder.CreateShl(Builder.CreateBitCast(Ops[0],Ty), Ops[1],
5621 return Builder.CreateShl(Builder.CreateBitCast(Ops[0],Ty), Ops[1],
5625 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5625 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5627 Ops[0] = Builder.CreateZExt(Ops[0], VTy);
5627 Ops[0] = Builder.CreateZExt(Ops[0], VTy);
5629 Ops[0] = Builder.CreateSExt(Ops[0], VTy);
5629 Ops[0] = Builder.CreateSExt(Ops[0], VTy);
5630 Ops[1] = EmitNeonShiftVector(Ops[1], VTy, false);
5630 Ops[1] = EmitNeonShiftVector(Ops[1], VTy, false);
5631 return Builder.CreateShl(Ops[0], Ops[1], "vshll_n");
5631 return Builder.CreateShl(Ops[0], Ops[1], "vshll_n");
5635 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5635 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5636 Ops[1] = EmitNeonShiftVector(Ops[1], SrcTy, false);
5636 Ops[1] = EmitNeonShiftVector(Ops[1], SrcTy, false);
5638 Ops[0] = Builder.CreateLShr(Ops[0], Ops[1]);
5638 Ops[0] = Builder.CreateLShr(Ops[0], Ops[1]);
5638 Ops[0] = Builder.CreateLShr(Ops[0], Ops[1]);
5640 Ops[0] = Builder.CreateAShr(Ops[0], Ops[1]);
5640 Ops[0] = Builder.CreateAShr(Ops[0], Ops[1]);
5640 Ops[0] = Builder.CreateAShr(Ops[0], Ops[1]);
5641 return Builder.CreateTrunc(Ops[0], Ty, "vshrn_n");
5645 return EmitNeonRShiftImm(Ops[0], Ops[1], Ty, Usgn, "vshr_n");
5645 return EmitNeonRShiftImm(Ops[0], Ops[1], Ty, Usgn, "vshr_n");
5686 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5686 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy);
5687 Ops[1] = Builder.CreateBitCast(Ops[1], SrcTy);
5687 Ops[1] = Builder.CreateBitCast(Ops[1], SrcTy);
5688 Ops[0] = Builder.CreateSub(Ops[0], Ops[1], "vsubhn");
5688 Ops[0] = Builder.CreateSub(Ops[0], Ops[1], "vsubhn");
5688 Ops[0] = Builder.CreateSub(Ops[0], Ops[1], "vsubhn");
5693 Ops[0] = Builder.CreateLShr(Ops[0], ShiftAmt, "vsubhn");
5693 Ops[0] = Builder.CreateLShr(Ops[0], ShiftAmt, "vsubhn");
5696 return Builder.CreateTrunc(Ops[0], VTy, "vsubhn");
5700 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5700 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5701 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5701 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5702 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5702 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5711 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
5712 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vtrn");
5712 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vtrn");
5719 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5719 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
5720 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5720 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5721 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
5721 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
5721 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
5722 Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
5722 Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
5724 return Builder.CreateSExt(Ops[0], Ty, "vtst");
5728 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5728 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5729 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5729 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5730 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5730 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5738 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
5739 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vuzp");
5739 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vuzp");
5746 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5746 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
5747 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5747 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
5748 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5748 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
5757 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
5758 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vzip");
5758 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vzip");
6441 return Builder.CreateExtractElement(Ops[0], Ops[1], "vget_lane");
6441 return Builder.CreateExtractElement(Ops[0], Ops[1], "vget_lane");
6459 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
6459 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
6459 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
6480 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0],
6480 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0],
6480 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0],
6481 Ops[3], Ops[4], Ops[5]});
6481 Ops[3], Ops[4], Ops[5]});
6481 Ops[3], Ops[4], Ops[5]});
6676 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6676 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6677 uint32_t Lane = cast<ConstantInt>(Ops[2])->getZExtValue();
6679 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6679 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6679 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6685 Value *Ld = Builder.CreateCall(F, {Ops[0], Align});
6689 return Builder.CreateShuffleVector(Ops[1], Ld, SV, "vld1q_lane");
6693 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6693 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6696 return Builder.CreateInsertElement(Ops[1], Ld, Ops[2], "vld1_lane");
6696 return Builder.CreateInsertElement(Ops[1], Ld, Ops[2], "vld1_lane");
6722 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
6722 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
6723 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6723 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6724 Ops[2] = EmitNeonShiftVector(Ops[2], Ty, true);
6724 Ops[2] = EmitNeonShiftVector(Ops[2], Ty, true);
6726 Ops[1] = Builder.CreateCall(CGM.getIntrinsic(Int, Ty), {Ops[1], Ops[2]});
6726 Ops[1] = Builder.CreateCall(CGM.getIntrinsic(Int, Ty), {Ops[1], Ops[2]});
6726 Ops[1] = Builder.CreateCall(CGM.getIntrinsic(Int, Ty), {Ops[1], Ops[2]});
6727 return Builder.CreateAdd(Ops[0], Ops[1], "vrsra_n");
6727 return Builder.CreateAdd(Ops[0], Ops[1], "vrsra_n");
6734 Ops[2] = EmitNeonShiftVector(Ops[2], Ty, rightShift);
6734 Ops[2] = EmitNeonShiftVector(Ops[2], Ty, rightShift);
6739 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
6739 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
6740 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
6740 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
6740 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
6741 return Builder.CreateAdd(Ops[0], Ops[1]);
6741 return Builder.CreateAdd(Ops[0], Ops[1]);
6746 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6746 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6747 Value *SV = llvm::ConstantVector::get(cast<llvm::Constant>(Ops[2]));
6748 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6748 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6748 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV);
6749 Ops[2] = getAlignmentValue32(PtrOp0);
6750 llvm::Type *Tys[] = {Int8PtrTy, Ops[1]->getType()};
6756 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6756 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
6757 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
6757 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
6757 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
6758 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
6759 auto St = Builder.CreateStore(Ops[1], Builder.CreateBitCast(PtrOp0, Ty));
6949 Ops[1], Ty, Intrinsic::aarch64_neon_tbl1,
6954 Ops[2], Ty, Intrinsic::aarch64_neon_tbl1,
6959 Ops[3], Ty, Intrinsic::aarch64_neon_tbl2,
6964 Ops[4], Ty, Intrinsic::aarch64_neon_tbl2,
6969 packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 1), nullptr, Ops[2],
6973 Value *CmpRes = Builder.CreateICmp(ICmpInst::ICMP_UGE, Ops[2], EightV);
6976 Value *EltsFromInput = Builder.CreateAnd(CmpRes, Ops[0]);
6981 return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 2), Ops[0],
6982 Ops[3], Ty, Intrinsic::aarch64_neon_tbx1,
6987 packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 3), nullptr, Ops[4],
6991 Value *CmpRes = Builder.CreateICmp(ICmpInst::ICMP_UGE, Ops[4],
6995 Value *EltsFromInput = Builder.CreateAnd(CmpRes, Ops[0]);
7000 return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 4), Ops[0],
7001 Ops[5], Ty, Intrinsic::aarch64_neon_tbx2,
7516 Value *Ptr = Builder.CreateBitCast(Ops[0], Int128PTy);
7526 bool Is64 = Ops[0]->getType()->getPrimitiveSizeInBits() == 64;
7529 Ops[0] = Builder.CreateBitCast(Ops[0], FTy);
7529 Ops[0] = Builder.CreateBitCast(Ops[0], FTy);
7531 return Builder.CreateFPToUI(Ops[0], InTy);
7532 return Builder.CreateFPToSI(Ops[0], InTy);
7541 bool Is64 = Ops[0]->getType()->getPrimitiveSizeInBits() == 64;
7544 Ops[0] = Builder.CreateBitCast(Ops[0], InTy);
7544 Ops[0] = Builder.CreateBitCast(Ops[0], InTy);
7546 return Builder.CreateUIToFP(Ops[0], FTy);
7547 return Builder.CreateSIToFP(Ops[0], FTy);
7560 if (Ops[0]->getType()->getPrimitiveSizeInBits() == 64)
7562 else if (Ops[0]->getType()->getPrimitiveSizeInBits() == 32)
7566 Ops[0] = Builder.CreateBitCast(Ops[0], InTy);
7566 Ops[0] = Builder.CreateBitCast(Ops[0], InTy);
7568 return Builder.CreateUIToFP(Ops[0], FTy);
7569 return Builder.CreateSIToFP(Ops[0], FTy);
7576 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7576 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7578 return Builder.CreateFPToUI(Ops[0], Int16Ty);
7579 return Builder.CreateFPToSI(Ops[0], Int16Ty);
7586 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7586 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7588 return Builder.CreateFPToUI(Ops[0], Int32Ty);
7589 return Builder.CreateFPToSI(Ops[0], Int32Ty);
7596 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7596 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7598 return Builder.CreateFPToUI(Ops[0], Int64Ty);
7599 return Builder.CreateFPToSI(Ops[0], Int64Ty);
7633 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "fcvt");
7634 return Builder.CreateTrunc(Ops[0], Int16Ty);
7652 Int = Intrinsic::aarch64_neon_facge; std::swap(Ops[0], Ops[1]); break;
7652 Int = Intrinsic::aarch64_neon_facge; std::swap(Ops[0], Ops[1]); break;
7654 Int = Intrinsic::aarch64_neon_facgt; std::swap(Ops[0], Ops[1]); break;
7654 Int = Intrinsic::aarch64_neon_facgt; std::swap(Ops[0], Ops[1]); break;
7656 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "facg");
7657 return Builder.CreateTrunc(Ops[0], Int16Ty);
7673 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "fcvth_n");
7674 return Builder.CreateTrunc(Ops[0], Int16Ty);
7687 Ops[0] = Builder.CreateSExt(Ops[0], InTy, "sext");
7687 Ops[0] = Builder.CreateSExt(Ops[0], InTy, "sext");
7691 Ops[0] = Builder.CreateZExt(Ops[0], InTy);
7691 Ops[0] = Builder.CreateZExt(Ops[0], InTy);
7740 Ops[0], ConvertType(E->getCallReturnType(getContext())),
7748 Ops[0], ConvertType(E->getCallReturnType(getContext())),
7756 Ops[0], ConvertType(E->getCallReturnType(getContext())),
7764 Ops[0], ConvertType(E->getCallReturnType(getContext())),
7772 Ops[0], ConvertType(E->getCallReturnType(getContext())),
7777 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7777 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7778 Ops[0] =
7779 Builder.CreateICmpEQ(Ops[0], llvm::Constant::getNullValue(Int64Ty));
7780 return Builder.CreateSExt(Ops[0], Int64Ty, "vceqzd");
7797 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
7797 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
7798 Ops[1] = Builder.CreateBitCast(Ops[1], DoubleTy);
7798 Ops[1] = Builder.CreateBitCast(Ops[1], DoubleTy);
7799 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7799 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7799 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7800 return Builder.CreateSExt(Ops[0], Int64Ty, "vcmpd");
7817 Ops[0] = Builder.CreateBitCast(Ops[0], FloatTy);
7817 Ops[0] = Builder.CreateBitCast(Ops[0], FloatTy);
7818 Ops[1] = Builder.CreateBitCast(Ops[1], FloatTy);
7818 Ops[1] = Builder.CreateBitCast(Ops[1], FloatTy);
7819 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7819 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7819 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7820 return Builder.CreateSExt(Ops[0], Int32Ty, "vcmpd");
7837 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7837 Ops[0] = Builder.CreateBitCast(Ops[0], HalfTy);
7838 Ops[1] = Builder.CreateBitCast(Ops[1], HalfTy);
7838 Ops[1] = Builder.CreateBitCast(Ops[1], HalfTy);
7839 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7839 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7839 Ops[0] = Builder.CreateFCmp(P, Ops[0], Ops[1]);
7840 return Builder.CreateSExt(Ops[0], Int16Ty, "vcmpd");
7867 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7867 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7868 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
7868 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
7869 Ops[0] = Builder.CreateICmp(P, Ops[0], Ops[1]);
7869 Ops[0] = Builder.CreateICmp(P, Ops[0], Ops[1]);
7869 Ops[0] = Builder.CreateICmp(P, Ops[0], Ops[1]);
7870 return Builder.CreateSExt(Ops[0], Int64Ty, "vceqd");
7875 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7875 Ops[0] = Builder.CreateBitCast(Ops[0], Int64Ty);
7876 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
7876 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
7877 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
7877 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
7877 Ops[0] = Builder.CreateAnd(Ops[0], Ops[1]);
7878 Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
7878 Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
7880 return Builder.CreateSExt(Ops[0], Int64Ty, "vtstd");
7893 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7893 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7893 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7896 Ops[1] = Builder.CreateBitCast(Ops[1],
7896 Ops[1] = Builder.CreateBitCast(Ops[1],
7899 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7899 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7899 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7902 Ops[1] = Builder.CreateBitCast(Ops[1],
7902 Ops[1] = Builder.CreateBitCast(Ops[1],
7905 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7905 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7905 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vset_lane");
7909 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 8));
7909 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 8));
7910 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7914 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 16));
7914 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int8Ty, 16));
7915 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7919 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 4));
7919 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 4));
7920 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7924 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 8));
7924 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int16Ty, 8));
7925 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7929 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 2));
7929 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 2));
7930 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7933 Ops[0] = Builder.CreateBitCast(Ops[0],
7933 Ops[0] = Builder.CreateBitCast(Ops[0],
7935 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7939 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
7939 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
7940 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7944 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 1));
7944 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 1));
7945 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7948 Ops[0] = Builder.CreateBitCast(Ops[0],
7948 Ops[0] = Builder.CreateBitCast(Ops[0],
7950 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7954 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
7954 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
7955 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7958 Ops[0] = Builder.CreateBitCast(Ops[0],
7958 Ops[0] = Builder.CreateBitCast(Ops[0],
7960 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7963 Ops[0] = Builder.CreateBitCast(Ops[0],
7963 Ops[0] = Builder.CreateBitCast(Ops[0],
7965 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7969 Ops[0] = Builder.CreateBitCast(Ops[0],
7969 Ops[0] = Builder.CreateBitCast(Ops[0],
7971 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7975 Ops[0] = Builder.CreateBitCast(Ops[0],
7975 Ops[0] = Builder.CreateBitCast(Ops[0],
7977 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
7981 return Builder.CreateFAdd(Ops[0], Ops[1], "vaddh");
7981 return Builder.CreateFAdd(Ops[0], Ops[1], "vaddh");
7984 return Builder.CreateFSub(Ops[0], Ops[1], "vsubh");
7984 return Builder.CreateFSub(Ops[0], Ops[1], "vsubh");
7987 return Builder.CreateFMul(Ops[0], Ops[1], "vmulh");
7987 return Builder.CreateFMul(Ops[0], Ops[1], "vmulh");
7990 return Builder.CreateFDiv(Ops[0], Ops[1], "vdivh");
7990 return Builder.CreateFDiv(Ops[0], Ops[1], "vdivh");
7995 {EmitScalarExpr(E->getArg(1)), EmitScalarExpr(E->getArg(2)), Ops[0]});
8002 return Builder.CreateCall(F, {Sub, EmitScalarExpr(E->getArg(2)), Ops[0]});
8006 return Builder.CreateAdd(Ops[0], EmitScalarExpr(E->getArg(1)), "vaddd");
8009 return Builder.CreateSub(Ops[0], EmitScalarExpr(E->getArg(1)), "vsubd");
8013 ProductOps.push_back(vectorWrapScalar16(Ops[1]));
8016 Ops[1] = EmitNeonCall(CGM.getIntrinsic(Intrinsic::aarch64_neon_sqdmull, VTy),
8019 Ops[1] = Builder.CreateExtractElement(Ops[1], CI, "lane0");
8019 Ops[1] = Builder.CreateExtractElement(Ops[1], CI, "lane0");
8028 Ops[1] = Builder.CreateZExt(Ops[1], Int64Ty);
8028 Ops[1] = Builder.CreateZExt(Ops[1], Int64Ty);
8038 Ops[1] = Builder.CreateZExt(Ops[1], Int64Ty);
8038 Ops[1] = Builder.CreateZExt(Ops[1], Int64Ty);
8047 int SV = cast<ConstantInt>(Ops[1])->getSExtValue();
8048 Ops[1] = ConstantInt::get(Int64Ty, -SV);
8056 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
8056 Ops[1] = Builder.CreateBitCast(Ops[1], Int64Ty);
8058 Ops[1] = Builder.CreateCall(CGM.getIntrinsic(Int, Int64Ty),
8059 {Ops[1], Builder.CreateSExt(Ops[2], Int64Ty)});
8059 {Ops[1], Builder.CreateSExt(Ops[2], Int64Ty)});
8060 return Builder.CreateAdd(Ops[0], Builder.CreateBitCast(Ops[1], Int64Ty));
8060 return Builder.CreateAdd(Ops[0], Builder.CreateBitCast(Ops[1], Int64Ty));
8066 Ops[0], ConstantInt::get(Int64Ty, Amt->getZExtValue()), "shld_n");
8071 Ops[0], ConstantInt::get(Int64Ty, std::min(static_cast<uint64_t>(63),
8081 return Builder.CreateLShr(Ops[0], ConstantInt::get(Int64Ty, ShiftAmt),
8086 Ops[1] = Builder.CreateAShr(
8087 Ops[1], ConstantInt::get(Int64Ty, std::min(static_cast<uint64_t>(63),
8090 return Builder.CreateAdd(Ops[0], Ops[1]);
8090 return Builder.CreateAdd(Ops[0], Ops[1]);
8098 return Ops[0];
8099 Ops[1] = Builder.CreateLShr(Ops[1], ConstantInt::get(Int64Ty, ShiftAmt),
8099 Ops[1] = Builder.CreateLShr(Ops[1], ConstantInt::get(Int64Ty, ShiftAmt),
8101 return Builder.CreateAdd(Ops[0], Ops[1]);
8101 return Builder.CreateAdd(Ops[0], Ops[1]);
8107 Ops[2] = Builder.CreateExtractElement(Ops[2], EmitScalarExpr(E->getArg(3)),
8107 Ops[2] = Builder.CreateExtractElement(Ops[2], EmitScalarExpr(E->getArg(3)),
8110 ProductOps.push_back(vectorWrapScalar16(Ops[1]));
8111 ProductOps.push_back(vectorWrapScalar16(Ops[2]));
8113 Ops[1] = EmitNeonCall(CGM.getIntrinsic(Intrinsic::aarch64_neon_sqdmull, VTy),
8116 Ops[1] = Builder.CreateExtractElement(Ops[1], CI, "lane0");
8116 Ops[1] = Builder.CreateExtractElement(Ops[1], CI, "lane0");
8128 ProductOps.push_back(Ops[1]);
8130 Ops[1] =
8143 Ops[2] = Builder.CreateExtractElement(Ops[2], EmitScalarExpr(E->getArg(3)),
8143 Ops[2] = Builder.CreateExtractElement(Ops[2], EmitScalarExpr(E->getArg(3)),
8146 ProductOps.push_back(Ops[1]);
8147 ProductOps.push_back(Ops[2]);
8148 Ops[1] =
8160 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
8164 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)),
8339 Ops[0] = Builder.CreateBitCast(Ops[0], BitTy, "vbsl");
8339 Ops[0] = Builder.CreateBitCast(Ops[0], BitTy, "vbsl");
8340 Ops[1] = Builder.CreateBitCast(Ops[1], BitTy, "vbsl");
8340 Ops[1] = Builder.CreateBitCast(Ops[1], BitTy, "vbsl");
8341 Ops[2] = Builder.CreateBitCast(Ops[2], BitTy, "vbsl");
8341 Ops[2] = Builder.CreateBitCast(Ops[2], BitTy, "vbsl");
8343 Ops[1] = Builder.CreateAnd(Ops[0], Ops[1], "vbsl");
8343 Ops[1] = Builder.CreateAnd(Ops[0], Ops[1], "vbsl");
8343 Ops[1] = Builder.CreateAnd(Ops[0], Ops[1], "vbsl");
8344 Ops[2] = Builder.CreateAnd(Builder.CreateNot(Ops[0]), Ops[2], "vbsl");
8344 Ops[2] = Builder.CreateAnd(Builder.CreateNot(Ops[0]), Ops[2], "vbsl");
8344 Ops[2] = Builder.CreateAnd(Builder.CreateNot(Ops[0]), Ops[2], "vbsl");
8345 Ops[0] = Builder.CreateOr(Ops[1], Ops[2], "vbsl");
8345 Ops[0] = Builder.CreateOr(Ops[1], Ops[2], "vbsl");
8345 Ops[0] = Builder.CreateOr(Ops[1], Ops[2], "vbsl");
8346 return Builder.CreateBitCast(Ops[0], Ty);
8352 Value *Addend = Ops[0];
8353 Value *Multiplicand = Ops[1];
8354 Value *LaneSource = Ops[2];
8355 Ops[0] = Multiplicand;
8356 Ops[1] = LaneSource;
8357 Ops[2] = Addend;
8363 llvm::Constant *cst = cast<Constant>(Ops[3]);
8365 Ops[1] = Builder.CreateBitCast(Ops[1], SourceTy);
8365 Ops[1] = Builder.CreateBitCast(Ops[1], SourceTy);
8366 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV, "lane");
8366 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV, "lane");
8366 Ops[1] = Builder.CreateShuffleVector(Ops[1], Ops[1], SV, "lane");
8376 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
8376 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
8377 Ops[1] = Builder.CreateBitCast(Ops[1], DoubleTy);
8377 Ops[1] = Builder.CreateBitCast(Ops[1], DoubleTy);
8380 Ops[2] = Builder.CreateBitCast(Ops[2], VTy);
8380 Ops[2] = Builder.CreateBitCast(Ops[2], VTy);
8381 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8381 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8381 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8383 Value *Result = Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8383 Value *Result = Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8383 Value *Result = Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8387 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8387 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8388 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
8388 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
8392 Ops[2] = Builder.CreateBitCast(Ops[2], STy);
8392 Ops[2] = Builder.CreateBitCast(Ops[2], STy);
8394 cast<ConstantInt>(Ops[3]));
8395 Ops[2] = Builder.CreateShuffleVector(Ops[2], Ops[2], SV, "lane");
8395 Ops[2] = Builder.CreateShuffleVector(Ops[2], Ops[2], SV, "lane");
8395 Ops[2] = Builder.CreateShuffleVector(Ops[2], Ops[2], SV, "lane");
8397 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8397 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8397 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8401 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8401 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8402 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
8402 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
8404 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
8404 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
8405 Ops[2] = EmitNeonSplat(Ops[2], cast<ConstantInt>(Ops[3]));
8405 Ops[2] = EmitNeonSplat(Ops[2], cast<ConstantInt>(Ops[3]));
8405 Ops[2] = EmitNeonSplat(Ops[2], cast<ConstantInt>(Ops[3]));
8406 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8406 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8406 return Builder.CreateCall(F, {Ops[2], Ops[1], Ops[0]});
8417 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8417 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8417 Ops[2] = Builder.CreateExtractElement(Ops[2], Ops[3], "extract");
8418 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8418 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8418 return Builder.CreateCall(F, {Ops[1], Ops[2], Ops[0]});
8463 TmpOps.push_back(Ops[1]);
8466 llvm::Value *addend = Builder.CreateBitCast(Ops[0], tmp->getType());
8597 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8597 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8599 return usgn ? Builder.CreateUIToFP(Ops[0], Ty, "vcvt")
8600 : Builder.CreateSIToFP(Ops[0], Ty, "vcvt");
8605 Ops[0] = Builder.CreateBitCast(Ops[0], GetNeonType(this, SrcFlag));
8605 Ops[0] = Builder.CreateBitCast(Ops[0], GetNeonType(this, SrcFlag));
8607 return Builder.CreateFPExt(Ops[0], Ty, "vcvt");
8613 Ops[0] = Builder.CreateBitCast(Ops[0], GetNeonType(this, SrcFlag));
8613 Ops[0] = Builder.CreateBitCast(Ops[0], GetNeonType(this, SrcFlag));
8615 return Builder.CreateFPTrunc(Ops[0], Ty, "vcvt");
8629 Ops[0] = Builder.CreateBitCast(Ops[0], GetFloatNeonType(this, Type));
8629 Ops[0] = Builder.CreateBitCast(Ops[0], GetFloatNeonType(this, Type));
8631 return Builder.CreateFPToUI(Ops[0], Ty);
8632 return Builder.CreateFPToSI(Ops[0], Ty);
8708 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8708 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8708 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8719 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
8719 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
8722 Ops[1] = Builder.CreateBitCast(Ops[1], VTy);
8722 Ops[1] = Builder.CreateBitCast(Ops[1], VTy);
8723 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8723 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8723 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2], "extract");
8724 Value *Result = Builder.CreateFMul(Ops[0], Ops[1]);
8724 Value *Result = Builder.CreateFMul(Ops[0], Ops[1]);
8749 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8749 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
8767 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddv");
8768 return Builder.CreateTrunc(Ops[0], Int8Ty);
8779 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddv");
8780 return Builder.CreateTrunc(Ops[0], Int16Ty);
8791 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddv");
8792 return Builder.CreateTrunc(Ops[0], Int8Ty);
8803 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddv");
8804 return Builder.CreateTrunc(Ops[0], Int16Ty);
8812 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8813 return Builder.CreateTrunc(Ops[0], Int8Ty);
8821 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8822 return Builder.CreateTrunc(Ops[0], Int16Ty);
8830 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8831 return Builder.CreateTrunc(Ops[0], Int8Ty);
8839 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8840 return Builder.CreateTrunc(Ops[0], Int16Ty);
8848 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8849 return Builder.CreateTrunc(Ops[0], Int8Ty);
8857 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8858 return Builder.CreateTrunc(Ops[0], Int16Ty);
8866 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8867 return Builder.CreateTrunc(Ops[0], Int8Ty);
8875 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8876 return Builder.CreateTrunc(Ops[0], Int16Ty);
8884 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8885 return Builder.CreateTrunc(Ops[0], HalfTy);
8893 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxv");
8894 return Builder.CreateTrunc(Ops[0], HalfTy);
8902 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8903 return Builder.CreateTrunc(Ops[0], Int8Ty);
8911 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8912 return Builder.CreateTrunc(Ops[0], Int16Ty);
8920 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8921 return Builder.CreateTrunc(Ops[0], Int8Ty);
8929 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8930 return Builder.CreateTrunc(Ops[0], Int16Ty);
8938 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8939 return Builder.CreateTrunc(Ops[0], Int8Ty);
8947 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8948 return Builder.CreateTrunc(Ops[0], Int16Ty);
8956 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8957 return Builder.CreateTrunc(Ops[0], Int8Ty);
8965 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8966 return Builder.CreateTrunc(Ops[0], Int16Ty);
8974 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8975 return Builder.CreateTrunc(Ops[0], HalfTy);
8983 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminv");
8984 return Builder.CreateTrunc(Ops[0], HalfTy);
8992 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxnmv");
8993 return Builder.CreateTrunc(Ops[0], HalfTy);
9001 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vmaxnmv");
9002 return Builder.CreateTrunc(Ops[0], HalfTy);
9010 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminnmv");
9011 return Builder.CreateTrunc(Ops[0], HalfTy);
9019 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vminnmv");
9020 return Builder.CreateTrunc(Ops[0], HalfTy);
9023 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
9023 Ops[0] = Builder.CreateBitCast(Ops[0], DoubleTy);
9025 return Builder.CreateFMul(Ops[0], RHS);
9033 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddlv");
9034 return Builder.CreateTrunc(Ops[0], Int16Ty);
9050 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddlv");
9051 return Builder.CreateTrunc(Ops[0], Int16Ty);
9067 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddlv");
9068 return Builder.CreateTrunc(Ops[0], Int16Ty);
9084 Ops[0] = EmitNeonCall(CGM.getIntrinsic(Int, Tys), Ops, "vaddlv");
9085 return Builder.CreateTrunc(Ops[0], Int16Ty);
9109 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9109 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9110 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
9110 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
9110 Ops[1] = EmitNeonRShiftImm(Ops[1], Ops[2], Ty, usgn, "vsra_n");
9111 return Builder.CreateAdd(Ops[0], Ops[1]);
9111 return Builder.CreateAdd(Ops[0], Ops[1]);
9116 TmpOps.push_back(Ops[1]);
9117 TmpOps.push_back(Ops[2]);
9120 Ops[0] = Builder.CreateBitCast(Ops[0], VTy);
9120 Ops[0] = Builder.CreateBitCast(Ops[0], VTy);
9121 return Builder.CreateAdd(Ops[0], tmp);
9125 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(VTy));
9125 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(VTy));
9128 return Builder.CreateAlignedLoad(VTy, Ops[0], Alignment);
9132 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(VTy));
9132 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(VTy));
9133 Ops[1] = Builder.CreateBitCast(Ops[1], VTy);
9133 Ops[1] = Builder.CreateBitCast(Ops[1], VTy);
9134 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9134 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9137 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9137 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9139 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9139 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9142 Ops[0] =
9143 Builder.CreateAlignedLoad(VTy->getElementType(), Ops[0], Alignment);
9144 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vld1_lane");
9144 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vld1_lane");
9144 return Builder.CreateInsertElement(Ops[1], Ops[0], Ops[2], "vld1_lane");
9150 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9150 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9153 Ops[0] =
9154 Builder.CreateAlignedLoad(VTy->getElementType(), Ops[0], Alignment);
9156 Ops[0] = Builder.CreateInsertElement(V, Ops[0], CI);
9156 Ops[0] = Builder.CreateInsertElement(V, Ops[0], CI);
9157 return EmitNeonSplat(Ops[0], CI);
9161 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9161 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9162 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
9162 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
9162 Ops[1] = Builder.CreateExtractElement(Ops[1], Ops[2]);
9163 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
9164 return Builder.CreateDefaultAlignedStore(Ops[1],
9165 Builder.CreateBitCast(Ops[0], Ty));
9169 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9169 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9172 Ops[1] = Builder.CreateCall(F, Ops[1], "vld2");
9172 Ops[1] = Builder.CreateCall(F, Ops[1], "vld2");
9173 Ops[0] = Builder.CreateBitCast(Ops[0],
9173 Ops[0] = Builder.CreateBitCast(Ops[0],
9174 llvm::PointerType::getUnqual(Ops[1]->getType()));
9175 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9175 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9180 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9180 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9183 Ops[1] = Builder.CreateCall(F, Ops[1], "vld3");
9183 Ops[1] = Builder.CreateCall(F, Ops[1], "vld3");
9184 Ops[0] = Builder.CreateBitCast(Ops[0],
9184 Ops[0] = Builder.CreateBitCast(Ops[0],
9185 llvm::PointerType::getUnqual(Ops[1]->getType()));
9186 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9186 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9191 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9191 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9194 Ops[1] = Builder.CreateCall(F, Ops[1], "vld4");
9194 Ops[1] = Builder.CreateCall(F, Ops[1], "vld4");
9195 Ops[0] = Builder.CreateBitCast(Ops[0],
9195 Ops[0] = Builder.CreateBitCast(Ops[0],
9196 llvm::PointerType::getUnqual(Ops[1]->getType()));
9197 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9197 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9203 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9203 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9206 Ops[1] = Builder.CreateCall(F, Ops[1], "vld2");
9206 Ops[1] = Builder.CreateCall(F, Ops[1], "vld2");
9207 Ops[0] = Builder.CreateBitCast(Ops[0],
9207 Ops[0] = Builder.CreateBitCast(Ops[0],
9208 llvm::PointerType::getUnqual(Ops[1]->getType()));
9209 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9209 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9215 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9215 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9218 Ops[1] = Builder.CreateCall(F, Ops[1], "vld3");
9218 Ops[1] = Builder.CreateCall(F, Ops[1], "vld3");
9219 Ops[0] = Builder.CreateBitCast(Ops[0],
9219 Ops[0] = Builder.CreateBitCast(Ops[0],
9220 llvm::PointerType::getUnqual(Ops[1]->getType()));
9221 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9221 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9227 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9227 Ops[1] = Builder.CreateBitCast(Ops[1], PTy);
9230 Ops[1] = Builder.CreateCall(F, Ops[1], "vld4");
9230 Ops[1] = Builder.CreateCall(F, Ops[1], "vld4");
9231 Ops[0] = Builder.CreateBitCast(Ops[0],
9231 Ops[0] = Builder.CreateBitCast(Ops[0],
9232 llvm::PointerType::getUnqual(Ops[1]->getType()));
9233 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9233 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9237 llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
9239 Ops.push_back(Ops[1]);
9241 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9241 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9242 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9242 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9243 Ops[3] = Builder.CreateZExt(Ops[3], Int64Ty);
9243 Ops[3] = Builder.CreateZExt(Ops[3], Int64Ty);
9244 Ops[1] = Builder.CreateCall(F, makeArrayRef(Ops).slice(1), "vld2_lane");
9245 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
9246 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9246 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9247 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9247 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9251 llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
9253 Ops.push_back(Ops[1]);
9255 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9255 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9256 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9256 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9257 Ops[3] = Builder.CreateBitCast(Ops[3], Ty);
9257 Ops[3] = Builder.CreateBitCast(Ops[3], Ty);
9258 Ops[4] = Builder.CreateZExt(Ops[4], Int64Ty);
9258 Ops[4] = Builder.CreateZExt(Ops[4], Int64Ty);
9259 Ops[1] = Builder.CreateCall(F, makeArrayRef(Ops).slice(1), "vld3_lane");
9260 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
9261 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9261 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9262 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9262 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9266 llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
9268 Ops.push_back(Ops[1]);
9270 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9270 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9271 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9271 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9272 Ops[3] = Builder.CreateBitCast(Ops[3], Ty);
9272 Ops[3] = Builder.CreateBitCast(Ops[3], Ty);
9273 Ops[4] = Builder.CreateBitCast(Ops[4], Ty);
9273 Ops[4] = Builder.CreateBitCast(Ops[4], Ty);
9274 Ops[5] = Builder.CreateZExt(Ops[5], Int64Ty);
9274 Ops[5] = Builder.CreateZExt(Ops[5], Int64Ty);
9275 Ops[1] = Builder.CreateCall(F, makeArrayRef(Ops).slice(1), "vld4_lane");
9276 Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
9277 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9277 Ops[0] = Builder.CreateBitCast(Ops[0], Ty);
9278 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9278 return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
9282 Ops.push_back(Ops[0]);
9284 llvm::Type *Tys[2] = { VTy, Ops[2]->getType() };
9290 Ops.push_back(Ops[0]);
9292 Ops[2] = Builder.CreateZExt(Ops[2], Int64Ty);
9292 Ops[2] = Builder.CreateZExt(Ops[2], Int64Ty);
9293 llvm::Type *Tys[2] = { VTy, Ops[3]->getType() };
9299 Ops.push_back(Ops[0]);
9301 llvm::Type *Tys[2] = { VTy, Ops[3]->getType() };
9307 Ops.push_back(Ops[0]);
9309 Ops[3] = Builder.CreateZExt(Ops[3], Int64Ty);
9309 Ops[3] = Builder.CreateZExt(Ops[3], Int64Ty);
9310 llvm::Type *Tys[2] = { VTy, Ops[4]->getType() };
9316 Ops.push_back(Ops[0]);
9318 llvm::Type *Tys[2] = { VTy, Ops[4]->getType() };
9324 Ops.push_back(Ops[0]);
9326 Ops[4] = Builder.CreateZExt(Ops[4], Int64Ty);
9326 Ops[4] = Builder.CreateZExt(Ops[4], Int64Ty);
9327 llvm::Type *Tys[2] = { VTy, Ops[5]->getType() };
9333 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9333 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9334 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9334 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9335 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9335 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9344 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
9345 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vtrn");
9345 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vtrn");
9352 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9352 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9353 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9353 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9354 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9354 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9362 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
9363 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vuzp");
9363 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vuzp");
9370 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9370 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::PointerType::getUnqual(Ty));
9371 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9371 Ops[1] = Builder.CreateBitCast(Ops[1], Ty);
9372 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9372 Ops[2] = Builder.CreateBitCast(Ops[2], Ty);
9381 Value *Addr = Builder.CreateConstInBoundsGEP1_32(Ty, Ops[0], vi);
9382 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vzip");
9382 SV = Builder.CreateShuffleVector(Ops[1], Ops[2], Indices, "vzip");
9847 Indices[i] = i + (i % 2) * NumElts;
10206 Value *Cmp = Builder.CreateFCmp(Pred, Ops[0], Ops[1]);
10206 Value *Cmp = Builder.CreateFCmp(Pred, Ops[0], Ops[1]);
10207 llvm::VectorType *FPVecTy = cast<llvm::VectorType>(Ops[0]->getType());
10216 Value *Address = Ops[0];
10217 ConstantInt *C = cast<ConstantInt>(Ops[1]);
10226 Ops[0]);
10246 Ops[0]);
10252 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, Ops[0]->getType());
10253 return Builder.CreateCall(F, {Ops[0], Builder.getInt1(false)});
10258 Function *F = CGM.getIntrinsic(Intrinsic::cttz, Ops[0]->getType());
10259 return Builder.CreateCall(F, {Ops[0], Builder.getInt1(false)});
10285 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10286 uint64_t Index = cast<ConstantInt>(Ops[1])->getZExtValue();
10290 return Builder.CreateExtractElement(Ops[0], Index);
10300 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10301 unsigned Index = cast<ConstantInt>(Ops[2])->getZExtValue();
10305 return Builder.CreateInsertElement(Ops[0], Ops[1], Index);
10305 return Builder.CreateInsertElement(Ops[0], Ops[1], Index);
10310 Builder.CreateStore(Ops[0], Tmp);
10361 Builder.CreateLShr(Ops[1], ConstantInt::get(Int64Ty, 32)), Int32Ty);
10362 Value *Mlo = Builder.CreateTrunc(Ops[1], Int32Ty);
10363 Ops[1] = Mhi;
10422 return EmitX86SExtMask(*this, Ops[0], ConvertType(E->getType()));
10436 return EmitX86ConvertToMask(*this, Ops[0]);
10451 return EmitScalarFMAExpr(*this, Ops, Ops[0]);
10455 Constant::getNullValue(Ops[0]->getType()));
10458 return EmitScalarFMAExpr(*this, Ops, Ops[0], /*ZeroMask*/true);
10461 return EmitScalarFMAExpr(*this, Ops, Ops[2], /*ZeroMask*/false, 2);
10464 return EmitScalarFMAExpr(*this, Ops, Ops[2], /*ZeroMask*/false, 2,
10731 unsigned MinElts = std::min(Ops[0]->getType()->getVectorNumElements(),
10732 Ops[2]->getType()->getVectorNumElements());
10733 Ops[3] = getMaskVecValue(*this, Ops[3], MinElts);
10733 Ops[3] = getMaskVecValue(*this, Ops[3], MinElts);
10839 unsigned MinElts = std::min(Ops[2]->getType()->getVectorNumElements(),
10840 Ops[3]->getType()->getVectorNumElements());
10841 Ops[1] = getMaskVecValue(*this, Ops[1], MinElts);
10841 Ops[1] = getMaskVecValue(*this, Ops[1], MinElts);
10864 unsigned SrcNumElts = Ops[0]->getType()->getVectorNumElements();
10866 unsigned Index = cast<ConstantInt>(Ops[1])->getZExtValue();
10875 Value *Res = Builder.CreateShuffleVector(Ops[0],
10876 UndefValue::get(Ops[0]->getType()),
10881 Res = EmitX86Select(*this, Ops[3], Res, Ops[2]);
10881 Res = EmitX86Select(*this, Ops[3], Res, Ops[2]);
10901 unsigned DstNumElts = Ops[0]->getType()->getVectorNumElements();
10902 unsigned SrcNumElts = Ops[1]->getType()->getVectorNumElements();
10904 unsigned Index = cast<ConstantInt>(Ops[2])->getZExtValue();
10913 Value *Op1 = Builder.CreateShuffleVector(Ops[1],
10914 UndefValue::get(Ops[1]->getType()),
10925 return Builder.CreateShuffleVector(Ops[0], Op1,
10931 Value *Res = Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10931 Value *Res = Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10932 return EmitX86Select(*this, Ops[2], Res, Ops[1]);
10932 return EmitX86Select(*this, Ops[2], Res, Ops[1]);
10937 if (const auto *C = dyn_cast<Constant>(Ops[2]))
10939 return Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10939 return Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10966 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10967 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
10975 return Builder.CreateShuffleVector(Ops[0], Ops[1],
10975 return Builder.CreateShuffleVector(Ops[0], Ops[1],
10982 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
10983 llvm::Type *Ty = Ops[0]->getType();
10999 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11006 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11007 llvm::Type *Ty = Ops[0]->getType();
11023 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11036 uint32_t Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11037 llvm::Type *Ty = Ops[0]->getType();
11053 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11063 uint32_t Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11064 llvm::Type *Ty = Ops[0]->getType();
11083 return Builder.CreateShuffleVector(Ops[0], Ops[1],
11083 return Builder.CreateShuffleVector(Ops[0], Ops[1],
11091 unsigned Imm = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11092 llvm::Type *Ty = Ops[0]->getType();
11101 return Builder.CreateShuffleVector(Ops[0], UndefValue::get(Ty),
11108 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0xff;
11110 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11122 Ops[1] = Ops[0];
11122 Ops[1] = Ops[0];
11123 Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType());
11123 Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType());
11137 return Builder.CreateShuffleVector(Ops[1], Ops[0],
11137 return Builder.CreateShuffleVector(Ops[1], Ops[0],
11147 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11148 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0xff;
11157 return Builder.CreateShuffleVector(Ops[1], Ops[0],
11157 return Builder.CreateShuffleVector(Ops[1], Ops[0],
11169 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11170 llvm::Type *Ty = Ops[0]->getType();
11186 return Builder.CreateShuffleVector(Ops[0], Ops[1],
11186 return Builder.CreateShuffleVector(Ops[0], Ops[1],
11195 unsigned Imm = cast<llvm::ConstantInt>(Ops[2])->getZExtValue();
11196 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11208 OutOps[l] = llvm::ConstantAggregateZero::get(Ops[0]->getType());
11210 OutOps[l] = Ops[1];
11212 OutOps[l] = Ops[0];
11233 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11234 llvm::Type *ResultType = Ops[0]->getType();
11253 Value *Cast = Builder.CreateBitCast(Ops[0], VecTy, "cast");
11258 return Builder.CreateBitCast(SV, Ops[0]->getType(), "cast");
11263 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11264 llvm::Type *ResultType = Ops[0]->getType();
11283 Value *Cast = Builder.CreateBitCast(Ops[0], VecTy, "cast");
11294 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11295 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11298 return llvm::Constant::getNullValue(Ops[0]->getType());
11300 Value *In = getMaskVecValue(*this, Ops[0], NumElts);
11310 return Builder.CreateBitCast(SV, Ops[0]->getType());
11316 unsigned ShiftVal = cast<llvm::ConstantInt>(Ops[1])->getZExtValue() & 0xff;
11317 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11320 return llvm::Constant::getNullValue(Ops[0]->getType());
11322 Value *In = getMaskVecValue(*this, Ops[0], NumElts);
11332 return Builder.CreateBitCast(SV, Ops[0]->getType());
11341 Value *Ptr = Ops[0];
11342 Value *Src = Ops[1];
11380 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], false);
11380 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], false);
11380 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], false);
11393 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], true);
11393 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], true);
11393 return EmitX86FunnelShift(*this, Ops[0], Ops[0], Ops[1], true);
11412 return EmitX86Select(*this, Ops[0], Ops[1], Ops[2]);
11412 return EmitX86Select(*this, Ops[0], Ops[1], Ops[2]);
11412 return EmitX86Select(*this, Ops[0], Ops[1], Ops[2]);
11415 Value *A = Builder.CreateExtractElement(Ops[1], (uint64_t)0);
11416 Value *B = Builder.CreateExtractElement(Ops[2], (uint64_t)0);
11417 A = EmitX86ScalarSelect(*this, Ops[0], A, B);
11418 return Builder.CreateInsertElement(Ops[1], A, (uint64_t)0);
11432 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x7;
11447 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x7;
11466 Value *C = llvm::Constant::getAllOnesValue(Ops[0]->getType());
11475 Value *C = llvm::Constant::getNullValue(Ops[0]->getType());
11517 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11518 Value *LHS = getMaskVecValue(*this, Ops[0], NumElts);
11519 Value *RHS = getMaskVecValue(*this, Ops[1], NumElts);
11545 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11546 Value *LHS = getMaskVecValue(*this, Ops[0], NumElts);
11547 Value *RHS = getMaskVecValue(*this, Ops[1], NumElts);
11550 return Builder.CreateBitCast(Res, Ops[0]->getType());
11581 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11582 Value *Res = getMaskVecValue(*this, Ops[0], NumElts);
11584 Ops[0]->getType());
11593 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11594 Value *Res = getMaskVecValue(*this, Ops[0], NumElts);
11595 return Builder.CreateBitCast(Res, Ops[0]->getType());
11601 unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11602 Value *LHS = getMaskVecValue(*this, Ops[0], NumElts);
11603 Value *RHS = getMaskVecValue(*this, Ops[1], NumElts);
11618 return Builder.CreateBitCast(Res, Ops[0]->getType());
11627 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, Ops[0]->getType());
11628 return Builder.CreateCall(F, {Ops[0],Builder.getInt1(false)});
11632 Value *A = Builder.CreateExtractElement(Ops[0], (uint64_t)0);
11635 return Builder.CreateInsertElement(Ops[0], A, (uint64_t)0);
11639 unsigned CC = cast<llvm::ConstantInt>(Ops[4])->getZExtValue();
11648 Value *A = Builder.CreateExtractElement(Ops[1], (uint64_t)0);
11651 Value *Src = Builder.CreateExtractElement(Ops[2], (uint64_t)0);
11652 A = EmitX86ScalarSelect(*this, Ops[3], A, Src);
11653 return Builder.CreateInsertElement(Ops[0], A, (uint64_t)0);
11662 unsigned CC = cast<llvm::ConstantInt>(Ops[1])->getZExtValue();
11672 Function *F = CGM.getIntrinsic(Intrinsic::sqrt, Ops[0]->getType());
11673 return Builder.CreateCall(F, Ops[0]);
11777 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11777 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11777 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11789 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11789 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11789 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11800 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11800 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11800 return EmitX86FunnelShift(*this, Ops[0], Ops[1], Ops[2], false);
11812 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11812 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11812 return EmitX86FunnelShift(*this, Ops[1], Ops[0], Ops[2], true);
11818 Ops[0] = Builder.CreateBitCast(Ops[0], MMXTy, "cast");
11818 Ops[0] = Builder.CreateBitCast(Ops[0], MMXTy, "cast");
11853 Ops[0]);
11878 { Ops[0], Ops[1], Ops[2] });
11878 { Ops[0], Ops[1], Ops[2] });
11878 { Ops[0], Ops[1], Ops[2] });
11880 Ops[3]);
11890 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11891 Value *MaskIn = Ops[2];
11892 Ops.erase(&Ops[2]);
11927 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11952 Value *Call = Builder.CreateCall(CGM.getIntrinsic(ID), {Ops[0], Ops[1]});
11952 Value *Call = Builder.CreateCall(CGM.getIntrinsic(ID), {Ops[0], Ops[1]});
11955 Builder.CreateDefaultAlignedStore(Result, Ops[2]);
11959 return Builder.CreateDefaultAlignedStore(Result, Ops[3]);
11985 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11986 Value *MaskIn = Ops[2];
11987 Ops.erase(&Ops[2]);
12050 unsigned CC = cast<llvm::ConstantInt>(Ops[2])->getZExtValue() & 0x1f;
12101 unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
12102 Value *Cmp = Builder.CreateFCmp(Pred, Ops[0], Ops[1]);
12102 Value *Cmp = Builder.CreateFCmp(Pred, Ops[0], Ops[1]);
12103 return EmitX86MaskedCompareResult(*this, Cmp, NumElts, Ops[3]);
12146 Ops[2] = getMaskVecValue(*this, Ops[2],
12146 Ops[2] = getMaskVecValue(*this, Ops[2],
12147 Ops[0]->getType()->getVectorNumElements());
12166 Value *Res = Builder.CreateCall(CGM.getIntrinsic(IID), Ops[0]);
12167 return EmitX86Select(*this, Ops[2], Res, Ops[1]);
12167 return EmitX86Select(*this, Ops[2], Res, Ops[1]);
12174 Value *LHS = Builder.CreateIntCast(Ops[0], Int64Ty, isSigned);
12175 Value *RHS = Builder.CreateIntCast(Ops[1], Int64Ty, isSigned);
12186 Value *LHS = Builder.CreateIntCast(Ops[0], Int128Ty, IsSigned);
12187 Value *RHS = Builder.CreateIntCast(Ops[1], Int128Ty, IsSigned);
12221 Builder.CreateShl(Builder.CreateZExt(Ops[1], Int128Ty), 64);
12222 Value *LowPart128 = Builder.CreateZExt(Ops[0], Int128Ty);
12224 Value *Amt = Builder.CreateAnd(Builder.CreateZExt(Ops[2], Int128Ty),
12273 Builder.CreateBitCast(Ops[0], Int128PtrTy);
12274 Value *ExchangeHigh128 = Builder.CreateZExt(Ops[1], Int128Ty);
12275 Value *ExchangeLow128 = Builder.CreateZExt(Ops[2], Int128Ty);
12276 Address ComparandResult(Builder.CreateBitCast(Ops[3], Int128PtrTy),
12307 return Builder.CreateMemSet(Ops[0], Ops[1], Ops[2], 1, true);
12307 return Builder.CreateMemSet(Ops[0], Ops[1], Ops[2], 1, true);
12307 return Builder.CreateMemSet(Ops[0], Ops[1], Ops[2], 1, true);
12330 Builder.CreateIntToPtr(Ops[0], llvm::PointerType::get(IntTy, 257));
12342 Builder.CreateIntToPtr(Ops[0], llvm::PointerType::get(IntTy, 256));
12413 Ops[0] = Builder.CreateBitCast(Ops[0], Int8PtrTy);
12413 Ops[0] = Builder.CreateBitCast(Ops[0], Int8PtrTy);
12415 Ops[1] = Builder.CreateBitCast(Ops[1], Int8PtrTy);
12415 Ops[1] = Builder.CreateBitCast(Ops[1], Int8PtrTy);
12416 Ops[0] = Builder.CreateGEP(Ops[1], Ops[0]);
12416 Ops[0] = Builder.CreateGEP(Ops[1], Ops[0]);
12416 Ops[0] = Builder.CreateGEP(Ops[1], Ops[0]);
12481 Ops[1] = Builder.CreateBitCast(Ops[1], Int8PtrTy);
12481 Ops[1] = Builder.CreateBitCast(Ops[1], Int8PtrTy);
12483 Ops[2] = Builder.CreateBitCast(Ops[2], Int8PtrTy);
12483 Ops[2] = Builder.CreateBitCast(Ops[2], Int8PtrTy);
12484 Ops[1] = Builder.CreateGEP(Ops[2], Ops[1]);
12484 Ops[1] = Builder.CreateGEP(Ops[2], Ops[1]);
12484 Ops[1] = Builder.CreateGEP(Ops[2], Ops[1]);
12659 ConstantInt *ArgCI = dyn_cast<ConstantInt>(Ops[2]);
12670 std::swap(Ops[0], Ops[1]);
12670 std::swap(Ops[0], Ops[1]);
12674 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12674 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12684 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12684 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12685 Ops[0] = Builder.CreateShuffleVector(Ops[0], Ops[0], ShuffleMask);
12685 Ops[0] = Builder.CreateShuffleVector(Ops[0], Ops[0], ShuffleMask);
12685 Ops[0] = Builder.CreateShuffleVector(Ops[0], Ops[0], ShuffleMask);
12692 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12692 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12693 Ops[2] = ConstantInt::getSigned(Int32Ty, Index);
12701 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12701 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12705 ConstantInt *ArgCI = dyn_cast<ConstantInt>(Ops[1]);
12714 Ops[1] = ConstantInt::getSigned(Int32Ty, Index);
12728 Ops[1] = ConstantInt::getSigned(Int32Ty, Index);
12734 ConstantInt *ArgCI = dyn_cast<ConstantInt>(Ops[2]);
12738 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12738 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int64Ty, 2));
12739 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12739 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int64Ty, 2));
12752 Builder.CreateShuffleVector(Ops[0], Ops[1], ShuffleMask);
12752 Builder.CreateShuffleVector(Ops[0], Ops[1], ShuffleMask);
12759 ConstantInt *ArgCI = dyn_cast<ConstantInt>(Ops[2]);
12762 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12762 Ops[0] = Builder.CreateBitCast(Ops[0], llvm::VectorType::get(Int32Ty, 4));
12763 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int32Ty, 4));
12763 Ops[1] = Builder.CreateBitCast(Ops[1], llvm::VectorType::get(Int32Ty, 4));
12793 Builder.CreateShuffleVector(Ops[0], Ops[1], ShuffleMask);
12793 Builder.CreateShuffleVector(Ops[0], Ops[1], ShuffleMask);
12802 llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), 2));
12804 UndefValue, Ops[0], (uint64_t)(isLittleEndian ? 1 : 0));
12805 Res = Builder.CreateInsertElement(Res, Ops[1],
12811 ConstantInt *Index = cast<ConstantInt>(Ops[1]);
12813 Ops[0], llvm::VectorType::get(ConvertType(E->getType()), 2));
12876 Args.insert(Args.begin(), llvm::UndefValue::get(Args[0]->getType()));
12878 CGM.getIntrinsic(Intrinsic::amdgcn_update_dpp, Args[0]->getType());
13024 Args[I] = CGF.EmitScalarExpr(E->getArg(I));
tools/clang/lib/CodeGen/CGCUDANV.cpp 260 llvm::Value* VarPtr = CGF.GetAddrOfLocalVar(Args[i]).getPointer();
tools/clang/lib/CodeGen/CGCall.cpp 1094 IRCallArgs[IRCallArgPos++] = CV.first;
1095 IRCallArgs[IRCallArgPos++] = CV.second;
1108 IRCallArgs[IRCallArgPos++] = V;
1443 auto &IRArgs = ArgInfo[ArgNo];
1588 ArgTypes[IRFunctionArgs.getSRetArgNo()] =
1596 ArgTypes[IRFunctionArgs.getInallocaArgNo()] = ArgStruct->getPointerTo();
1608 ArgTypes[IRFunctionArgs.getPaddingArgNo(ArgNo)] =
1624 ArgTypes[FirstIRArg] = LTy->getPointerTo(
1638 ArgTypes[FirstIRArg + i] = st->getElementType(i);
1641 ArgTypes[FirstIRArg] = argType;
2009 ArgAttrs[IRFunctionArgs.getSRetArgNo()] =
2017 ArgAttrs[IRFunctionArgs.getInallocaArgNo()] =
2032 ArgAttrs[IRFunctionArgs.getPaddingArgNo(ArgNo)] =
2151 ArgAttrs[FirstIRArg + i] =
2258 ArgStruct = Address(FnArgs[IRFunctionArgs.getInallocaArgNo()],
2266 auto AI = cast<llvm::Argument>(FnArgs[IRFunctionArgs.getSRetArgNo()]);
2314 Address ParamAddr = Address(FnArgs[FirstIRArg], ArgI.getIndirectAlign());
2356 llvm::Value *V = FnArgs[FirstIRArg];
2481 auto AI = FnArgs[FirstIRArg + i];
2494 auto AI = FnArgs[FirstIRArg];
2527 auto elt = FnArgs[argIndex++];
2546 auto AI = FnArgs[FirstIRArg + i];
2567 EmitParmDecl(*Args[I], ArgVals[I], I + 1);
2570 EmitParmDecl(*Args[I], ArgVals[I], I + 1);
2938 RV = results[0];
2947 RV = Builder.CreateInsertValue(RV, results[i], i);
3870 IRCallArgs[IRFunctionArgs.getSRetArgNo()] = SRetPtr.getPointer();
3897 IRCallArgs[IRFunctionArgs.getPaddingArgNo(ArgNo)] =
3942 IRCallArgs[FirstIRArg] = Addr.getPointer();
4001 IRCallArgs[FirstIRArg] = AI.getPointer();
4019 IRCallArgs[FirstIRArg] = getTargetHooks().performAddrSpaceCast(
4075 IRCallArgs[FirstIRArg] = V;
4120 IRCallArgs[FirstIRArg + i] = LI;
4125 IRCallArgs[FirstIRArg] =
4171 IRCallArgs[IRArgPos++] = elt;
4224 IRCallArgs[IRFunctionArgs.getInallocaArgNo()] = Arg;
4290 assert(IRCallArgs[i]->getType() == IRFuncTy->getParamType(i));
4296 if (auto *VT = dyn_cast<llvm::VectorType>(IRCallArgs[i]->getType()))
tools/clang/lib/CodeGen/CGClass.cpp 649 = CGF.Builder.CreateLoad(CGF.GetAddrOfLocalVar(Args[SrcArgIndex]));
776 SSV[i].Offset =
786 SSV[NumFields].Size = D->isBitField() ? 0 : FieldSize.getQuantity();
808 uint64_t NextField = i == SSV.size() - 1 ? TypeSize : SSV[i + 1].Offset;
809 uint64_t PoisonSize = NextField - SSV[i].Offset - SSV[i].Size;
809 uint64_t PoisonSize = NextField - SSV[i].Offset - SSV[i].Size;
810 uint64_t EndOffset = SSV[i].Offset + SSV[i].Size;
810 uint64_t EndOffset = SSV[i].Offset + SSV[i].Size;
811 if (PoisonSize < AsanAlignment || !SSV[i].Size ||
1039 return Args[CGF.CGM.getCXXABI().getSrcArgforCopyCtor(CD, Args)];
1095 AggregatedInits[0], ConstructorDecl, Args);
1113 CXXCtorInitializer *MemberInit = AggregatedInits[i];
1213 : FieldMemcpyizer(CGF, AD->getParent(), Args[Args.size() - 1]),
1233 CGF.EmitStmt(AggregatedStmts[0]);
2130 Address Src(Args[1].getRValue(*this).getScalarVal(),
2199 Args[0] = ThisArg;
2249 if (I < Params.size() && isa<ImplicitParamDecl>(Params[I])) {
2250 const RValue &RV = Args[I].getRValue(*this);
2255 EmitParmDecl(*Params[I], Val, I + 1);
tools/clang/lib/CodeGen/CGCleanup.cpp 487 LifetimeExtendedCleanupStack[I]);
491 &LifetimeExtendedCleanupStack[I],
497 reinterpret_cast<Address &>(LifetimeExtendedCleanupStack[I]);
902 NormalExit->getInstList().push_back(InstsToAppend[I]);
tools/clang/lib/CodeGen/CGCleanup.h 386 return ExtInfo->BranchAfters[I].first;
391 return ExtInfo->BranchAfters[I].second;
tools/clang/lib/CodeGen/CGDebugInfo.cpp 4667 ObjCInterfaceCacheEntry E = ObjCInterfaceCache[i];
tools/clang/lib/CodeGen/CGDecl.cpp 1064 auto *NewElemTy = Values[0]->getType();
1264 Values[Op] = replaceUndef(CGM, isPattern, OpValue);
1354 IdentifierInfo *NameIdent = VLAExprNames[NameIdx++];
tools/clang/lib/CodeGen/CGDeclCXX.cpp 588 if (!isPreprocessingNumberBody(FileName[i]))
589 FileName[i] = '_';
tools/clang/lib/CodeGen/CGException.cpp 867 filterTypes[0]->getType() : Int8PtrTy,
871 Filters.push_back(cast<llvm::Constant>(filterTypes[i]));
1196 HasCatchAll |= Handlers[I - 1].isCatchAll();
1197 llvm::BasicBlock *CatchBlock = Handlers[I-1].Block;
tools/clang/lib/CodeGen/CGExpr.cpp 561 SubobjectAdjustment &Adjustment = Adjustments[I-1];
2110 Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i);
2143 Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i+NumDstElts);
3851 CElts.push_back(BaseElts->getAggregateElement(Indices[i]));
5082 opaques[i].unbind(CGF);
tools/clang/lib/CodeGen/CGExprAgg.cpp 1333 CGF.DeactivateCleanupBlock(Cleanups[i-1], CleanupDominator);
1630 CGF.DeactivateCleanupBlock(cleanups[i-1], cleanupDominator);
tools/clang/lib/CodeGen/CGExprCXX.cpp 292 (*RtlArgs)[0].getRValue(*this).getScalarVal(),
tools/clang/lib/CodeGen/CGExprConstant.cpp 244 Elems[*FirstElemToUpdate]->isNullValue() ||
245 isa<llvm::UndefValue>(Elems[*FirstElemToUpdate])) {
250 llvm::Constant *&ToUpdate = Elems[*FirstElemToUpdate];
297 if (Offsets[LastAtOrBeforePosIndex] == Pos)
301 if (Offsets[LastAtOrBeforePosIndex] +
302 getSize(Elems[LastAtOrBeforePosIndex]) <= Pos)
316 llvm::Constant *C = Elems[Index];
317 CharUnits Offset = Offsets[Index];
513 if (Length == 1 && Offsets[First] == Offset &&
514 getSize(Elems[First]) == Size) {
519 STy->getElementType(0) == Elems[First]->getType())
520 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]);
520 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]);
791 BaseInfo &Base = Bases[I];
925 while (NonzeroLength > 0 && Elements[NonzeroLength - 1]->isNullValue())
945 Elements[0] = Initial;
1538 if (IndexValues[i]) {
1541 assert(IndexValues[j] &&
1542 isa<llvm::ConstantInt>(IndexValues[j]) &&
1543 cast<llvm::ConstantInt>(IndexValues[j])->getZExtValue()
1544 == Indices[j]);
1550 IndexValues[i] = llvm::ConstantInt::get(CGM.Int32Ty, Indices[i]);
1550 IndexValues[i] = llvm::ConstantInt::get(CGM.Int32Ty, Indices[i]);
2068 Inits[I] = llvm::ConstantInt::get(CGM.getLLVMContext(), Elt.getInt());
2070 Inits[I] = llvm::ConstantFP::get(CGM.getLLVMContext(), Elt.getFloat());
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp 100 ArgTypes.push_back(Args[I].getRValue(*this).getScalarVal()->getType());
112 llvm::Value *Arg = Args[I].getRValue(*this).getScalarVal();
121 VprintfFunc, {Args[0].getRValue(*this).getScalarVal(), BufferPtr}));
tools/clang/lib/CodeGen/CGLoopInfo.cpp 774 UnionMD = cast<MDNode>(AccessGroups[0]);
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp 471 llvm::Value *V = CGF->Builder.CreateLoad(CGF->GetAddrOfLocalVar(Args[I]));
tools/clang/lib/CodeGen/CGObjC.cpp 2969 opaques[i].unbind(CGF);
tools/clang/lib/CodeGen/CGObjCGNU.cpp 1045 llvm::UTF16 *ToPtr = &ToBuf[0];
1048 uint32_t StringLength = ToPtr - &ToBuf[0];
1060 auto Arr = llvm::makeArrayRef(&ToBuf[0], ToPtr+1);
2718 ActualArgs[0] = CallArg(RValue::get(Receiver), ASTIdTy);
3717 selectorAliases[i]->replaceAllUsesWith(selPtr);
3718 selectorAliases[i]->eraseFromParent();
tools/clang/lib/CodeGen/CGObjCMac.cpp 2542 RUN_SKIP(RunSkipBlockVars[i].opcode,
2543 RunSkipBlockVars[i].block_var_bytepos + Size*ElIx,
2544 RunSkipBlockVars[i].block_var_size));
2631 inst = Layout[0];
2637 inst = Layout[1];
2643 inst = Layout[2];
2652 inst = Layout[0];
2656 inst = Layout[1];
2667 inst = Layout[1];
2679 inst = Layout[0];
2733 enum BLOCK_LAYOUT_OPCODE opcode = RunSkipBlockVars[i].opcode;
2734 CharUnits start_byte_pos = RunSkipBlockVars[i].block_var_bytepos;
2738 if (opcode == RunSkipBlockVars[j].opcode) {
2739 end_byte_pos = RunSkipBlockVars[j++].block_var_bytepos;
2746 end_byte_pos - start_byte_pos + RunSkipBlockVars[j-1].block_var_size;
2749 RunSkipBlockVars[j].block_var_bytepos -
2750 RunSkipBlockVars[j-1].block_var_bytepos - RunSkipBlockVars[j-1].block_var_size;
2750 RunSkipBlockVars[j-1].block_var_bytepos - RunSkipBlockVars[j-1].block_var_size;
2814 BitMap += Layout[i];
4325 tys[i] = Locals[i]->getType();
4325 tys[i] = Locals[i]->getType();
5064 const ObjCInterfaceDecl *ID = ImplementedClasses[i];
5069 DefinedClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
5071 array.addBitCast(DefinedClasses[i], ObjCTypes.Int8PtrTy);
5074 array.addBitCast(DefinedCategories[i], ObjCTypes.Int8PtrTy);
5239 auto firstEntry = IvarsInfo[oldEnd + i];
5453 CharUnits::fromQuantity(ComputeIvarBaseOffset(CGM, OMD, ivars[0]));
6060 Symbols[i] = llvm::ConstantExpr::getBitCast(Container[i],
6090 const ObjCInterfaceDecl *ID = ImplementedClasses[i];
6095 DefinedClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
7209 args[1].setRValue(RValue::get(mref.getPointer()));
tools/clang/lib/CodeGen/CGObjCRuntime.cpp 190 Catch->setHandler(I, { Handlers[I].TypeInfo, Handlers[I].Flags }, Handlers[I].Block);
190 Catch->setHandler(I, { Handlers[I].TypeInfo, Handlers[I].Flags }, Handlers[I].Block);
190 Catch->setHandler(I, { Handlers[I].TypeInfo, Handlers[I].Flags }, Handlers[I].Block);
227 CatchHandler &Handler = Handlers[I];
366 CGM.getTypes().arrangeObjCMessageSendSignature(method, callArgs[0].Ty);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 961 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
966 EmitDeclareReductionInit ? ClausesData[N].ReductionOp
990 LValue First = emitSharedLValue(CGF, ClausesData[N].Ref);
991 LValue Second = emitSharedLValueUB(CGF, ClausesData[N].Ref);
997 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
999 bool AsArraySection = isa<OMPArraySectionExpr>(ClausesData[N].Ref);
1003 SharedAddresses[N].first.getType().getNonReferenceType()),
1010 cast<llvm::PointerType>(SharedAddresses[N].first.getPointer()->getType())
1014 Size = CGF.Builder.CreatePtrDiff(SharedAddresses[N].second.getPointer(),
1015 SharedAddresses[N].first.getPointer());
1021 SharedAddresses[N].first.getType().getNonReferenceType());
1036 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1039 assert(!Size && !Sizes[N].second &&
1057 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1059 getReductionInit(ClausesData[N].ReductionOp);
1063 QualType SharedType = SharedAddresses[N].first.getType();
1067 SharedType, SharedAddresses[N].first.getBaseInfo(),
1068 CGF.CGM.getTBAAInfoForSubobject(SharedAddresses[N].first, SharedType));
1072 emitInitWithReductionInitializer(CGF, DRD, ClausesData[N].ReductionOp,
1085 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1094 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Private)->getDecl());
1175 if (const VarDecl *OrigVD = ::getBaseDecl(ClausesData[N].Ref, DE)) {
1179 loadToBegin(CGF, OrigVD->getType(), SharedAddresses[N].first.getType(),
1182 BaseLValue.getPointer(), SharedAddresses[N].first.getPointer());
1186 SharedAddresses[N].first.getAddress().getType());
1189 SharedAddresses[N].first.getType(),
1194 cast<VarDecl>(cast<DeclRefExpr>(ClausesData[N].Ref)->getDecl()));
4114 OrderedEntries[E.getOrder()] = std::make_tuple(&E, Loc, ParentName);
4115 ParentFunctions[E.getOrder()] = ParentName;
4142 OrderedEntries[E.getOrder()] =
4159 StringRef FnName = ParentFunctions[CE->getOrder()];
4734 const VarDecl *VD = Args[PrivateVarsPos[Privates[Counter].second.Original]];
7824 RecordLayout[FieldIndex] = Base;
7833 if (RecordLayout[FieldIndex])
7835 RecordLayout[FieldIndex] = Base;
7844 RecordLayout[FieldIndex] = Field;
8051 CurBasePointers[CurrentBasePointersIdx].setDevicePtrDecl(RelevantVD);
8052 CurTypes[CurrentBasePointersIdx] |= OMP_MAP_RETURN_PARAM;
8230 if (Types[I] != (OMP_MAP_PTR_AND_OBJ | OMP_MAP_LITERAL |
8233 llvm::Value *BasePtr = LambdaPointers.lookup(*BasePointers[I]);
8238 if (Pointers[Idx] != BasePtr)
8248 setCorrectMemberOfFlag(Types[I], MemberOfFlag);
8632 llvm::Value *BPVal = *BasePointers[I];
8642 if (const ValueDecl *DevVD = BasePointers[I].getDevicePtrDecl())
8645 llvm::Value *PVal = Pointers[I];
8662 CGF.Builder.CreateIntCast(Sizes[I], CGM.Int64Ty, /*isSigned=*/true),
8953 *BasePointers[I], CGM.getTypes().ConvertTypeForMem(C.VoidPtrTy));
8955 Pointers[I], CGM.getTypes().ConvertTypeForMem(C.VoidPtrTy));
8956 llvm::Value *CurSizeArg = Sizes[I];
8961 llvm::Value *OriMapType = MapperCGF.Builder.getInt64(MapTypes[I]);
10696 ParamAttrs[Pos].Kind = Uniform;
10713 ParamAttrs[Pos].Alignment =
10734 ParamAttrTy &ParamAttr = ParamAttrs[Pos];
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 4355 PrivatesReductions[Cnt] = cast<DeclRefExpr>(DRE)->getDecl();
tools/clang/lib/CodeGen/CGStmt.cpp 1235 uint64_t DefaultCount = (*SwitchWeights)[0];
1241 (*SwitchWeights)[0] += ThisCount;
1619 EmitStmt(CaseStmts[i]);
2017 TargetInfo::ConstraintInfo &Info = OutputConstraintInfos[i];
2060 TargetInfo::ConstraintInfo &Input = InputConstraintInfos[InputNo];
2141 TargetInfo::ConstraintInfo &Info = InputConstraintInfos[i];
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 488 if (!FO.UIntPtrCastRequired && Args[Cnt] != TargetArgs[Cnt]) {
488 if (!FO.UIntPtrCastRequired && Args[Cnt] != TargetArgs[Cnt]) {
489 LocalAddr = CGM.getOpenMPRuntime().getParameterAddress(CGF, Args[Cnt],
490 TargetArgs[Cnt]);
492 LocalAddr = CGF.GetAddrOfLocalVar(Args[Cnt]);
499 LocalAddrs.insert({Args[Cnt], {CurVD, LocalAddr}});
505 LValue ArgLVal = CGF.MakeAddrLValue(LocalAddr, Args[Cnt]->getType(),
511 Args[Cnt]->getName(), ArgLVal),
516 VLASizes.try_emplace(Args[Cnt], VAT->getSizeExpr(), ExprArg);
530 {Args[Cnt],
537 LocalAddrs.insert({Args[Cnt],
541 Args[Cnt]->getName(), ArgLVal)
547 LocalAddrs.insert({Args[Cnt], {nullptr, ArgLVal.getAddress()}});
3060 Data.ReductionCopies[Cnt]->getType()),
3061 Data.ReductionCopies[Cnt]->getExprLoc()),
3104 CGF.EmitLoadOfScalar(CGF.EmitLValue(TaskgroupDescriptors[Cnt]),
3105 TaskgroupDescriptors[Cnt]->getExprLoc());
3111 CGF.getContext().getPointerType(InRedPrivs[Cnt]->getType()),
3112 InRedPrivs[Cnt]->getExprLoc()),
tools/clang/lib/CodeGen/CGVTT.cpp 63 llvm::GlobalVariable *VTable = VTables[i->VTableIndex];
71 AddressPoint = VTableAddressPoints[i->VTableIndex].lookup(i->VTableBase);
tools/clang/lib/CodeGen/CGVTables.cpp 405 llvm::Type *ThisType = Args[ThisArgNo]->getType();
408 Args[ThisArgNo] = AdjustedThisPtr;
tools/clang/lib/CodeGen/CodeGenFunction.cpp 378 EscapeArgs[Pair.second] = Pair.first;
tools/clang/lib/CodeGen/CodeGenFunction.h 653 char *Buffer = &LifetimeExtendedCleanupStack[OldSize];
tools/clang/lib/CodeGen/CodeGenModule.cpp 1907 UsedArray[i] =
1983 if (Mod->LinkLibraries[I-1].IsFramework) {
1986 llvm::MDString::get(Context, Mod->LinkLibraries[I - 1].Library)};
1996 llvm::MDString::get(Context, Mod->LinkLibraries[I - 1].Library),
2002 Mod->LinkLibraries[I - 1].Library, Opt);
4599 llvm::UTF16 *ToPtr = &ToBuf[0];
4605 StringLength = ToPtr - &ToBuf[0];
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp 26 return Data.get<ConstantInitBuilderBase*>()->Buffer[0]->getType();
45 builder.setGlobalInitializer(GV, builder.Buffer[0]);
63 assert(builder->Buffer[0] != nullptr);
227 llvm::Constant *element = Builder.Buffer[cacheEnd];
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 280 FileLineRanges[R.FileID].first =
281 std::min(FileLineRanges[R.FileID].first, R.LineStart);
282 FileLineRanges[R.FileID].second =
283 std::max(FileLineRanges[R.FileID].second, R.LineEnd);
301 if (Region.LineStart >= FileLineRanges[*CovFileID].first &&
302 Region.LineEnd <= FileLineRanges[*CovFileID].second)
1360 FilenameStrs[I] = normalizeFilename(Entry.first->getName());
1361 FilenameRefs[I] = FilenameStrs[I];
1361 FilenameRefs[I] = FilenameStrs[I];
1384 FilenameStrs[I] = normalizeFilename(Entry.first->getName());
1385 FilenameRefs[I] = FilenameStrs[I];
1385 FilenameRefs[I] = FilenameStrs[I];
tools/clang/lib/CodeGen/EHScopeStack.h 404 return BranchFixups[I];
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 332 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0);
341 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4);
2094 Offsets[0] = llvm::ConstantInt::get(CGM.IntTy, -VBPtrOffset.getQuantity());
2110 assert(Offsets[VBIndex] == nullptr && "The same vbindex seen twice?");
2111 Offsets[VBIndex] = llvm::ConstantInt::get(CGM.IntTy, Offset.getQuantity());
2628 return fields[0];
2662 return fields[0];
2891 llvm::Value *Res = Builder.CreateICmpNE(FirstField, fields[0], "memptr.cmp0");
2901 llvm::Value *Next = Builder.CreateICmpNE(Field, fields[I], "memptr.cmp");
2927 return Val == Fields[0];
2932 if (Val->getAggregateElement(I) != Fields[I])
tools/clang/lib/CodeGen/ModuleBuilder.cpp 184 Builder->EmitTopLevelDecl(DeferredInlineMemberFuncDefs[I]);
tools/clang/lib/CodeGen/PatternInit.cpp 83 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El));
tools/clang/lib/CodeGen/SwiftCallingConv.cpp 211 llvm::Type *componentTy = componentTys[i];
275 if (Entries[index - 1].End <= begin) break;
281 if (Entries[index].Begin >= end) {
294 if (Entries[index].Begin == begin && Entries[index].End == end) {
294 if (Entries[index].Begin == begin && Entries[index].End == end) {
296 if (Entries[index].Type == type) return;
299 if (Entries[index].Type == nullptr) {
302 Entries[index].Type = nullptr;
308 if (auto entryType = getCommonType(Entries[index].Type, type)) {
309 Entries[index].Type = entryType;
314 Entries[index].Type = nullptr;
334 if (Entries[index].Type && Entries[index].Type->isVectorTy()) {
334 if (Entries[index].Type && Entries[index].Type->isVectorTy()) {
341 Entries[index].Type = nullptr;
344 if (begin < Entries[index].Begin) {
345 Entries[index].Begin = begin;
346 assert(index == 0 || begin >= Entries[index - 1].End);
351 while (end > Entries[index].End) {
352 assert(Entries[index].Type == nullptr);
355 if (index == Entries.size() - 1 || end <= Entries[index + 1].Begin) {
356 Entries[index].End = end;
361 Entries[index].End = Entries[index + 1].Begin;
361 Entries[index].End = Entries[index + 1].Begin;
367 if (Entries[index].Type == nullptr)
371 if (Entries[index].Type->isVectorTy() &&
372 end < Entries[index].End) {
377 Entries[index].Type = nullptr;
384 auto vecTy = cast<llvm::VectorType>(Entries[index].Type);
385 auto split = splitLegalVectorType(CGM, Entries[index].getWidth(), vecTy);
392 CharUnits begin = Entries[index].Begin;
394 Entries[index].Type = eltTy;
395 Entries[index].Begin = begin;
396 Entries[index].End = begin + eltSize;
464 bool hasOpaqueEntries = (Entries[0].Type == nullptr);
466 if (shouldMergeEntries(Entries[i - 1], Entries[i], chunkSize)) {
466 if (shouldMergeEntries(Entries[i - 1], Entries[i], chunkSize)) {
467 Entries[i - 1].Type = nullptr;
468 Entries[i].Type = nullptr;
469 Entries[i - 1].End = Entries[i].Begin;
469 Entries[i - 1].End = Entries[i].Begin;
472 } else if (Entries[i].Type == nullptr) {
490 if (orig[i].Type != nullptr) {
491 Entries.push_back(orig[i]);
498 auto begin = orig[i].Begin;
499 auto end = orig[i].End;
501 orig[i + 1].Type == nullptr &&
502 end == orig[i + 1].Begin) {
503 end = orig[i + 1].End;
598 unpaddedType = elts[0];
tools/clang/lib/CodeGen/TargetInfo.cpp 8986 Enc += FE[I].str();
9029 Enc += FE[I].str();
9480 UnpaddedCoerceElts[0]);
tools/clang/lib/CodeGen/VarBypassDetector.cpp 158 assert(Scopes[To].first < To);
159 const auto &ScopeTo = Scopes[To];
163 assert(Scopes[From].first < From);
164 From = Scopes[From].first;
tools/clang/lib/Driver/Action.cpp 200 getInputs()[i]->propagateDeviceOffloadInfo(OKinds[i], BArchs[i]);
tools/clang/lib/Driver/Driver.cpp 1974 Inputs.push_back(C.MakeAction<BindArchAction>(Act, Archs[i]));
2424 UA->registerDependentActionInfo(ToolChains[0], CudaArchToString(Arch),
2461 AddTopLevel(CudaDeviceActions[I], GpuArchList[I]);
2461 AddTopLevel(CudaDeviceActions[I], GpuArchList[I]);
2599 CudaDeviceActions[I] = C.getDriver().ConstructPhaseAction(
2600 C, Args, Ph, CudaDeviceActions[I], Action::OFK_Cuda);
2609 if (!isa<AssembleJobAction>(CudaDeviceActions[I]) ||
2613 Action *AssembleAction = CudaDeviceActions[I];
2617 Action *BackendAction = AssembleAction->getInputs()[0];
2622 DDep.add(*A, *ToolChains.front(), CudaArchToString(GpuArchList[I]),
2712 AL.push_back(CudaDeviceActions[I]);
2713 CudaDeviceActions[I] =
2723 DDep.add(*CudaDeviceActions[I], *ToolChains.front(),
2724 CudaArchToString(GpuArchList[I]), AssociatedOffloadKind);
2725 CudaDeviceActions[I] = C.MakeAction<OffloadAction>(
2726 DDep, CudaDeviceActions[I]->getType());
2780 DA.add(*DeviceLinkAction, *ToolChains[0],
2781 CudaArchToString(GpuArchList[I]), AssociatedOffloadKind);
2864 ToolChains[I], /*BoundArch=*/StringRef(), Action::OFK_OpenMP);
3267 phases::ID InitialPhase = PL[0];
4183 const char *BaseInput = InputInfos[0].getBaseInput();
4188 BaseInput = InputInfos[0].getFilename();
4209 ToolTC.ComputeEffectiveClangTriple(Args, InputInfos[0].getType()));
4292 llvm::errs() << InputInfos[i].getAsString();
4301 llvm::errs() << UnbundlingResults[i].getAsString();
tools/clang/lib/Driver/ToolChains/MinGW.cpp 323 Archs[0] += "-w64-mingw32";
326 Arch = Archs[0].str();
344 Gccs[0] += "-w64-mingw32-gcc";
357 Subdirs[1] += "-w64-mingw32";
561 llvm::sys::path::append(CppIncludeBases[0], Arch, "include", "c++");
563 llvm::sys::path::append(CppIncludeBases[1], Arch, "include", "c++", Ver);
565 llvm::sys::path::append(CppIncludeBases[2], "include", "c++", Ver);
567 llvm::sys::path::append(CppIncludeBases[3], "include", "c++");
tools/clang/lib/Driver/ToolChains/Myriad.cpp 66 C.getActions()[0]->getKind() == Action::AssembleJobClass) {
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 582 objectifyExpr(Vals[i], commit);
583 objectifyExpr(Keys[i], commit);
585 SourceRange ValRange = Vals[i]->getSourceRange();
586 SourceRange KeyRange = Keys[i]->getSourceRange();
tools/clang/lib/Format/AffectedRangeManager.cpp 144 Lines[Line->MatchingOpeningBlockLineIndex]->Affected;
tools/clang/lib/Format/BreakableToken.cpp 350 Content[0] = Lines[0];
350 Content[0] = Lines[0];
353 ContentColumn[0] = StartColumn + 2;
367 if (Lines.size() >= 2 && Content[1].startswith("**") &&
368 static_cast<unsigned>(ContentColumn[1]) == StartColumn) {
383 if (i + 1 == e && Content[i].empty())
385 if (!Content[i].empty() && i + 1 != e && Decoration.startswith(Content[i]))
385 if (!Content[i].empty() && i + 1 != e && Decoration.startswith(Content[i]))
387 while (!Content[i].startswith(Decoration))
392 IndentAtLineBreak = ContentColumn[0] + 1;
394 if (Content[i].empty()) {
402 ContentColumn[i] = DecorationColumn;
407 ContentColumn[i] = 0;
416 unsigned DecorationSize = Decoration.startswith(Content[i])
417 ? Content[i].size()
420 ContentColumn[i] = DecorationColumn + DecorationSize;
422 Content[i] = Content[i].substr(DecorationSize);
422 Content[i] = Content[i].substr(DecorationSize);
423 if (!Decoration.startswith(Content[i]))
425 std::min<int>(IndentAtLineBreak, std::max(0, ContentColumn[i]));
432 if ((Lines[0] == "*" || Lines[0].startswith("* ")) && Lines.size() > 1) {
432 if ((Lines[0] == "*" || Lines[0].startswith("* ")) && Lines.size() > 1) {
435 } else if (Lines[0].startswith("* ") && Lines.size() == 1) {
440 ContentColumn[0] +
441 encoding::columnWidthWithTabs(Lines[0], ContentColumn[0],
441 encoding::columnWidthWithTabs(Lines[0], ContentColumn[0],
452 llvm::dbgs() << i << " |" << Content[i] << "| "
453 << "CC=" << ContentColumn[i] << "| "
454 << "IN=" << (Content[i].data() - Lines[i].data()) << "\n";
454 << "IN=" << (Content[i].data() - Lines[i].data()) << "\n";
477 size_t EndOfPreviousLine = Lines[LineIndex - 1].size();
478 if (InPPDirective && Lines[LineIndex - 1].endswith("\\"))
483 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine);
489 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks);
491 StartOfLine = Lines[LineIndex].size();
493 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine);
496 Content[LineIndex - 1].data() - Lines[LineIndex - 1].data();
496 Content[LineIndex - 1].data() - Lines[LineIndex - 1].data();
497 Content[LineIndex - 1] = Lines[LineIndex - 1].substr(
497 Content[LineIndex - 1] = Lines[LineIndex - 1].substr(
499 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine);
499 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine);
502 ContentColumn[LineIndex] =
746 Lines[i] = Lines[i].ltrim(Blanks);
746 Lines[i] = Lines[i].ltrim(Blanks);
750 getLineCommentIndentPrefix(Lines[i].ltrim(Blanks), Style);
753 OriginalPrefix[i] = Prefix[i] = IndentPrefix;
753 OriginalPrefix[i] = Prefix[i] = IndentPrefix;
754 if (Lines[i].size() > Prefix[i].size() &&
754 if (Lines[i].size() > Prefix[i].size() &&
755 isAlphanumeric(Lines[i][Prefix[i].size()])) {
755 isAlphanumeric(Lines[i][Prefix[i].size()])) {
756 if (Prefix[i] == "//")
757 Prefix[i] = "// ";
758 else if (Prefix[i] == "///")
759 Prefix[i] = "/// ";
760 else if (Prefix[i] == "//!")
761 Prefix[i] = "//! ";
762 else if (Prefix[i] == "///<")
763 Prefix[i] = "///< ";
764 else if (Prefix[i] == "//!<")
765 Prefix[i] = "//!< ";
766 else if (Prefix[i] == "#" &&
768 Prefix[i] = "# ";
771 Tokens[i] = LineTok;
772 Content[i] = Lines[i].substr(IndentPrefix.size());
772 Content[i] = Lines[i].substr(IndentPrefix.size());
773 OriginalContentColumn[i] =
774 StartColumn + encoding::columnWidthWithTabs(OriginalPrefix[i],
777 ContentColumn[i] =
778 StartColumn + encoding::columnWidthWithTabs(Prefix[i], StartColumn,
782 size_t EndOfLine = Content[i].find_last_not_of(Blanks);
784 EndOfLine = Content[i].size();
787 Content[i] = Content[i].substr(0, EndOfLine);
787 Content[i] = Content[i].substr(0, EndOfLine);
tools/clang/lib/Format/Format.cpp 1345 Annotator.calculateFormattingInformation(*AnnotatedLines[i]);
1506 auto &Line = *AnnotatedLines[i];
1513 FormatToken *Tok = AnnotatedLines[Line]->First;
1533 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) {
1537 } else if (!AnnotatedLines[CurrentLine]->endsWith(tok::l_brace)) {
1541 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace))
1544 if (AnnotatedLines[CurrentLine]->startsWithNamespace()) {
1552 if (containsOnlyComments(*AnnotatedLines[CurrentLine]))
1567 AnnotatedLines[InitLine]->First->Tok.getLocation(),
1568 AnnotatedLines[CurrentLine]->Last->Tok.getEndLoc())))
2022 StringRef IncludeName = Matches[2];
2092 return std::make_tuple(!Imports[LHSI].IsStatic, JavaImportGroups[LHSI],
2094 std::make_tuple(!Imports[RHSI].IsStatic, JavaImportGroups[RHSI],
2106 unsigned CurrentImportGroup = JavaImportGroups[Indices.front()];
2113 CurrentImportGroup != JavaImportGroups[Index])
2122 CurrentImportGroup = JavaImportGroups[Index];
2178 StringRef Static = Matches[1];
2179 StringRef Identifier = Matches[2];
2339 auto IncludeName = Matches[2];
2423 std::pair<tooling::Replacements, unsigned> PassFixes = Passes[I](*Env);
tools/clang/lib/Format/FormatToken.cpp 114 if (Item < Commas.size() && State.NextToken->Previous == Commas[Item]) {
116 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item];
210 ItemEnd = Commas[i];
250 if (MustBreakBeforeItem[i] || Column == Columns) {
257 (Column == Columns - 1) ? EndOfLineItemLength[i] : ItemLengths[i];
257 (Column == Columns - 1) ? EndOfLineItemLength[i] : ItemLengths[i];
258 Format.ColumnSizes[Column] = std::max(Format.ColumnSizes[Column], Length);
258 Format.ColumnSizes[Column] = std::max(Format.ColumnSizes[Column], Length);
269 Format.TotalWidth += Format.ColumnSizes[i];
275 if (Format.ColumnSizes[i] - MinSizeInColumn[i] > 10)
tools/clang/lib/Format/FormatTokenLexer.cpp 349 return (Tokens.size() < 3 || precedesOperand(Tokens[Tokens.size() - 3]));
513 FormatToken *String = Tokens[Tokens.size() - 2];
517 if (!Tokens[Tokens.size() - 3]->is(tok::l_paren))
520 FormatToken *Macro = Tokens[Tokens.size() - 4];
560 Tokens[FirstInLineIndex]->getStartOfNonWhitespace());
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp 107 StringRef NamespaceTokenText = Groups.size() > 4 ? Groups[4] : "";
116 StringRef NamespaceNameInComment = Groups.size() > 5 ? Groups[5] : "";
120 StringRef AnonymousInComment = Groups.size() > 3 ? Groups[3] : "";
195 const AnnotatedLine *EndLine = AnnotatedLines[I];
218 getNamespaceTokenText(AnnotatedLines[I + 1], AnnotatedLines) &&
220 AnnotatedLines[I + 1]->MatchingOpeningBlockLineIndex &&
221 !AnnotatedLines[I + 1]->First->Finalized) {
241 EndCommentNextTok = AnnotatedLines[I + 1]->First;
tools/clang/lib/Format/SortJavaScriptImports.cpp 145 return References[LHSI] < References[RHSI];
145 return References[LHSI] < References[RHSI];
152 JsModuleReference Reference = References[Indices[i]];
152 JsModuleReference Reference = References[Indices[i]];
161 (Reference.IsExport != References[Indices[i + 1]].IsExport ||
161 (Reference.IsExport != References[Indices[i + 1]].IsExport ||
162 Reference.Category != References[Indices[i + 1]].Category))
162 Reference.Category != References[Indices[i + 1]].Category))
170 SourceRange InsertionPoint = References[0].Range;
171 InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd());
314 llvm::dbgs() << ", " << Reference.Symbols[i].Symbol << " as "
315 << Reference.Symbols[i].Alias;
tools/clang/lib/Format/TokenAnalyzer.cpp 80 for (unsigned i = 0, e = UnwrappedLines[Run].size(); i != e; ++i) {
81 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i]));
81 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i]));
97 delete AnnotatedLines[i];
tools/clang/lib/Format/TokenAnnotator.cpp 145 Contexts[Contexts.size() - 2].IsExpression &&
172 Contexts.size() == 2 && Contexts[0].ColonIsForRangeExpr;
216 } else if (Contexts[Contexts.size() - 2].CaretFound) {
246 bool MightBeFunctionType = !Contexts[Contexts.size() - 2].IsExpression;
2241 FormatToken &LastOfChild = *Current->Previous->Children[0]->Last;
tools/clang/lib/Format/TokenAnnotator.h 74 delete Children[i];
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 774 Previous.Children[0]->Level * Style.IndentWidth;
782 if (Previous.Children[0]->First->MustBreakBefore)
793 const AnnotatedLine *Child = Previous.Children[0];
tools/clang/lib/Format/UnwrappedLineParser.cpp 511 if (LBraceStack[i]->BlockKind == BK_Unknown)
512 LBraceStack[i]->BlockKind = BK_Block;
588 (*CurrentLines)[OpeningLineIndex].MatchingClosingBlockLineIndex =
717 bool Skip = PPLevelBranchIndex[PPBranchLevel] > 0;
729 PPLevelBranchIndex[PPBranchLevel] != PPChainBranchIndex.top());
735 if (PPChainBranchIndex.top() + 1 > PPLevelBranchCount[PPBranchLevel]) {
736 PPLevelBranchCount[PPBranchLevel] = PPChainBranchIndex.top() + 1;
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 51 return NamesA[I].compare_lower(NamesB[I]);
51 return NamesA[I].compare_lower(NamesB[I]);
60 int C = NamesA[I].compare_lower(NamesB[I]);
60 int C = NamesA[I].compare_lower(NamesB[I]);
142 (*UsingDeclarations)[I].Line->First->WhitespaceRange.getBegin();
143 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc();
152 if ((*UsingDeclarations)[I].Line == SortedUsingDeclarations[I].Line)
152 if ((*UsingDeclarations)[I].Line == SortedUsingDeclarations[I].Line)
154 auto Begin = (*UsingDeclarations)[I].Line->First->Tok.getLocation();
155 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc();
157 SortedUsingDeclarations[I].Line->First->Tok.getLocation();
158 auto SortedEnd = SortedUsingDeclarations[I].Line->Last->Tok.getEndLoc();
192 const auto *FirstTok = AnnotatedLines[I]->First;
193 if (AnnotatedLines[I]->InPPDirective ||
194 !AnnotatedLines[I]->startsWith(tok::kw_using) || FirstTok->Finalized) {
207 UsingDeclarations.push_back(UsingDeclaration(AnnotatedLines[I], Label));
tools/clang/lib/Format/WhitespaceManager.cpp 105 Changes[0].PreviousEndOfTokenColumn = 0;
106 Change *LastOutsideTokenChange = &Changes[0];
109 Changes[i].OriginalWhitespaceRange.getBegin();
111 Changes[i - 1].OriginalWhitespaceRange.getEnd();
146 Changes[i - 1].TokenLength = OriginalWhitespaceStartOffset -
148 Changes[i].PreviousLinePostfix.size() +
149 Changes[i - 1].CurrentLinePrefix.size();
151 Changes[i - 1].TokenLength =
152 NewlinePos + Changes[i - 1].CurrentLinePrefix.size();
157 if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0)
157 if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0)
159 Changes[i - 1].TokenLength + Changes[i - 1].Spaces;
159 Changes[i - 1].TokenLength + Changes[i - 1].Spaces;
161 LastOutsideTokenChange = &Changes[i - 1];
163 Changes[i].PreviousEndOfTokenColumn =
164 Changes[i - 1].StartOfTokenColumn + Changes[i - 1].TokenLength;
164 Changes[i - 1].StartOfTokenColumn + Changes[i - 1].TokenLength;
166 Changes[i - 1].IsTrailingComment =
167 (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) ||
167 (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) ||
168 (Changes[i].IsInsideToken && Changes[i].Tok->is(tok::comment))) &&
168 (Changes[i].IsInsideToken && Changes[i].Tok->is(tok::comment))) &&
169 Changes[i - 1].Tok->is(tok::comment) &&
254 Changes[i].indentAndNestingLevel() <
255 Changes[ScopeStack.back()].indentAndNestingLevel())
262 Changes[PreviousNonComment].Tok->is(tok::comment))
264 if (i != Start && Changes[i].indentAndNestingLevel() >
265 Changes[PreviousNonComment].indentAndNestingLevel())
270 if (Changes[i].NewlinesBefore > 0 && !InsideNestedScope) {
278 if (!FoundMatchOnLine && !InsideNestedScope && Matches(Changes[i])) {
280 Shift = Column - Changes[i].StartOfTokenColumn;
281 Changes[i].Spaces += Shift;
286 if (InsideNestedScope && Changes[i].NewlinesBefore > 0) {
288 if (Changes[ScopeStart - 1].Tok->is(TT_FunctionDeclarationName) ||
290 Changes[ScopeStart - 2].Tok->is(TT_FunctionDeclarationName)))
291 Changes[i].Spaces += Shift;
295 Changes[i].StartOfTokenColumn += Shift;
297 Changes[i + 1].PreviousEndOfTokenColumn += Shift;
342 ? Changes[StartAt].indentAndNestingLevel()
373 if (Changes[i].indentAndNestingLevel() < IndentAndNestingLevel)
376 if (Changes[i].NewlinesBefore != 0) {
381 if (Changes[i].NewlinesBefore > 1 || !FoundMatchOnLine)
387 if (Changes[i].Tok->is(tok::comma)) {
389 } else if (Changes[i].indentAndNestingLevel() > IndentAndNestingLevel) {
396 if (!Matches(Changes[i]))
410 unsigned ChangeMinColumn = Changes[i].StartOfTokenColumn;
411 int LineLengthAfter = -Changes[i].Spaces;
412 for (unsigned j = i; j != e && Changes[j].NewlinesBefore == 0; ++j)
413 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
413 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
450 if (Changes[I].NewlinesBefore > 0) {
458 if (!FoundMatchOnLine && AlignMacrosMatches(Changes[I])) {
460 Shift = MinColumn - Changes[I].StartOfTokenColumn;
461 Changes[I].Spaces += Shift;
465 Changes[I].StartOfTokenColumn += Shift;
467 Changes[I + 1].PreviousEndOfTokenColumn += Shift;
522 if (Changes[I].NewlinesBefore != 0) {
526 if (Changes[I].NewlinesBefore > 1 || !FoundMatchOnLine)
533 if (!AlignMacrosMatches(Changes[I]))
541 unsigned ChangeMinColumn = Changes[I].StartOfTokenColumn;
542 int LineLengthAfter = -Changes[I].Spaces;
543 for (unsigned j = I; j != E && Changes[j].NewlinesBefore == 0; ++j)
544 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
544 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
617 if (Changes[i].StartOfBlockComment)
619 Newlines += Changes[i].NewlinesBefore;
620 if (!Changes[i].IsTrailingComment)
623 unsigned ChangeMinColumn = Changes[i].StartOfTokenColumn;
628 else if (Style.ColumnLimit >= Changes[i].TokenLength)
629 ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength;
635 if (!Changes[i].CreateReplacement)
638 if (i + 1 != e && Changes[i + 1].ContinuesPPDirective)
642 bool FollowsRBraceInColumn0 = i > 0 && Changes[i].NewlinesBefore == 0 &&
643 Changes[i - 1].Tok->is(tok::r_brace) &&
644 Changes[i - 1].StartOfTokenColumn == 0;
646 if (Changes[i].NewlinesBefore == 1) { // A comment on its own line.
648 Changes[i].OriginalWhitespaceRange.getEnd());
650 if (Changes[j].Tok->is(tok::comment))
654 Changes[j].OriginalWhitespaceRange.getEnd());
672 (Changes[i].NewlinesBefore == 1 && i > 0 &&
673 !Changes[i - 1].IsTrailingComment) ||
683 BreakBeforeNext = (i == 0) || (Changes[i].NewlinesBefore > 1) ||
686 (Changes[i].NewlinesBefore == 1 && StartOfSequence == i);
696 if (Changes[i].IsTrailingComment) {
697 Shift = Column - Changes[i].StartOfTokenColumn;
699 if (Changes[i].StartOfBlockComment) {
700 Shift = Changes[i].IndentationOffset +
701 Changes[i].StartOfBlockComment->StartOfTokenColumn -
702 Changes[i].StartOfTokenColumn;
705 Changes[i].Spaces += Shift;
707 Changes[i + 1].PreviousEndOfTokenColumn += Shift;
708 Changes[i].StartOfTokenColumn += Shift;
720 Change &C = Changes[i];
737 Change &C = Changes[i];
750 const Change &C = Changes[i];
752 assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() !=
tools/clang/lib/Frontend/ChainedIncludesSource.cpp 90 StringRef sr(bufNames[ti]);
91 Reader->addInMemoryBuffer(sr, std::move(MemBufs[ti]));
tools/clang/lib/Frontend/CompilerInstance.cpp 1921 << Path[I].first << Module->getFullModuleName() << Best[0]
1924 Best[0]);
1926 Sub = Module->findSubmodule(Best[0]);
tools/clang/lib/Frontend/CompilerInvocation.cpp 1664 BlockName = Args[0];
1665 if (Args[1].getAsInteger(10, MajorVersion)) return true;
1666 if (Args[2].getAsInteger(10, MinorVersion)) return true;
1667 if (Args[3].getAsInteger(2, Hashed)) return true;
1669 UserInfo = Args[4];
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp 42 driver::Driver TheDriver(Args[0], llvm::sys::getDefaultTargetTriple(),
tools/clang/lib/Frontend/DependencyFile.cpp 294 if (NativePath[i] == '#') // Handle '#' the broken gcc way.
296 else if (NativePath[i] == ' ') { // Handle space correctly.
299 while (j > 0 && NativePath[--j] == '\\')
301 } else if (NativePath[i] == '$') // $ is escaped by $$.
303 OS << NativePath[i];
tools/clang/lib/Frontend/DependencyGraph.cpp 134 writeNodeReference(OS, F->second[I]);
tools/clang/lib/Frontend/LayoutOverrideSource.cpp 178 FieldOffsets[*F] = Known->second.FieldOffsets[NumFields];
202 OS << L->second.FieldOffsets[I];
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 847 MacroInfo &MI = *MacrosByID[i].second;
851 PrintMacroDefinition(*MacrosByID[i].first, MI, PP, *OS);
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 3107 ArgTypes[i].getAsStringInternal(ArgName, Context->getPrintingPolicy());
3113 MsgExprs[i]->getType().getAsStringInternal(ArgName,
3766 if (IVars[i]->isBitField()) {
3767 IvarGroupNumber[IVars[i++]] = ++GroupNo;
3768 while (i < e && IVars[i]->isBitField())
3769 IvarGroupNumber[IVars[i++]] = GroupNo;
3788 ObjCIvarDecl *Ivar = IVars[i];
3813 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3816 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
3823 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3825 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
3904 RewriteLocallyDefinedNamedAggregates(IVars[i], Result);
3909 if (IVars[i]->isBitField()) {
3910 ObjCIvarDecl *IV = IVars[i];
3915 SKIP_BITFIELDS(i , e, IVars);
3929 if (IVars[i]->isBitField()) {
3930 ObjCIvarDecl *IV = IVars[i];
3935 SKIP_BITFIELDS(i , e, IVars);
3938 RewriteObjCFieldDecl(IVars[i], Result);
4002 ObjCImplementationDecl *OIMP = ClassImplementation[i];
4011 ObjCCategoryImplDecl *CIMP = CategoryImplementation[i];
4335 CollectBlockDeclRefInfo(Blocks[i]);
4338 for (int j = 0; j < InnerDeclRefsCount[i]; j++) {
4339 DeclRefExpr *Exp = InnerDeclRefs[count++];
4365 std::string CI = SynthesizeBlockImpl(Blocks[i], ImplTag, DescTag);
4369 std::string CF = SynthesizeBlockFunc(Blocks[i], i, FunName, ImplTag);
4374 std::string HF = SynthesizeBlockHelperFuncs(Blocks[i], i, FunName, ImplTag);
5164 if (!BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
5165 if (!BlockByCopyDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
5166 BlockByCopyDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
5167 BlockByCopyDecls.push_back(BlockDeclRefs[i]->getDecl());
5172 if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
5173 if (!BlockByRefDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
5174 BlockByRefDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
5175 BlockByRefDecls.push_back(BlockDeclRefs[i]->getDecl());
5180 if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
5181 BlockDeclRefs[i]->getType()->isObjCObjectPointerType() ||
5182 BlockDeclRefs[i]->getType()->isBlockPointerType())
5183 ImportedBlockDecls.insert(BlockDeclRefs[i]->getDecl());
5830 FunctionDecl *FDecl = FunctionDefinitionsSeen[i];
5847 ObjCInterfaceDecl *CDecl = ObjCInterfacesSeen[i];
6789 ObjCIvarDecl *IvarDecl = Ivars[i];
6795 if (Ivars[i]->isBitField())
6802 if (Ivars[i]->isBitField())
6803 RewriteObj.ObjCIvarBitfieldGroupDecl(Ivars[i], Result);
7162 ObjCImplementationDecl *IDecl = ClassImplementation[i];
7176 RewriteObjCClassMetaData(ClassImplementation[i], Result);
7182 RewriteObjCCategoryImplDecl(CategoryImplementation[i], Result);
7196 Result += ClassImplementation[i]->getNameAsString();
7206 Result += "\t&OBJC_CLASS_$_"; Result += DefinedNonLazyClasses[i]->getNameAsString();
7224 CategoryImplementation[i]->getClassInterface()->getNameAsString();
7226 Result += CategoryImplementation[i]->getNameAsString();
7239 DefinedNonLazyCategories[i]->getClassInterface()->getNameAsString();
7241 Result += DefinedNonLazyCategories[i]->getNameAsString();
7344 ObjCCategoryImplDecl *IDecl = CategoryImplementation[i];
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 3228 RewriteImplementationDecl(ClassImplementation[i]);
3231 RewriteImplementationDecl(CategoryImplementation[i]);
3548 CollectBlockDeclRefInfo(Blocks[i]);
3551 for (int j = 0; j < InnerDeclRefsCount[i]; j++) {
3552 DeclRefExpr *Exp = InnerDeclRefs[count++];
3574 std::string CI = SynthesizeBlockImpl(Blocks[i], ImplTag, DescTag);
3578 std::string CF = SynthesizeBlockFunc(Blocks[i], i, FunName, ImplTag);
3583 std::string HF = SynthesizeBlockHelperFuncs(Blocks[i], i, FunName, ImplTag);
4318 if (!BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
4319 if (!BlockByCopyDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
4320 BlockByCopyDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
4321 BlockByCopyDecls.push_back(BlockDeclRefs[i]->getDecl());
4326 if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>()) {
4327 if (!BlockByRefDeclsPtrSet.count(BlockDeclRefs[i]->getDecl())) {
4328 BlockByRefDeclsPtrSet.insert(BlockDeclRefs[i]->getDecl());
4329 BlockByRefDecls.push_back(BlockDeclRefs[i]->getDecl());
4334 if (BlockDeclRefs[i]->getDecl()->hasAttr<BlocksAttr>() ||
4335 BlockDeclRefs[i]->getType()->isObjCObjectPointerType() ||
4336 BlockDeclRefs[i]->getType()->isBlockPointerType())
4337 ImportedBlockDecls.insert(BlockDeclRefs[i]->getDecl());
5520 RewriteObjCClassMetaData(ClassImplementation[i], Result);
5524 RewriteObjCCategoryImplDecl(CategoryImplementation[i], Result);
5552 Result += ClassImplementation[i]->getNameAsString();
5558 Result += CategoryImplementation[i]->getClassInterface()->getNameAsString();
5560 Result += CategoryImplementation[i]->getNameAsString();
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp 203 if (Record[0] > VersionNumber)
268 if ((EC = visitCategoryRecord(Record[0], Blob)))
277 Record[0], Location(Record[1], Record[2], Record[3], Record[4]),
277 Record[0], Location(Record[1], Record[2], Record[3], Record[4]),
277 Record[0], Location(Record[1], Record[2], Record[3], Record[4]),
277 Record[0], Location(Record[1], Record[2], Record[3], Record[4]),
277 Record[0], Location(Record[1], Record[2], Record[3], Record[4]),
278 Record[5], Record[6], Blob)))
278 Record[5], Record[6], Blob)))
285 if ((EC = visitDiagFlagRecord(Record[0], Blob)))
293 if ((EC = visitFilenameRecord(Record[0], Record[1], Record[2], Blob)))
293 if ((EC = visitFilenameRecord(Record[0], Record[1], Record[2], Blob)))
293 if ((EC = visitFilenameRecord(Record[0], Record[1], Record[2], Blob)))
301 Location(Record[0], Record[1], Record[2], Record[3]),
301 Location(Record[0], Record[1], Record[2], Record[3]),
301 Location(Record[0], Record[1], Record[2], Record[3]),
301 Location(Record[0], Record[1], Record[2], Record[3]),
302 Location(Record[4], Record[5], Record[6], Record[7]), Blob)))
302 Location(Record[4], Record[5], Record[6], Record[7]), Blob)))
302 Location(Record[4], Record[5], Record[6], Record[7]), Blob)))
302 Location(Record[4], Record[5], Record[6], Record[7]), Blob)))
310 Location(Record[0], Record[1], Record[2], Record[3]),
310 Location(Record[0], Record[1], Record[2], Record[3]),
310 Location(Record[0], Record[1], Record[2], Record[3]),
310 Location(Record[0], Record[1], Record[2], Record[3]),
311 Location(Record[4], Record[5], Record[6], Record[7]))))
311 Location(Record[4], Record[5], Record[6], Record[7]))))
311 Location(Record[4], Record[5], Record[6], Record[7]))))
311 Location(Record[4], Record[5], Record[6], Record[7]))))
318 if ((EC = visitVersionRecord(Record[0])))
tools/clang/lib/Frontend/TestModuleFileExtension.cpp 76 StringRef Message = Blob.substr(0, Record[0]);
tools/clang/lib/Frontend/TextDiagnostic.cpp 156 expandedByte[1] = llvm::hexdigit(byte / 16);
157 expandedByte[2] = llvm::hexdigit(byte % 16);
211 out[i] = columns;
651 OS.write(&IndentStr[0], Indentation);
tools/clang/lib/Index/CommentToXML.cpp 452 const Comment *C = Parts.MiscBlocks[i];
461 visit(Parts.TParams[i]);
468 visit(Parts.Params[i]);
475 visit(Parts.Returns[i]);
958 visit(Parts.TParams[i]);
965 visit(Parts.Params[i]);
979 visit(Parts.Returns[i]);
1052 const Comment *C = Parts.MiscBlocks[i];
tools/clang/lib/Index/USRGeneration.cpp 548 Buf[off] = 'A';
555 Buf[off] = 'a';
tools/clang/lib/Lex/HeaderSearch.cpp 1062 memcmp(CacheLookup.first().data(), &FrameworkName[0],
1372 DirectoryHasModuleMap[FixUpDirectories[I]] = true;
tools/clang/lib/Lex/Lexer.cpp 233 if (Str[i] == '\\' || Str[i] == Quote) {
233 if (Str[i] == '\\' || Str[i] == Quote) {
237 } else if (Str[i] == '\n' || Str[i] == '\r') {
237 } else if (Str[i] == '\n' || Str[i] == '\r') {
239 if ((i < e - 1) && (Str[i + 1] == '\n' || Str[i + 1] == '\r') &&
239 if ((i < e - 1) && (Str[i + 1] == '\n' || Str[i + 1] == '\r') &&
240 Str[i] != Str[i + 1]) {
240 Str[i] != Str[i + 1]) {
241 Str[i] = '\\';
242 Str[i + 1] = 'n';
245 Str[i] = '\\';
tools/clang/lib/Lex/LiteralSupport.cpp 1376 LitVal = LitVal + (codepoint_buffer[i] & 0xFF);
1533 ResultPtr = &ResultBuf[0]; // Next byte to fill in.
1540 const char *ThisTokBuf = &TokenBuf[0];
1720 ResultBuf[0] = GetNumStringChars() - 1;
1820 const char *SpellingPtr = &SpellingBuffer[0];
tools/clang/lib/Lex/MacroArgs.cpp 257 if (ActualTokLen && BufPtr != &Result[CurStrLen])
258 memcpy(&Result[CurStrLen], BufPtr, ActualTokLen);
274 while (Result[FirstNonSlash] == '\\')
288 Result[0] = '\'';
289 Result[Result.size()-1] = '\'';
294 isBad = Result[1] == '\''; // ''' is not legal. '\' already fixed above.
296 isBad = (Result.size() != 4 || Result[1] != '\\'); // Not '\x'
tools/clang/lib/Lex/ModuleMap.cpp 171 llvm::sys::path::append(Path, "Frameworks", Paths[I-1] + ".framework");
617 llvm::sys::path::stem(SkippedDirs[I-1]->getName()), NameBuf);
624 UmbrellaDirs[SkippedDirs[I-1]] = Result;
650 UmbrellaDirs[SkippedDirs[I]] = Result;
731 llvm::sys::path::stem(SkippedDirs[I-1]->getName()),
1871 if (Module *Next = Map.lookupModuleQualified(Id[I].first, ActiveModule)) {
1879 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified)
1880 << Id[I].first
1883 Diags.Report(Id[I].second, diag::err_mmap_expected_module_name);
tools/clang/lib/Lex/PPCaching.cpp 57 Result = CachedTokens[CachedLexPos++];
119 assert(CachedTokens[CachedLexPos-1].getLastLoc() == Tok.getAnnotationEndLoc()
tools/clang/lib/Lex/PPDirectives.cpp 1102 const char *DigitTokBegin = &IntegerBuffer[0];
tools/clang/lib/Lex/PPLexerChange.cpp 752 auto *II = const_cast<IdentifierInfo*>(PendingModuleMacroNames[I]);
tools/clang/lib/Lex/PPMacroExpansion.cpp 871 TooManyArgsLoc = ArgTokens[ArgTokenStart].getLocation();
tools/clang/lib/Lex/Pragma.cpp 1611 auto *NewM = M->findOrInferSubmodule(ModuleName[I].first->getName());
1613 PP.Diag(ModuleName[I].second, diag::err_pp_module_begin_no_submodule)
1614 << M->getFullModuleName() << ModuleName[I].first;
tools/clang/lib/Lex/Preprocessor.cpp 1025 const char *BufPtr = &FilenameBuffer[PreAppendSize];
1029 if (BufPtr != &FilenameBuffer[PreAppendSize])
1030 memcpy(&FilenameBuffer[PreAppendSize], BufPtr, ActualLen);
1195 Suffix[0].setKind(tok::annot_header_unit);
1196 Suffix[0].setAnnotationEndLoc(Suffix[0].getLocation());
1196 Suffix[0].setAnnotationEndLoc(Suffix[0].getLocation());
1197 Suffix[0].setAnnotationValue(Action.ModuleForHeader);
1260 SourceLocation FirstPathLoc = ModuleImportPath[0].second;
1334 Diag(StrToks[0].getLocation(), diag::err_expected_string_literal)
tools/clang/lib/Lex/TokenLexer.cpp 193 NumVAOptTokens ? &ResultToks[NumToksPriorToVAOpt] : nullptr;
228 &ConcatenatedVAOPTResultToks[0], PP, VCtx.hasCharifyBefore() /*Charify*/,
345 ResultToks[VCtx.getNumberOfTokensPriorToVAOpt() - 1].is(
490 ResultToks[FirstResult].setFlagValue(Token::LeadingSpace,
492 ResultToks[FirstResult].setFlagValue(Token::StartOfLine, false);
521 ResultToks[ResultToks.size()-2].is(tok::comma) &&
549 ResultToks[ResultToks.size() - NumToks].setFlagValue(Token::StartOfLine,
551 ResultToks[ResultToks.size() - NumToks].setFlagValue(
773 const char *BufPtr = &Buffer[0];
776 if (BufPtr != &Buffer[0]) // Really, we want the chars in Buffer!
777 memcpy(&Buffer[0], BufPtr, LHSLen);
785 if (RHSLen && BufPtr != &Buffer[LHSLen])
787 memcpy(&Buffer[LHSLen], BufPtr, RHSLen);
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 282 Class.LateParsedDeclarations[i]->ParseLexedMethodDeclarations();
306 auto Param = cast<ParmVarDecl>(LM.DefaultArgs[I].Param);
310 std::unique_ptr<CachedTokens> Toks = std::move(LM.DefaultArgs[I].Toks);
358 (*Toks)[Toks->size() - 3].getLocation());
480 Class.LateParsedDeclarations[i]->ParseLexedMethodDefs();
600 Class.LateParsedDeclarations[i]->ParseLexedMemberInitializers();
878 const Token &PreviousToken = Toks[Toks.size() - 2];
tools/clang/lib/Parse/ParseDecl.cpp 240 (*LateAttrs)[i]->MacroII = MacroII;
871 const char *ThisTokBegin = &Buffer[0];
1448 Class.LateParsedDeclarations[i]->ParseLexedAttributes();
1464 LAs[i]->addDecl(D);
1465 ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition);
1466 delete LAs[i];
1498 Decl *D = LA.Decls[0];
1549 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs);
4755 EnumAvailabilityDiags[i].redelay();
4756 PD.complete(EnumConstantDecls[i]);
tools/clang/lib/Parse/ParseDeclCXX.cpp 159 Diag(ExtraNSs[0].NamespaceLoc,
165 Diag(ExtraNSs[0].NamespaceLoc,
176 Diag(ExtraNSs[0].NamespaceLoc, diag::ext_nested_namespace_definition)
193 Diag(ExtraNSs[0].NamespaceLoc, diag::ext_nested_namespace_definition)
1880 MultiTemplateParamsArg(TemplateParams ? &(*TemplateParams)[0]
1904 MultiTemplateParamsArg(TemplateParams ? &(*TemplateParams)[0] : nullptr,
1927 MultiTemplateParamsArg(&(*TemplateParams)[0], TemplateParams->size());
2744 CommonLateParsedAttrs[i]->addDecl(FunDecl);
2747 LateParsedAttrs[i]->addDecl(FunDecl);
2875 CommonLateParsedAttrs[i]->addDecl(ThisDecl);
2878 LateParsedAttrs[i]->addDecl(ThisDecl);
3811 delete Class->LateParsedDeclarations[I];
tools/clang/lib/Parse/ParseExpr.cpp 2641 return ParseFoldExpression(ArgExprs[0], T);
tools/clang/lib/Parse/ParseExprCXX.cpp 2570 Lexer::AdvanceToTokenCharacter(TokLocs[Literal.getUDSuffixToken()],
tools/clang/lib/Parse/ParseObjc.cpp 1504 &KeyIdents[0]);
1507 Sel, &ArgInfos[0], CParamInfo.data(), CParamInfo.size(), methodAttrs,
1625 identifierLocPairs.push_back(IdentifierLocPair(identifiers[i],
1626 identifierLocs[i]));
1682 = Actions.getTypeName(*identifiers[i], identifierLocs[i], getCurScope());
1682 = Actions.getTypeName(*identifiers[i], identifierLocs[i], getCurScope());
1687 DS.SetTypeSpecType(TST_typename, identifierLocs[i], prevSpec, diagID,
1696 foundValidTypeId = identifiers[i];
1697 foundValidTypeSrcLoc = identifierLocs[i];
1701 unknownTypeArgs.push_back(identifiers[i]);
1702 unknownTypeArgsLoc.push_back(identifierLocs[i]);
1706 if (!Actions.LookupProtocol(identifiers[i], identifierLocs[i])) {
1706 if (!Actions.LookupProtocol(identifiers[i], identifierLocs[i])) {
1707 unknownTypeArgs.push_back(identifiers[i]);
1708 unknownTypeArgsLoc.push_back(identifierLocs[i]);
1710 foundProtocolId = identifiers[i];
1711 foundProtocolSrcLoc = identifierLocs[i];
1749 Actions.DiagnoseUnknownTypeName(unknownTypeArgs[i], unknownTypeArgsLoc[i],
1749 Actions.DiagnoseUnknownTypeName(unknownTypeArgs[i], unknownTypeArgsLoc[i],
2255 P.ParseLexedObjCMethodDefs(*LateParsedObjCMethods[i],
2262 P.ParseLexedObjCMethodDefs(*LateParsedObjCMethods[i],
3299 Selector Sel = PP.getSelectorTable().getSelector(nKeys, &KeyIdents[0]);
3622 Selector Sel = PP.getSelectorTable().getSelector(nColons, &KeyIdents[0]);
tools/clang/lib/Parse/ParseOpenMP.cpp 1292 !FirstClauses[CKind].getInt());
1295 FirstClauses[CKind].setInt(true);
1338 !FirstClauses[CKind].getInt());
1341 FirstClauses[CKind].setInt(true);
1646 !FirstClauses[CKind].getInt());
1649 FirstClauses[CKind].setInt(true);
1808 ParseOpenMPClause(DKind, CKind, !FirstClauses[CKind].getInt());
1809 FirstClauses[CKind].setInt(true);
1811 FirstClauses[CKind].setPointer(Clause);
1828 if (DKind == OMPD_ordered && FirstClauses[OMPC_depend].getInt()) {
2283 Arg[Modifier1] = OMPC_SCHEDULE_MODIFIER_unknown;
2284 Arg[Modifier2] = OMPC_SCHEDULE_MODIFIER_unknown;
2285 Arg[ScheduleKind] = OMPC_SCHEDULE_unknown;
2290 Arg[Modifier1] = KindModifier;
2291 KLoc[Modifier1] = Tok.getLocation();
2300 Arg[Modifier2] = KindModifier > OMPC_SCHEDULE_unknown
2303 KLoc[Modifier2] = Tok.getLocation();
2316 Arg[ScheduleKind] = KindModifier;
2317 KLoc[ScheduleKind] = Tok.getLocation();
2321 if ((Arg[ScheduleKind] == OMPC_SCHEDULE_static ||
2322 Arg[ScheduleKind] == OMPC_SCHEDULE_dynamic ||
2323 Arg[ScheduleKind] == OMPC_SCHEDULE_guided) &&
tools/clang/lib/Parse/ParsePragma.cpp 1997 idTok = Identifiers[i];
tools/clang/lib/Parse/ParseStmtAsm.cpp 109 LineToks[NumConsumedToks].getLocation());
265 while (LineToks[LineIndex].getLocation() != Tok.getLocation()) {
569 return Actions.ActOnMSAsmStmt(AsmLoc, LBraceLocs[0], AsmToks, StringRef(),
651 Expr *OpExpr = static_cast<Expr *>(OpExprs[i].first);
656 if (OpExprs[i].second)
660 ConstraintRefs[i] = StringRef(Constraints[i]);
660 ConstraintRefs[i] = StringRef(Constraints[i]);
661 Exprs[i] = OpExpr;
665 return Actions.ActOnMSAsmStmt(AsmLoc, LBraceLocs[0], AsmToks, AsmStringIR,
tools/clang/lib/Rewrite/Rewriter.cpp 283 indentedStr += lines[i];
tools/clang/lib/Sema/CodeCompleteConsumer.cpp 394 const DeclContext *CurDC = Contexts[I - 1];
tools/clang/lib/Sema/JumpDiagnostics.cpp 119 assert(Scopes[B].ParentScope < B);
120 B = Scopes[B].ParentScope;
122 assert(Scopes[A].ParentScope < A);
123 A = Scopes[A].ParentScope;
675 S.Diag(GotoJumps[0]->getBeginLoc(),
745 if (Scopes[Min].InDiag) break;
747 Min = Scopes[Min].ParentScope;
766 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
777 if (Scopes[Scope].OutDiag) break;
779 Scope = Scopes[Scope].ParentScope;
823 if (Scopes[ToScopes[I]].InDiag)
824 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
824 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
838 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
839 if (Scopes[I].OutDiag) {
841 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);
841 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);
847 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
848 if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
850 else if (Scopes[I].InDiag) {
852 S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
852 S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
887 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) {
888 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) {
904 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {
906 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag))
908 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
910 else if (Scopes[I].InDiag)
tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp 44 if (Decl *Result = Sources[i]->GetExternalDecl(ID))
51 Sources[i]->CompleteRedeclChain(D);
57 Sel = Sources[i]->GetExternalSelector(ID);
67 total += Sources[i]->GetNumExternalSelectors();
73 if (Stmt *Result = Sources[i]->GetExternalDeclStmt(Offset))
81 if (CXXBaseSpecifier *R = Sources[i]->GetExternalCXXBaseSpecifiers(Offset))
107 AnyDeclsFound |= Sources[i]->FindExternalVisibleDeclsByName(DC, Name);
113 Sources[i]->completeVisibleDeclsMap(DC);
120 Sources[i]->FindExternalLexicalDecls(DC, IsKindWeWant, Result);
128 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls);
133 Sources[i]->CompleteType(Tag);
138 Sources[i]->CompleteType(Class);
143 Sources[i]->ReadComments();
148 Sources[i]->StartedDeserializing();
153 Sources[i]->FinishedDeserializing();
158 Sources[i]->StartTranslationUnit(Consumer);
163 Sources[i]->PrintStats();
168 if (auto M = Sources[i]->getModule(ID))
187 if (Sources[i]->layoutRecordType(Record, Size, Alignment, FieldOffsets,
207 Sources[i]->InitializeSema(S);
212 Sources[i]->ForgetSema();
217 Sources[i]->ReadMethodPool(Sel);
222 Sources[i]->updateOutOfDateSelector(Sel);
228 Sources[i]->ReadKnownNamespaces(Namespaces);
234 Sources[i]->ReadUndefinedButUsed(Undefined);
247 Sources[i]->LookupUnqualified(R, S);
255 Sources[i]->ReadTentativeDefinitions(TentativeDefs);
261 Sources[i]->ReadUnusedFileScopedDecls(Decls);
267 Sources[i]->ReadDelegatingConstructors(Decls);
273 Sources[i]->ReadExtVectorDecls(Decls);
279 Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls);
285 Sources[i]->ReadReferencedSelectors(Sels);
291 Sources[i]->ReadWeakUndeclaredIdentifiers(WI);
297 Sources[i]->ReadUsedVTables(VTables);
304 Sources[i]->ReadPendingInstantiations(Pending);
311 Sources[i]->ReadLateParsedTemplates(LPTMap);
322 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC,
333 if (Sources[I]->MaybeDiagnoseMissingCompleteType(Loc, T))
tools/clang/lib/Sema/ParsedAttr.cpp 66 if (index < FreeLists.size() && !FreeLists[index].empty()) {
67 ParsedAttr *attr = FreeLists[index].back();
68 FreeLists[index].pop_back();
90 FreeLists[freeListIndex].push_back(Attr);
tools/clang/lib/Sema/SemaAccess.cpp 619 switch (GetFriendKind(S, EC, CurPath[I])) {
tools/clang/lib/Sema/SemaAttr.cpp 785 if (PragmaAttributeStack[Index].Namespace == Namespace) {
787 PragmaAttributeStack[Index].Entries) {
tools/clang/lib/Sema/SemaChecking.cpp 4856 CheckNonNullArgument(*this, APIOrderedArgs[i], ExprRange.getBegin());
4870 CheckNonNullArgument(*this, APIOrderedArgs[i],
4877 Expr *ValArg = APIOrderedArgs[i];
4894 CheckNonNullArgument(*this, APIOrderedArgs[i], ExprRange.getBegin());
4909 ExprResult Arg = APIOrderedArgs[i];
4913 APIOrderedArgs[i] = Arg.get();
4922 SubExprs.push_back(APIOrderedArgs[1]); // Val1
4925 SubExprs.push_back(APIOrderedArgs[1]); // Order
4931 SubExprs.push_back(APIOrderedArgs[2]); // Order
4932 SubExprs.push_back(APIOrderedArgs[1]); // Val1
4936 SubExprs.push_back(APIOrderedArgs[3]); // Order
4937 SubExprs.push_back(APIOrderedArgs[1]); // Val1
4938 SubExprs.push_back(APIOrderedArgs[2]); // Val2
4941 SubExprs.push_back(APIOrderedArgs[3]); // Order
4942 SubExprs.push_back(APIOrderedArgs[1]); // Val1
4943 SubExprs.push_back(APIOrderedArgs[4]); // OrderFail
4944 SubExprs.push_back(APIOrderedArgs[2]); // Val2
4947 SubExprs.push_back(APIOrderedArgs[4]); // Order
4948 SubExprs.push_back(APIOrderedArgs[1]); // Val1
4949 SubExprs.push_back(APIOrderedArgs[5]); // OrderFail
4950 SubExprs.push_back(APIOrderedArgs[2]); // Val2
4951 SubExprs.push_back(APIOrderedArgs[3]); // Weak
4957 if (SubExprs[1]->isIntegerConstantExpr(Result, Context) &&
4959 Diag(SubExprs[1]->getBeginLoc(),
4961 << SubExprs[1]->getSourceRange();
5476 llvm::UTF16 *ToPtr = &ToBuf[0];
6544 ValidString &= Fields[0].startswith_lower("cp") ||
6545 Fields[0].startswith_lower("p");
6547 Fields[0] =
6548 Fields[0].drop_front(Fields[0].startswith_lower("cp") ? 2 : 1);
6548 Fields[0].drop_front(Fields[0].startswith_lower("cp") ? 2 : 1);
6550 ValidString &= Fields[2].startswith_lower("c");
6552 Fields[2] = Fields[2].drop_front(1);
6552 Fields[2] = Fields[2].drop_front(1);
6555 ValidString &= Fields[3].startswith_lower("c");
6557 Fields[3] = Fields[3].drop_front(1);
6557 Fields[3] = Fields[3].drop_front(1);
6569 ValidString &= !Fields[i].getAsInteger(10, IntField);
6570 ValidString &= (IntField >= 0 && IntField <= Ranges[i]);
7516 S, IsFunctionCall, DiagnosticExprs[0],
7518 DiagnosticExprs[0]->getSourceRange());
12511 Values[S.Index].Merged = true;
12523 C = Values[C].Parent;
12531 if (Values[K].Merged)
12533 return Values[K].Parent = representative(Values[K].Parent);
12533 return Values[K].Parent = representative(Values[K].Parent);
12956 Tree.merge(Elts[I]);
12977 Tree.merge(Elts[I]);
tools/clang/lib/Sema/SemaCodeComplete.cpp 4025 Builder.getAllocator().CopyString(Modules[I]->Name));
4028 Modules[I]->isAvailable() ? CXAvailability_Available
8314 for (auto *P : Containers[I]->instance_properties())
tools/clang/lib/Sema/SemaDecl.cpp 2631 const Attr *NewAttribute = NewAttributes[I];
3695 Diag(Warnings[Warn].NewParm->getLocation(),
3697 << Warnings[Warn].PromotedType
3698 << Warnings[Warn].OldParm->getType();
3699 if (Warnings[Warn].OldParm->getLocation().isValid())
3700 Diag(Warnings[Warn].OldParm->getLocation(),
4727 NamedChain[i] = Chaining[i];
12493 if (Notes.size() == 1 && Notes[0].second.getDiagID() ==
12495 DiagLoc = Notes[0].first;
12501 Diag(Notes[I].first, Notes[I].second);
12501 Diag(Notes[I].first, Notes[I].second);
16371 Decl *ivarDecl = AllIvarDecls[AllIvarDecls.size()-1];
tools/clang/lib/Sema/SemaDeclAttr.cpp 742 Arg = Args[0];
791 Expr **StartArg = &Args[0];
801 Expr **StartArg = &Args[0];
821 Expr **StartArg = Size == 0 ? nullptr : &Args[0];
833 Expr **StartArg = Size == 0 ? nullptr : &Args[0];
944 D->addAttr(::new (S.Context) LockReturnedAttr(S.Context, AL, Args[0]));
957 Expr **StartArg = &Args[0];
2221 const auto *OldAA = dyn_cast<AvailabilityAttr>(Attrs[i]);
7997 NameRange, SelectorSlotNames[I]));
8000 FixItHint::CreateInsertion(Locs[I], SelectorSlotNames[I]));
tools/clang/lib/Sema/SemaDeclCXX.cpp 403 SR = SourceRange((*Toks)[1].getLocation(),
2272 SemaRef.Diag(ReturnStmts[I],
2304 SemaRef.Diag(Diags[I].first, Diags[I].second);
2304 SemaRef.Diag(Diags[I].first, Diags[I].second);
5200 if (InitKey == IdealInitKeys[IdealIndex])
5223 if (InitKey == IdealInitKeys[IdealIndex])
8294 CXXMethodDecl *overloadedMD = OverloadedMethods[i];
13614 Diag(Notes[I].first, Notes[I].second);
13614 Diag(Notes[I].first, Notes[I].second);
15573 = VTablesUsed.find(VTables[I].Record);
15576 if (!Pos->second && VTables[I].DefinitionRequired)
15581 VTablesUsed[VTables[I].Record] = VTables[I].DefinitionRequired;
15581 VTablesUsed[VTables[I].Record] = VTables[I].DefinitionRequired;
15582 NewUses.push_back(VTableUse(VTables[I].Record, VTables[I].Location));
15582 NewUses.push_back(VTableUse(VTables[I].Record, VTables[I].Location));
15661 CXXRecordDecl *Class = VTableUses[I].first->getDefinition();
15667 SourceLocation Loc = VTableUses[I].second;
15798 FieldDecl *Field = ivars[i];
tools/clang/lib/Sema/SemaDeclObjC.cpp 1448 = reinterpret_cast<ObjCProtocolDecl *&>(protocols[i]);
1618 TypeResult type = resolveTypeReference(typeDecls[i], identifierLocs[i]);
1643 if (protocols[i] || typeDecls[i]) {
1643 if (protocols[i] || typeDecls[i]) {
1649 if (protocols[i] && typeDecls[i])
1649 if (protocols[i] && typeDecls[i])
1654 lookupKind = protocols[i] ? LookupObjCProtocolName
1661 if (lookupKind == LookupObjCProtocolName && protocols[i])
1666 if (lookupKind == LookupOrdinaryName && typeDecls[i])
1673 protocols[i] != nullptr);
1692 protocols[i] = proto;
1703 typeDecls[i] = typeDecl;
1714 typeDecls[i] = objcClass;
3568 if (!MatchTwoMethodDeclarations(Methods[0], Methods[I], MMS_strict)) {
3568 if (!MatchTwoMethodDeclarations(Methods[0], Methods[I], MMS_strict)) {
3582 if (!MatchTwoMethodDeclarations(Methods[0], Methods[I], MMS_loose) &&
3582 if (!MatchTwoMethodDeclarations(Methods[0], Methods[I], MMS_loose) &&
3583 !isAcceptableMethodMismatch(Methods[0], Methods[I])) {
3583 !isAcceptableMethodMismatch(Methods[0], Methods[I])) {
3599 Diag(Methods[0]->getBeginLoc(),
3601 << Methods[0]->getSourceRange();
3603 Diag(Methods[I]->getBeginLoc(), diag::note_also_found)
3604 << Methods[I]->getSourceRange();
3717 Sel.getAsString(), Methods[i]);
3719 return (SelectedMethods.size() == 1) ? SelectedMethods[0] : nullptr;
4829 const FieldDecl* ID = Ivars[i];
4971 ReferencedSelectors[Sels[I].first] = Sels[I].second;
4971 ReferencedSelectors[Sels[I].first] = Sels[I].second;
tools/clang/lib/Sema/SemaExpr.cpp 1583 CompatIndices.size() ? CompatIndices[0] : DefaultIndex;
1697 &StringTokLocs[0],
1705 getUDSuffixLoc(*this, StringTokLocs[Literal.getUDSuffixToken()],
1734 StringTokLocs[0]);
3189 char *ResultPtr = &Target[0];
3195 Target.resize(ResultPtr - &Target[0]);
5137 Call->setArg(i, AllArgs[i]);
14986 if (Notes.size() == 1 && Notes[0].second.getDiagID() ==
14988 DiagLoc = Notes[0].first;
15063 ExprEvalContexts[ExprEvalContexts.size()-2].Context;
16089 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex];
16145 FunctionScopes[FunctionScopesIndex - I]);
16207 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]);
tools/clang/lib/Sema/SemaExprCXX.cpp 1184 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) {
1187 CSI->Captures[CSI->CXXThisCaptureIndex - 1].markUsed(BuildAndDiagnose);
1231 dyn_cast<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) &&
1237 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]);
2268 AlignArg = Args[1];
2586 OperatorDelete = Matches[0].second;
2625 Matches[0].first);
2911 Operator = cast<CXXMethodDecl>(Matches[0].FD);
2923 Matches[0].Found, Diagnose) == AR_inaccessible)
6278 if ((QualifierUnion[I] & Qualifiers::Const) == 0)
6279 QualifierUnion[I] = QualifierUnion[I] | Qualifiers::Const;
6279 QualifierUnion[I] = QualifierUnion[I] | Qualifiers::Const;
6637 CallExpr *Call = ExprEvalContexts.back().DelayedDecltypeCalls[I];
6651 ExprEvalContexts.back().DelayedDecltypeBinds[I];
tools/clang/lib/Sema/SemaExprObjC.cpp 73 /*Pascal=*/false, StrTy, &StrLocs[0],
1491 findExplicitInstancetypeDeclarer(overrides[i], instancetype))
2796 Method = Methods[0];
2856 Method = Methods[0];
2944 Method = Methods[0];
tools/clang/lib/Sema/SemaInit.cpp 2279 DIE->ExpandDesignator(SemaRef.Context, DesigIdx, &Replacements[0],
2280 &Replacements[0] + Replacements.size());
2288 IndexExprs[I] = DIE->getSubExpr(I + 1);
7525 auto Elem = Path[I];
tools/clang/lib/Sema/SemaLambda.cpp 1416 InvokerParams[I]->setOwningFunction(Invoke);
1689 const Capture &From = LSI->Captures[I];
tools/clang/lib/Sema/SemaLookup.cpp 731 assert(GenTypeMaxCnt % ArgTypes[A].size() == 0 &&
733 unsigned Idx = IGenType % ArgTypes[A].size();
734 ArgList.push_back(ArgTypes[A][Idx]);
734 ArgList.push_back(ArgTypes[A][Idx]);
738 RetTypes[(RetTypes.size() != 1) ? IGenType : 0], ArgList, PI));
1552 Module *M = getDefiningModule(*this, CodeSynthesisContexts[I].Entity);
4319 return ValidatedCorrections[CurrentTCIndex];
4339 return ValidatedCorrections[CurrentTCIndex];
4342 return ValidatedCorrections[0]; // The empty correction.
tools/clang/lib/Sema/SemaObjCProperty.cpp 870 Properties[SelectedIndex] = OriginalProperty;
964 Diag << Mismatches[0].Kind;
965 switch (Mismatches[0].Kind) {
971 Diag << Mismatches[0].AttributeName;
1845 ObjCPropertyDecl *Prop = PropertyOrder[i];
tools/clang/lib/Sema/SemaOpenMP.cpp 214 return &Stack.back().first[Size - 1];
231 return &Stack.back().first[Size - 2];
245 return Stack.back().first[Level];
530 return CaptureRegions[OpenMPCaptureLevel];
1934 FunctionScopeInfo *FSI = FunctionScopes[I - 1];
4002 if (FoundNameModifiers[CurNM]) {
4011 FoundNameModifiers[CurNM] = IC;
4035 if (FoundNameModifiers[OMPD_unknown] && NamedModifiersNumber > 0) {
4037 S.Diag(FoundNameModifiers[OMPD_unknown]->getBeginLoc(),
4048 if (!FoundNameModifiers[NM]) {
4059 S.Diag(FoundNameModifiers[OMPD_unknown]->getCondition()->getBeginLoc(),
6968 if (Cnt > 0 && IterSpaces[Cnt].CounterVar) {
6970 auto *DRE = cast<DeclRefExpr>(IterSpaces[Cnt].CounterVar);
7026 auto PreCond = ExprResult(IterSpaces[0].PreCond);
7027 Expr *N0 = IterSpaces[0].NumIterations;
7056 PreCond.get(), IterSpaces[Cnt].PreCond);
7058 Expr *N = IterSpaces[Cnt].NumIterations;
7133 SourceLocation InitLoc = IterSpaces[0].InitSrcRange.getBegin();
7455 LoopIterationSpace &IS = IterSpaces[Cnt];
7464 IterSpaces[K].NumIterations);
7526 Built.Counters[Cnt] = IS.CounterVar;
7527 Built.PrivateCounters[Cnt] = IS.PrivateCounterVar;
7528 Built.Inits[Cnt] = Init.get();
7529 Built.Updates[Cnt] = Update.get();
7530 Built.Finals[Cnt] = Final.get();
7531 Built.DependentCounters[Cnt] = nullptr;
7532 Built.DependentInits[Cnt] = nullptr;
7533 Built.FinalsConditions[Cnt] = nullptr;
7535 Built.DependentCounters[Cnt] =
7536 Built.Counters[NestedLoopCount - 1 - IS.LoopDependentIdx];
7537 Built.DependentInits[Cnt] =
7538 Built.Inits[NestedLoopCount - 1 - IS.LoopDependentIdx];
7539 Built.FinalsConditions[Cnt] = IS.FinalCondition;
13912 Diag(StepLoc, diag::warn_omp_linear_step_zero) << Vars[0]
tools/clang/lib/Sema/SemaOverload.cpp 5610 Notes[0].second.getDiagID() == diag::note_invalid_subexpr_in_const_expr)
5611 S.Diag(Notes[0].first, diag::err_expr_not_cce) << CCE;
5616 S.Diag(Notes[I].first, Notes[I].second);
5616 S.Diag(Notes[I].first, Notes[I].second);
6306 ObjCMethodDecl *Method = Methods[b];
6377 QualType ReturnT = Methods[b]->getReturnType();
6379 return Methods[b];
8063 const auto TypeOfT = ArithmeticTypes[Arith];
8089 Ptr = CandidateTypes[0].pointer_begin(),
8090 PtrEnd = CandidateTypes[0].pointer_end();
8116 Ptr = CandidateTypes[0].pointer_begin(),
8117 PtrEnd = CandidateTypes[0].pointer_end();
8144 QualType ArithTy = ArithmeticTypes[Arith];
8150 Vec = CandidateTypes[0].vector_begin(),
8151 VecEnd = CandidateTypes[0].vector_end();
8165 Ptr = CandidateTypes[0].pointer_begin(),
8166 PtrEnd = CandidateTypes[0].pointer_end();
8184 QualType IntTy = ArithmeticTypes[Int];
8190 Vec = CandidateTypes[0].vector_begin(),
8191 VecEnd = CandidateTypes[0].vector_end();
8210 MemPtr = CandidateTypes[ArgIdx].member_pointer_begin(),
8211 MemPtrEnd = CandidateTypes[ArgIdx].member_pointer_end();
8222 if (CandidateTypes[ArgIdx].hasNullPtrType()) {
8261 if (CandidateTypes[ArgIdx].enumeration_begin() !=
8262 CandidateTypes[ArgIdx].enumeration_end()) {
8301 Ptr = CandidateTypes[ArgIdx].pointer_begin(),
8302 PtrEnd = CandidateTypes[ArgIdx].pointer_end();
8312 Enum = CandidateTypes[ArgIdx].enumeration_begin(),
8313 EnumEnd = CandidateTypes[ArgIdx].enumeration_end();
8356 Ptr = CandidateTypes[Arg].pointer_begin(),
8357 PtrEnd = CandidateTypes[Arg].pointer_end();
8418 QualType LandR[2] = { ArithmeticTypes[Left],
8419 ArithmeticTypes[Right] };
8427 Vec1 = CandidateTypes[0].vector_begin(),
8428 Vec1End = CandidateTypes[0].vector_end();
8431 Vec2 = CandidateTypes[1].vector_begin(),
8432 Vec2End = CandidateTypes[1].vector_end();
8497 QualType LandR[2] = { ArithmeticTypes[Left],
8498 ArithmeticTypes[Right] };
8517 Enum = CandidateTypes[ArgIdx].enumeration_begin(),
8518 EnumEnd = CandidateTypes[ArgIdx].enumeration_end();
8527 MemPtr = CandidateTypes[ArgIdx].member_pointer_begin(),
8528 MemPtrEnd = CandidateTypes[ArgIdx].member_pointer_end();
8559 Ptr = CandidateTypes[0].pointer_begin(),
8560 PtrEnd = CandidateTypes[0].pointer_end();
8609 Ptr = CandidateTypes[1].pointer_begin(),
8610 PtrEnd = CandidateTypes[1].pointer_end();
8678 ParamTypes[1] = ArithmeticTypes[Right];
8680 S, ArithmeticTypes[Left], Args[0]);
8698 Vec1 = CandidateTypes[0].vector_begin(),
8699 Vec1End = CandidateTypes[0].vector_end();
8702 Vec2 = CandidateTypes[1].vector_begin(),
8703 Vec2End = CandidateTypes[1].vector_end();
8743 ParamTypes[1] = ArithmeticTypes[Right];
8745 S, ArithmeticTypes[Left], Args[0]);
8792 Ptr = CandidateTypes[0].pointer_begin(),
8793 PtrEnd = CandidateTypes[0].pointer_end();
8805 Ptr = CandidateTypes[1].pointer_begin(),
8806 PtrEnd = CandidateTypes[1].pointer_end();
8829 Ptr = CandidateTypes[0].pointer_begin(),
8830 PtrEnd = CandidateTypes[0].pointer_end();
8846 MemPtr = CandidateTypes[1].member_pointer_begin(),
8847 MemPtrEnd = CandidateTypes[1].member_pointer_end();
8885 Ptr = CandidateTypes[ArgIdx].pointer_begin(),
8886 PtrEnd = CandidateTypes[ArgIdx].pointer_end();
8896 MemPtr = CandidateTypes[ArgIdx].member_pointer_begin(),
8897 MemPtrEnd = CandidateTypes[ArgIdx].member_pointer_end();
8908 Enum = CandidateTypes[ArgIdx].enumeration_begin(),
8909 EnumEnd = CandidateTypes[ArgIdx].enumeration_end();
8950 CandidateTypes[ArgIdx].AddTypesConvertedFrom(Args[ArgIdx]->getType(),
8958 CandidateTypes[ArgIdx].hasNonRecordTypes();
8961 CandidateTypes[ArgIdx].hasArithmeticOrEnumeralTypes();
11410 Matches[0] = *Best;
11569 MatchesCopy.addDecl(Matches[I].second, Matches[I].first.getAccess());
11569 MatchesCopy.addDecl(Matches[I].second, Matches[I].first.getAccess());
11577 << Matches[0].second->getDeclName(),
11584 Matches[0].first = Matches[Result - MatchesCopy.begin()].first;
11584 Matches[0].first = Matches[Result - MatchesCopy.begin()].first;
11585 Matches[0].second = cast<FunctionDecl>(*Result);
11595 if (Matches[I].second->getPrimaryTemplate() == nullptr)
11598 Matches[I] = Matches[--N];
11598 Matches[I] = Matches[--N];
13798 MethodArgs[0] = Object.get();
13827 MethodArgs[i + 1] = Arg;
13837 MethodArgs[i + 1] = Arg.get();
14173 AssocExprs[ResultIdx] = SubExpr;
tools/clang/lib/Sema/SemaPseudoObject.cpp 403 if (e == Semantics[index]) break;
672 PropertyName[0] = front;
1118 Diag(ConversionDecls[i]->getLocation(),
1464 return CallArgs[Idx - 1];
tools/clang/lib/Sema/SemaStmt.cpp 984 CaseVals[i].first == ConstantCondValue)
987 if (i != 0 && CaseVals[i].first == CaseVals[i-1].first) {
987 if (i != 0 && CaseVals[i].first == CaseVals[i-1].first) {
991 Expr *PrevCase = CaseVals[i-1].second->getLHS()->IgnoreParenCasts();
992 Expr *CurrCase = CaseVals[i].second->getLHS()->IgnoreParenCasts();
1000 CaseVals[i-1].first.toString(CaseValStr);
1003 Diag(CaseVals[i].second->getLHS()->getBeginLoc(),
1007 Diag(CaseVals[i].second->getLHS()->getBeginLoc(),
1013 Diag(CaseVals[i - 1].second->getLHS()->getBeginLoc(),
1239 DB << UnhandledNames[I];
tools/clang/lib/Sema/SemaStmtAsm.cpp 471 GCCAsmStmt::AsmStringPiece &Piece = Pieces[i];
486 if (OutputConstraintInfos[I].isReadWrite() && Cnt-- == 0) {
522 TargetInfo::ConstraintInfo &Info = OutputConstraintInfos[i];
537 TargetInfo::ConstraintInfo &Info = InputConstraintInfos[i];
561 if (InputMatchedToOutput[TiedTo] != ~0U) {
565 targetDiag(NS->getInputExpr(InputMatchedToOutput[TiedTo])->getBeginLoc(),
570 InputMatchedToOutput[TiedTo] = i;
635 OutputConstraintInfos[TiedTo].allowsRegister())
tools/clang/lib/Sema/SemaTemplate.cpp 1949 NewTL.setParam(I, Params[I]);
2752 T = NestedTypes[TypeIdx];
4091 VarTemplatePartialSpecializationDecl *Partial = PartialSpecs[I];
5798 if (Notes.size() == 1 && Notes[0].second.getDiagID() ==
5800 DiagLoc = Notes[0].first;
5807 S.Diag(Notes[I].first, Notes[I].second);
5807 S.Diag(Notes[I].first, Notes[I].second);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 383 S.Context, Deduced[NTTP->getIndex()], NewDeduced);
386 Info.FirstArg = Deduced[NTTP->getIndex()];
391 Deduced[NTTP->getIndex()] = Result;
500 Deduced[TempParam->getIndex()],
504 Info.FirstArg = Deduced[TempParam->getIndex()];
509 Deduced[TempParam->getIndex()] = Result;
705 Pack.Saved = Deduced[Index];
706 Deduced[Index] = TemplateArgument();
735 std::tie(Depth, Index) = getDepthAndIndex(Unexpanded[I]);
773 if (Packs[I].Index >= Info.getNumExplicitArgs()) {
779 std::make_pair(Info.getDeducedDepth(), Packs[I].Index)) {
793 Pack.Outer = Info.PendingDeducedPacks[Pack.Index];
796 Info.PendingDeducedPacks[Pack.Index] = &Pack;
810 Deduced[Pack.Index] = Pack.New[PackElements];
810 Deduced[Pack.Index] = Pack.New[PackElements];
818 Info.PendingDeducedPacks[Pack.Index] = Pack.Outer;
843 DeducedTemplateArgument &DeducedArg = Deduced[Pack.Index];
850 Pack.New[PackElements] = DeducedArg;
852 ? Pack.New[PackElements + 1]
868 Deduced[Pack.Index] = Pack.Saved;
903 Pack.New[0].wasDeducedFromArrayBound());
917 Loc = &Deduced[Pack.Index];
1412 Deduced[Index],
1416 Info.FirstArg = Deduced[Index];
1421 Deduced[Index] = Result;
2613 if (Deduced[I].isNull() && Param->isTemplateParameterPack()) {
2619 if (!Deduced[I].isNull()) {
2635 Builder.push_back(Deduced[I]);
2642 if (ConvertDeducedTemplateArgument(S, Param, Deduced[I], Template, Info,
2818 TemplateArgument InstArg = Builder[I];
3884 QualType ParamType = ParamTypes[ParamIdx];
4539 Deduced[0].getKind() != TemplateArgument::Null)
4555 if (Deduced[0].getKind() != TemplateArgument::Type)
4558 QualType DeducedType = Deduced[0].getAsType();
4572 QualType DeducedA = InitList ? Deduced[0].getAsType() : Result;
4818 if (Deduced[ArgIdx].isNull())
4836 ::MarkUsedTemplateParameters(S.Context, Args2[I], false,
4856 if (Deduced[ArgIdx].isNull() && UsedParameters[ArgIdx])
5227 TemplateArgument Arg = PArgs[I];
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp 1459 TransformedDecl = (*Pack)[getSema().ArgumentPackSubstitutionIndex];
2475 if (!DeduceTemplateArguments(PartialSpecs[I],
2516 ClassTemplatePartialSpecializationDecl *Partial = PartialSpecs[I];
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 1488 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine())
1489 OutOfLinePartialSpecs.push_back(std::make_pair(Inst, PartialSpecs[I]));
1571 if (PartialSpecs[I]->getFirstDecl()->isOutOfLine())
1573 std::make_pair(Inst, PartialSpecs[I]));
1871 if (Params[P])
1872 Params[P]->setOwningFunction(Function);
2108 TempParamLists[I] = InstParams;
2237 Params[P]->setOwningFunction(Method);
5346 return cast<NamedDecl>((*Found->get<DeclArgumentPack *>())[PackIdx]);
tools/clang/lib/Sema/SemaTemplateVariadic.cpp 330 sema::FunctionScopeInfo *Func = FunctionScopes[N-1];
374 DB << Names[I];
377 DB << SourceRange(Locations[I]);
795 = Unexpanded[I].first.dyn_cast<const TemplateTypeParmType *>()) {
799 NamedDecl *ND = Unexpanded[I].first.get<NamedDecl *>();
806 Unexpanded[I].first.get<NamedDecl *>());
tools/clang/lib/Sema/SemaType.cpp 1217 ObjCObjectTL.setTypeArgTInfo(i, ActualTypeArgInfos[i]);
4865 ExtParameterInfos[i] = ExtParameterInfos[i].withIsConsumed(true);
4865 ExtParameterInfos[i] = ExtParameterInfos[i].withIsConsumed(true);
4870 ExtParameterInfos[i] =
4871 ExtParameterInfos[i].withABI(attr->getABI());
4876 ExtParameterInfos[i] = ExtParameterInfos[i].withHasPassObjectSize();
4876 ExtParameterInfos[i] = ExtParameterInfos[i].withHasPassObjectSize();
4881 ExtParameterInfos[i] = ExtParameterInfos[i].withIsNoEscape(true);
4881 ExtParameterInfos[i] = ExtParameterInfos[i].withIsNoEscape(true);
6401 switch (static_cast<WrapKind>(Stack[I++])) {
tools/clang/lib/Sema/TreeTransform.h 5360 if (ParmVarDecl *parm = (*PVars)[i])
5471 NewTL.setParam(i, ParamDecls[i]);
6606 NewT.setTypeArgTInfo(i, NewTypeArgInfos[i]);
11397 TransformedInitCapture &Result = InitCaptures[C - E->capture_begin()];
11572 TransformedInitCapture &NewC = InitCaptures[C - E->capture_begin()];
tools/clang/lib/Sema/TypeLocBuilder.cpp 30 TypeLoc CurTL = TypeLocs[e-i-1];
tools/clang/lib/Serialization/ASTReader.cpp 639 StringRef MacroName = ExistingMacroNames[I];
1452 llvm::zlib::uncompress(Blob, Uncompressed, Record[0])) {
1505 unsigned InputID = Record[4];
1516 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]);
1522 FileCharacter = (SrcMgr::CharacteristicKind)Record[2];
1525 ID, BaseOffset + Record[0]);
1528 FileInfo.NumCreatedFIDs = Record[5];
1529 if (Record[3])
1532 unsigned NumFileDecls = Record[7];
1534 const DeclID *FirstDecl = F->FileSortedDecls + Record[6];
1556 unsigned Offset = Record[0];
1558 FileCharacter = (SrcMgr::CharacteristicKind)Record[2];
1559 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]);
1573 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]);
1575 ReadSourceLocation(*F, Record[2]),
1576 ReadSourceLocation(*F, Record[3]),
1577 Record[5],
1578 Record[4],
1580 BaseOffset + Record[0]);
1739 MI->setIsUsed(Record[NextIndex++]);
1740 MI->setUsedForHeaderGuard(Record[NextIndex++]);
1744 bool isC99VarArgs = Record[NextIndex++];
1745 bool isGNUVarArgs = Record[NextIndex++];
1746 bool hasCommaPasting = Record[NextIndex++];
1748 unsigned NumArgs = Record[NextIndex++];
1750 MacroParams.push_back(getLocalIdentifier(F, Record[NextIndex++]));
1765 Record[NextIndex]) {
1768 GlobalID = getGlobalPreprocessedEntityID(F, Record[NextIndex]);
1984 IdentifierInfo *II = getLocalIdentifier(I, Record[0]);
2140 Info.SubModID = getGlobalSubmoduleID(M, Record[0]);
2141 Info.MI = getMacro(getGlobalMacroID(M, Record[1]));
2143 Info.Overrides.push_back(getGlobalSubmoduleID(M, Record[I]));
2187 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++];
2190 MacroInfo *MI = getMacro(getGlobalMacroID(M, Record[Idx++]));
2198 bool isPublic = Record[Idx++];
2241 assert(Record[0] == ID && "Bogus stored ID or offset");
2243 R.StoredSize = static_cast<off_t>(Record[1]);
2244 R.StoredTime = static_cast<time_t>(Record[2]);
2245 R.Overridden = static_cast<bool>(Record[3]);
2246 R.Transient = static_cast<bool>(Record[4]);
2247 R.TopLevelModuleMap = static_cast<bool>(Record[5]);
2266 R.ContentHash = (static_cast<uint64_t>(Record[1]) << 32) |
2267 static_cast<uint64_t>(Record[0]);
2416 << Filename << ImportStack[0]->FileName;
2419 << ImportStack[I-1]->FileName << ImportStack[I]->FileName;
2419 << ImportStack[I-1]->FileName << ImportStack[I]->FileName;
2732 if (Record[0] != VERSION_MAJOR && !DisableValidation) {
2734 Diag(Record[0] < VERSION_MAJOR? diag::err_pch_version_too_old
2739 bool hasErrors = Record[7];
2750 F.RelocatablePCH = Record[4];
2755 F.HasTimestamps = Record[5];
2757 F.PCHHasObjectFile = Record[6];
2780 ModuleKind ImportedKind = (ModuleKind)Record[Idx++];
2785 ReadUntranslatedSourceLocation(Record[Idx++]);
2786 off_t StoredSize = (off_t)Record[Idx++];
2787 time_t StoredModTime = (time_t)Record[Idx++];
2789 {{(uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
2789 {{(uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
2790 (uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
2790 (uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
2791 (uint32_t)Record[Idx++]}}};
2843 F.OriginalSourceFileID = FileID::get(Record[0]);
2850 F.OriginalSourceFileID = FileID::get(Record[0]);
2911 NumInputs = Record[0];
2912 NumUserInputs = Record[1];
3097 F.LocalNumTypes = Record[0];
3098 unsigned LocalBaseTypeIndex = Record[1];
3121 F.LocalNumDecls = Record[0];
3122 unsigned LocalBaseDeclID = Record[1];
3171 if (Record[0]) {
3173 (const unsigned char *)F.IdentifierTableData + Record[0],
3188 F.LocalNumIdentifiers = Record[0];
3189 unsigned LocalBaseIdentifierID = Record[1];
3218 EagerlyDeserializedDecls.push_back(getGlobalDeclID(F, Record[I]));
3226 EagerlyDeserializedDecls.push_back(getGlobalDeclID(F, Record[I]));
3232 SpecialTypes.push_back(getGlobalTypeID(F, Record[I]));
3242 serialization::TypeID ID = getGlobalTypeID(F, Record[I]);
3243 if (!SpecialTypes[I])
3244 SpecialTypes[I] = ID;
3251 TotalNumStatements += Record[0];
3252 TotalNumMacros += Record[1];
3253 TotalLexicalDeclContexts += Record[2];
3254 TotalVisibleDeclContexts += Record[3];
3259 UnusedFileScopedDecls.push_back(getGlobalDeclID(F, Record[I]));
3264 DelegatingCtorDecls.push_back(getGlobalDeclID(F, Record[I]));
3280 getGlobalIdentifierID(F, Record[I++]));
3282 getGlobalIdentifierID(F, Record[I++]));
3285 WeakUndeclaredIdentifiers.push_back(Record[I++]);
3291 F.LocalNumSelectors = Record[0];
3292 unsigned LocalBaseSelectorID = Record[1];
3313 if (Record[0])
3316 F.SelectorLookupTableData + Record[0],
3319 TotalNumMethodPoolEntries += Record[1];
3326 Record[Idx++]));
3336 bool ReachedEOFWhileSkipping = Record[Idx++];
3341 bool FoundNonSkipPortion = Record[Idx++];
3342 bool FoundElse = Record[Idx++];
3350 bool WasSkipping = Record[Idx++];
3351 bool FoundNonSkip = Record[Idx++];
3352 bool FoundElse = Record[Idx++];
3362 Listener->ReadCounter(F, Record[0]);
3367 F.NumFileSortedDecls = Record[0];
3372 F.LocalNumSLocEntries = Record[0];
3373 unsigned SLocSpaceSize = Record[1];
3429 ExtVectorDecls.push_back(getGlobalDeclID(F, Record[I]));
3444 VTableUses.push_back(getGlobalDeclID(F, Record[Idx++]));
3447 VTableUses.push_back(Record[Idx++]);
3463 PendingInstantiations.push_back(getGlobalDeclID(F, Record[I++]));
3475 SemaDeclRefs.push_back(getGlobalDeclID(F, Record[I]));
3483 unsigned LocalBasePreprocessedEntityID = Record[0];
3534 GlobalDeclID ID = getGlobalDeclID(F, Record[I]);
3535 DeclUpdateOffsets[ID].push_back(std::make_pair(&F, Record[I + 1]));
3551 F.LocalNumObjCCategoriesInMap = Record[0];
3564 CUDASpecialDeclRefs.push_back(getGlobalDeclID(F, Record[I]));
3569 F.LocalNumHeaderFileInfos = Record[1];
3570 if (Record[0]) {
3573 (const unsigned char *)F.HeaderFileInfoTableData + Record[0],
3577 Blob.data() + Record[2]));
3594 Opt.Supported = Record[I++] != 0;
3595 Opt.Enabled = Record[I++] != 0;
3596 Opt.Avail = Record[I++];
3597 Opt.Core = Record[I++];
3603 auto TypeID = static_cast<::TypeID>(Record[I++]);
3605 auto NumExt = static_cast<unsigned>(Record[I++]);
3615 auto DeclID = static_cast<::DeclID>(Record[I++]);
3617 auto NumExt = static_cast<unsigned>(Record[I++]);
3627 TentativeDefinitions.push_back(getGlobalDeclID(F, Record[I]));
3632 KnownNamespaces.push_back(getGlobalDeclID(F, Record[I]));
3646 UndefinedButUsed.push_back(getGlobalDeclID(F, Record[I++]));
3654 DelayedDeleteExprs.push_back(getGlobalDeclID(F, Record[I++]));
3655 const uint64_t Count = Record[I++];
3659 bool IsArrayForm = Record[I++] == 1;
3671 unsigned GlobalID = getGlobalSubmoduleID(F, Record[I++]);
3688 F.LocalNumMacros = Record[0];
3689 unsigned LocalBaseMacroID = Record[1];
3715 OptimizeOffPragmaLocation = ReadSourceLocation(F, Record[0]);
3723 PragmaMSStructState = Record[0];
3731 PragmaMSPointersToMembersState = Record[0];
3732 PointersToMembersPragmaLocation = ReadSourceLocation(F, Record[1]);
3738 getGlobalDeclID(F, Record[I]));
3746 ForceCUDAHostDeviceDepth = Record[0];
3754 PragmaPackCurrentValue = Record[0];
3755 PragmaPackCurrentLocation = ReadSourceLocation(F, Record[1]);
3756 unsigned NumStackEntries = Record[2];
3762 Entry.Value = Record[Idx++];
3763 Entry.Location = ReadSourceLocation(F, Record[Idx++]);
3764 Entry.PushLocation = ReadSourceLocation(F, Record[Idx++]);
3921 for (unsigned I = 0, N = Record[Idx++]; I < N; ++I) {
4233 int Index = int(F.PreloadSLocEntries[I] - 1) + F.SLocEntryBaseID;
4310 UnresolvedModuleRef &Unresolved = UnresolvedModuleRefs[I];
4371 loadObjCCategories(ObjCClassesLoaded[I]->getGlobalID(),
4372 ObjCClassesLoaded[I],
4385 ImportedModule &M = Loaded[I];
4811 if (unsigned String = SpecialTypes[SPECIAL_TYPE_CF_CONSTANT_STRING]) {
4816 if (unsigned File = SpecialTypes[SPECIAL_TYPE_FILE]) {
4837 if (unsigned Jmp_buf = SpecialTypes[SPECIAL_TYPE_JMP_BUF]) {
4858 if (unsigned Sigjmp_buf = SpecialTypes[SPECIAL_TYPE_SIGJMP_BUF]) {
4877 = SpecialTypes[SPECIAL_TYPE_OBJC_ID_REDEFINITION]) {
4883 = SpecialTypes[SPECIAL_TYPE_OBJC_CLASS_REDEFINITION]) {
4889 = SpecialTypes[SPECIAL_TYPE_OBJC_SEL_REDEFINITION]) {
4894 if (unsigned Ucontext_t = SpecialTypes[SPECIAL_TYPE_UCONTEXT_T]) {
4919 cast<FunctionDecl>(GetDecl(CUDASpecialDeclRefs[0])));
4978 return {{{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
4978 return {{{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
4978 return {{{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
4979 (uint32_t)Record[3], (uint32_t)Record[4]}}};
4979 (uint32_t)Record[3], (uint32_t)Record[4]}}};
5199 if (Record[0] != VERSION_MAJOR)
5221 unsigned NumInputFiles = Record[0];
5222 unsigned NumUserFiles = Record[1];
5259 bool Overridden = static_cast<bool>(Record[3]);
5441 SubmoduleID GlobalID = getGlobalSubmoduleID(F, Record[Idx++]);
5442 SubmoduleID Parent = getGlobalSubmoduleID(F, Record[Idx++]);
5443 Module::ModuleKind Kind = (Module::ModuleKind)Record[Idx++];
5444 bool IsFramework = Record[Idx++];
5445 bool IsExplicit = Record[Idx++];
5446 bool IsSystem = Record[Idx++];
5447 bool IsExternC = Record[Idx++];
5448 bool InferSubmodules = Record[Idx++];
5449 bool InferExplicitSubmodules = Record[Idx++];
5450 bool InferExportWildcard = Record[Idx++];
5451 bool ConfigMacrosExhaustive = Record[Idx++];
5452 bool ModuleMapIsPrivate = Record[Idx++];
5469 SubmodulesLoaded[GlobalIndex]) {
5506 SubmodulesLoaded[GlobalIndex] = CurrentModule;
5577 F.LocalNumSubmodules = Record[0];
5578 unsigned LocalBaseSubmoduleID = Record[1];
5600 Unresolved.ID = Record[Idx];
5612 Unresolved.ID = Record[Idx];
5614 Unresolved.IsWildcard = Record[Idx + 1];
5624 CurrentModule->addRequirement(Blob, Record[0], PP.getLangOpts(),
5631 Module::LinkLibrary(Blob, Record[0]));
5642 Unresolved.ID = Record[0];
5923 bool isBuiltin = Record[0];
5927 Name = getLocalIdentifier(M, Record[1]);
5930 getGlobalPreprocessedEntityID(M, Record[1]);
5947 IdentifierInfo *II = getLocalIdentifier(M, Record[0]);
5957 const char *FullFileNameStart = Blob.data() + Record[0];
5958 StringRef FullFileName(FullFileNameStart, Blob.size() - Record[0]);
5966 = static_cast<InclusionDirective::InclusionKind>(Record[2]);
5969 StringRef(Blob.data(), Record[0]),
5970 Record[1], Record[3],
5970 Record[1], Record[3],
6173 unsigned BackrefID = Record[Idx++];
6175 return DiagStates[BackrefID - 1];
6181 unsigned Size = Record[Idx++];
6185 unsigned DiagID = Record[Idx++];
6187 DiagnosticMapping::deserialize(Record[Idx++]);
6216 assert(Record[1] == 0 &&
6218 Idx = 3 + Record[2] * 2;
6225 unsigned Flags = Record[Idx++];
6251 unsigned NumLocations = Record[Idx++];
6255 SourceLocation Loc = ReadSourceLocation(F, Record[Idx++]);
6259 unsigned Transitions = Record[Idx++];
6268 unsigned Offset = Record[Idx++];
6279 ReadSourceLocation(F, F.PragmaDiagMappings[Idx++]);
6293 T[0].State = CurState;
6355 Qualifiers Quals = Qualifiers::fromOpaqueValue(Record[Idx++]);
6414 return Context.getLValueReferenceType(PointeeType, Record[1]);
6441 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1];
6442 unsigned IndexTypeQuals = Record[2];
6452 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1];
6453 unsigned IndexTypeQuals = Record[2];
6459 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1];
6460 unsigned IndexTypeQuals = Record[2];
6461 SourceLocation LBLoc = ReadSourceLocation(*Loc.F, Record[3]);
6462 SourceLocation RBLoc = ReadSourceLocation(*Loc.F, Record[4]);
6475 unsigned NumElements = Record[1];
6476 unsigned VecKind = Record[2];
6488 unsigned NumElements = Record[1];
6498 FunctionType::ExtInfo Info(Record[1], Record[2], Record[3],
6498 FunctionType::ExtInfo Info(Record[1], Record[2], Record[3],
6498 FunctionType::ExtInfo Info(Record[1], Record[2], Record[3],
6499 (CallingConv)Record[4], Record[5], Record[6],
6499 (CallingConv)Record[4], Record[5], Record[6],
6499 (CallingConv)Record[4], Record[5], Record[6],
6500 Record[7]);
6508 EPI.ExtInfo = FunctionType::ExtInfo(/*noreturn*/ Record[1],
6509 /*hasregparm*/ Record[2],
6510 /*regparm*/ Record[3],
6511 static_cast<CallingConv>(Record[4]),
6512 /*produces*/ Record[5],
6513 /*nocallersavedregs*/ Record[6],
6514 /*nocfcheck*/ Record[7]);
6518 EPI.Variadic = Record[Idx++];
6519 EPI.HasTrailingReturn = Record[Idx++];
6520 EPI.TypeQuals = Qualifiers::fromOpaqueValue(Record[Idx++]);
6521 EPI.RefQualifier = static_cast<RefQualifierKind>(Record[Idx++]);
6525 unsigned NumParams = Record[Idx++];
6535 ::getFromOpaqueValue(Record[Idx++]));
6583 UnaryTransformType::UTTKind UKind = (UnaryTransformType::UTTKind)Record[2];
6589 AutoTypeKeyword Keyword = (AutoTypeKeyword)Record[Idx++];
6592 IsDependent = Record[Idx] > 0;
6593 IsPack = Record[Idx] > 1;
6602 bool IsDependent = Deduced.isNull() ? Record[Idx++] : false;
6613 bool IsDependent = Record[Idx++];
6627 bool IsDependent = Record[Idx++];
6641 AttributedType::Kind kind = static_cast<AttributedType::Kind>(Record[2]);
6673 if (Record[1])
6674 NumExpansions = Record[1] - 1;
6680 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++];
6698 unsigned NumProtos = Record[Idx++];
6708 unsigned NumTypeArgs = Record[Idx++];
6712 unsigned NumProtos = Record[Idx++];
6716 bool IsKindOf = Record[Idx++];
6766 unsigned Depth = Record[Idx++];
6767 unsigned Index = Record[Idx++];
6768 bool Pack = Record[Idx++];
6776 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++];
6787 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++];
6790 unsigned NumArgs = Record[Idx++];
6805 = (ArrayType::ArraySizeModifier)Record[Idx++];
6806 unsigned IndexTypeQuals = Record[Idx++];
6818 bool IsDependent = Record[Idx++];
6849 unsigned ReadOnly = Record[1];
6858 unsigned VecKind = Record[Idx];
7721 unsigned NumBases = Record[Idx++];
8299 SemaObj->FPFeatures = FPOptions(FPPragmaOptions[0]);
8318 SemaObj->StdNamespace = SemaDeclRefs[I];
8320 SemaObj->StdBadAlloc = SemaDeclRefs[I+1];
8322 SemaObj->StdAlignValT = SemaDeclRefs[I+2];
8641 = dyn_cast_or_null<NamespaceDecl>(GetDecl(KnownNamespaces[I])))
8649 NamedDecl *D = cast<NamedDecl>(GetDecl(UndefinedButUsed[Idx++]));
8651 SourceLocation::getFromRawEncoding(UndefinedButUsed[Idx++]);
8660 FieldDecl *FD = cast<FieldDecl>(GetDecl(DelayedDeleteExprs[Idx++]));
8661 uint64_t Count = DelayedDeleteExprs[Idx++];
8664 SourceLocation::getFromRawEncoding(DelayedDeleteExprs[Idx++]);
8665 const bool IsArrayForm = DelayedDeleteExprs[Idx++];
8674 VarDecl *Var = dyn_cast_or_null<VarDecl>(GetDecl(TentativeDefinitions[I]));
8685 = dyn_cast_or_null<DeclaratorDecl>(GetDecl(UnusedFileScopedDecls[I]));
8696 = dyn_cast_or_null<CXXConstructorDecl>(GetDecl(DelegatingCtorDecls[I]));
8706 = dyn_cast_or_null<TypedefNameDecl>(GetDecl(ExtVectorDecls[I]));
8718 GetDecl(UnusedLocalTypedefNameCandidates[I]));
8735 Selector Sel = DecodeSelector(ReferencedSelectorsData[I++]);
8737 = SourceLocation::getFromRawEncoding(ReferencedSelectorsData[I++]);
8750 = DecodeIdentifierInfo(WeakUndeclaredIdentifiers[I++]);
8752 = DecodeIdentifierInfo(WeakUndeclaredIdentifiers[I++]);
8754 = SourceLocation::getFromRawEncoding(WeakUndeclaredIdentifiers[I++]);
8755 bool Used = WeakUndeclaredIdentifiers[I++];
8766 VT.Record = dyn_cast_or_null<CXXRecordDecl>(GetDecl(VTableUses[Idx++]));
8767 VT.Location = SourceLocation::getFromRawEncoding(VTableUses[Idx++]);
8768 VT.DefinitionRequired = VTableUses[Idx++];
8778 ValueDecl *D = cast<ValueDecl>(GetDecl(PendingInstantiations[Idx++]));
8780 = SourceLocation::getFromRawEncoding(PendingInstantiations[Idx++]);
8792 FunctionDecl *FD = cast<FunctionDecl>(GetDecl(LateParsedTemplates[Idx++]));
8795 LT->D = GetDecl(LateParsedTemplates[Idx++]);
8800 unsigned TokN = LateParsedTemplates[Idx++];
8994 return SubmodulesLoaded[GlobalID - NUM_PREDEF_SUBMODULE_IDS];
9074 if (SelectorsLoaded[ID - 1].getAsOpaquePtr() == nullptr) {
9081 SelectorsLoaded[ID - 1] =
9084 DeserializationListener->SelectorRead(ID, SelectorsLoaded[ID - 1]);
9087 return SelectorsLoaded[ID - 1];
9788 (RawComment::CommentKind) Record[Idx++];
9789 bool IsTrailingComment = Record[Idx++];
9790 bool IsAlmostTrailingComment = Record[Idx++];
9876 auto *FD = PendingFunctionTypes[I].first;
9877 FD->setType(GetType(PendingFunctionTypes[I].second));
9891 markIncompleteDeclChain(PendingIncompleteDeclChains[I]);
9897 loadPendingDeclChain(PendingDeclChains[I].first,
9898 PendingDeclChains[I].second);
9906 pushExternalDeclIntoScope(cast<NamedDecl>(TLD->second[I]), II);
9918 const PendingMacroInfo &Info = GlobalIDs[IDIdx];
9925 const PendingMacroInfo &Info = GlobalIDs[IDIdx];
10184 Diag(Candidates[I]->getLocation(),
10186 << Candidates[I];
11245 const TemplateArgument &FirstTA = *FirstExpandedList[i],
11246 &SecondTA = *SecondExpandedList[i];
12075 if (FirstHashes[I].second == SecondHashes[I].second)
12075 if (FirstHashes[I].second == SecondHashes[I].second)
12077 const EnumConstantDecl *FirstEnumConstant = FirstHashes[I].first;
12078 const EnumConstantDecl *SecondEnumConstant = SecondHashes[I].first;
tools/clang/lib/Serialization/ASTReaderDecl.cpp 933 TemplArgsInfo.addArgument(TemplArgLocs[i]);
3257 if (Index < Previous.size() && Previous[Index])
3258 return Previous[Index];
3268 Previous[Number] = cast<NamedDecl>(ND->getCanonicalDecl());
3272 return Index < Previous.size() ? Previous[Index] : nullptr;
3283 if (!Previous[Index])
3284 Previous[Index] = D;
4092 auto *D = GetLocalDecl(*M, Record[N - I - 1]);
4199 unsigned N = M.ObjCCategories[Offset];
4200 M.ObjCCategories[Offset++] = 0; // Don't try to deserialize again
4203 Reader.GetLocalDecl(M, M.ObjCCategories[Offset++])));
4525 D->addAttr(Attrs[0]);
tools/clang/lib/Serialization/ASTWriter.cpp 2173 const FileEntry *File = FilesByUID[UID];
2239 free(const_cast<char *>(SavedStrings[I]));
3144 Record[SizeIdx] = (Record.size() - SizeIdx) / 2;
3174 Record[NumLocationsIdx] = NumLocations;
3993 LE.write<uint32_t>(DeclIDs[I]);
4426 Categories[StartIndex] = Size;
4824 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses);
4825 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses);
4826 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]);
tools/clang/lib/Serialization/ASTWriterStmt.cpp 2445 Writer->WriteSubStmt(StmtsToEmit[I]);
2466 Writer->WriteSubStmt(StmtsToEmit[N - I - 1]);
tools/clang/lib/Serialization/GlobalModuleIndex.cpp 189 if (Record.size() < 1 || Record[0] != CurrentVersion)
195 unsigned ID = Record[Idx++];
205 Modules[ID].Size = Record[Idx++];
205 Modules[ID].Size = Record[Idx++];
206 Modules[ID].ModTime = Record[Idx++];
206 Modules[ID].ModTime = Record[Idx++];
209 unsigned NameLen = Record[Idx++];
210 Modules[ID].FileName.assign(Record.begin() + Idx,
215 unsigned NumDeps = Record[Idx++];
216 Modules[ID].Dependencies.insert(Modules[ID].Dependencies.end(),
216 Modules[ID].Dependencies.insert(Modules[ID].Dependencies.end(),
227 StringRef ModuleName = llvm::sys::path::stem(Modules[ID].FileName);
236 if (Record[0]) {
238 (const unsigned char *)Blob.data() + Record[0],
287 if (ModuleFile *MF = Modules[I].File)
303 ArrayRef<unsigned> StoredDependencies = Modules[Known->second].Dependencies;
305 if (ModuleFile *MF = Modules[I].File)
328 if (ModuleFile *MF = Modules[ModuleIDs[I]].File)
328 if (ModuleFile *MF = Modules[ModuleIDs[I]].File)
345 ModuleInfo &Info = Modules[Known->second];
640 off_t StoredSize = (off_t)Record[Idx++];
641 time_t StoredModTime = (time_t)Record[Idx++];
646 {{(uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
646 {{(uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
647 (uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
647 (uint32_t)Record[Idx++], (uint32_t)Record[Idx++],
648 (uint32_t)Record[Idx++]}}};
652 Idx += Record[Idx] + 1;
655 unsigned Length = Record[Idx++];
685 if (State == ASTBlock && Code == IDENTIFIER_TABLE && Record[0] > 0) {
690 (const unsigned char *)Blob.data() + Record[0],
707 {{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
707 {{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
707 {{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2],
708 (uint32_t)Record[3], (uint32_t)Record[4]}}};
708 (uint32_t)Record[3], (uint32_t)Record[4]}}};
tools/clang/lib/Serialization/ModuleManager.cpp 347 UnusedIncomingEdges[M.Index] = Size;
367 unsigned &NumUnusedEdges = UnusedIncomingEdges[(*M)->Index];
388 ModuleFile *M = ModulesInCommonWithGlobalIndex[I];
390 State->VisitNumber[M->Index] = VisitNumber;
395 ModuleFile *CurrentModule = VisitOrder[I];
397 if (State->VisitNumber[CurrentModule->Index] == VisitNumber)
401 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1);
402 State->VisitNumber[CurrentModule->Index] = VisitNumber;
417 if (State->VisitNumber[(*M)->Index] != VisitNumber) {
419 State->VisitNumber[(*M)->Index] = VisitNumber;
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 282 os << " (e.g., field: '" << *F.FieldChain[0] << "')";
tools/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp 281 llvm::errs() << Keys[I]->getKey() << " = "
282 << (Keys[I]->second.empty() ? "\"\"" : Keys[I]->second)
282 << (Keys[I]->second.empty() ? "\"\"" : Keys[I]->second)
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp 293 CharUnits NextOffset = NewOffset.alignTo(Fields[0].Align);
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 568 const auto *FirstAccess = Accesses[0].getNodeAs<MemberExpr>("access");
574 const auto *FirstGuard = Guards[0].getNodeAs<Stmt>("guard");
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 211 auto CounterVar = Matches[0].getNodeAs<VarDecl>("initVarName");
213 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue();
215 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue();
216 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator");
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp 193 if (CategoryRegexs[i].match(IncludeName)) {
206 if (CategoryRegexs[i].match(IncludeName)) {
258 Include(Matches[2],
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp 293 const Stmt *Parent = Parents[Parents.size() - 1].get().Node.get<Stmt>();
302 Parents[Parents.size() - ParentIndex - 1].get().Node.get<Stmt>();
310 Node = Parents[Parents.size() - ParentIndex];
392 SelectedNodeWithParents &Selected = ContainSelection[0];
tools/clang/lib/Tooling/Transformer/Transformer.cpp 51 (*Transformations)[0].Range.getBegin());
tools/clang/tools/arcmt-test/arcmt-test.cpp 264 StringRef inputOrigFname = strs[i];
265 StringRef inputResultFname = strs[i+1];
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 687 CreateFileHandler(*InputBuffers[HostInputIndex]);
tools/clang/tools/clang-refactor/TestSupport.cpp 346 if (!Matches[2].empty()) {
348 if (Matches[2].drop_front().getAsInteger(10, ColumnOffset))
354 if (!Matches[3].empty()) {
358 if (!EndLocRegex.match(Matches[3], &EndLocMatches)) {
364 if (EndLocMatches[1].drop_front().getAsInteger(10, EndLineOffset) ||
365 EndLocMatches[2].getAsInteger(10, EndColumn))
374 Matches[1].str(), SmallVector<TestSelectionRange, 8>{Range}));
tools/clang/tools/driver/driver.cpp 126 if (Args[i] == nullptr)
128 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]);
130 if (Repl != Args[i]) {
131 OS << "### Replacing '" << Args[i] << "' with '" << Repl << "'\n";
132 Args[i] = GetStableCStr(SavedStrings, Repl);
138 if (Option == Args[i]) {
139 OS << "### Deleting argument " << Args[i] << '\n';
143 OS << "### Deleting argument " << Args[i] << '\n';
153 const char *A = Args[i];
161 OS << "### Deleting argument " << Args[i] << '\n';
289 SmallString<128> InstalledPath(argv[0]);
330 auto TargetAndMode = ToolChain::getTargetAndModeFromProgramName(argv[0]);
368 if (MarkEOLs && argv.size() > 1 && StringRef(argv[1]).startswith("-cc1"))
382 return ExecuteCC1Tool(argv, argv[1] + 4);
388 if (argv[i] == nullptr)
390 if (StringRef(argv[i]) == "-no-canonical-prefixes") {
427 std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes);
tools/clang/tools/extra/clang-doc/BitcodeReader.cpp 27 if (R[0] != BitCodeConstants::USRHashSize)
33 for (int I = 0, E = R[0]; I < E; ++I)
34 Field[I] = R[I + 1];
39 Field = R[0] != 0;
44 if (R[0] > INT_MAX)
47 Field = (int)R[0];
53 switch (R[0]) {
58 Field = (AccessSpecifier)R[0];
67 switch (R[0]) {
73 Field = (TagTypeKind)R[0];
83 if (R[0] > INT_MAX)
86 Field.emplace((int)R[0], Blob, (bool)R[1]);
86 Field.emplace((int)R[0], Blob, (bool)R[1]);
91 switch (auto IT = static_cast<InfoType>(R[0])) {
105 switch (auto F = static_cast<FieldId>(R[0])) {
129 if (R[0] > INT_MAX)
132 Field.emplace_back((int)R[0], Blob, (bool)R[1]);
132 Field.emplace_back((int)R[0], Blob, (bool)R[1]);
138 if (ID == VERSION && R[0] == VersionNo)
tools/clang/tools/extra/clang-doc/Serialize.cpp 507 ParentI->USR = I->Namespace.empty() ? SymbolID() : I->Namespace[0].USR;
539 switch (I->Namespace[0].RefType) {
542 ParentI->USR = I->Namespace[0].USR;
550 ParentI->USR = I->Namespace[0].USR;
575 ParentI->USR = Func.Namespace[0].USR;
642 switch (Enum.Namespace[0].RefType) {
645 ParentI->USR = Enum.Namespace[0].USR;
653 ParentI->USR = Enum.Namespace[0].USR;
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 182 CommaSplits[I].trim(), {}),
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp 135 if (Field->getAccess() != Fields[NewFieldsOrder[FieldIndex]]->getAccess()) {
147 Fields[NewFieldsOrder[FieldIndex]]->getSourceRange(),
173 NewFieldsPositions[NewFieldsOrder[i]] = i;
185 if (NewFieldsPositions[UM->getFieldIndex()] >
186 NewFieldsPositions[ThisM->getFieldIndex()]) {
204 return NewFieldsPositions[LHS->getMember()->getFieldIndex()] <
205 NewFieldsPositions[RHS->getMember()->getFieldIndex()];
212 if (OldWrittenInitializersOrder[i] != NewWrittenInitializersOrder[i])
212 if (OldWrittenInitializersOrder[i] != NewWrittenInitializersOrder[i])
213 addReplacement(OldWrittenInitializersOrder[i]->getSourceRange(),
214 NewWrittenInitializersOrder[i]->getSourceRange(), Context,
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 296 !sameName(Matches[2], II->getName(), StrictMode)) {
301 << Matches[2] << II;
302 if (isLikelyTypo(Callee->parameters(), Matches[2], I)) {
304 Comment.first, (Matches[1] + II->getName() + Matches[3]).str());
304 Comment.first, (Matches[1] + II->getName() + Matches[3]).str());
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp 124 !areStatementsIdentical(Branches[i]->IgnoreContainers(),
125 Branches[j]->IgnoreContainers(), Context))
133 diag(Branches[i]->getBeginLoc(),
136 Lexer::getLocForEndOfToken(Branches[i]->getEndLoc(), 0,
143 diag(Branches[j]->getBeginLoc(), "clone %0 starts here",
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp 33 StringRef Username = Matches[1];
34 StringRef Comment = Matches[3];
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp 67 B.PlaceHolderIndex = std::stoi(Matches[1]);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 475 Options.store(Opts, "MinConfidence", Confs[static_cast<int>(MinConfidence)]);
479 Options.store(Opts, "NamingStyle", Styles[static_cast<int>(NamingStyle)]);
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp 191 GetText(Tokens[Tokens.size() - 2], Sources) == "=") {
192 InsertLoc = Tokens[Tokens.size() - 2].getLocation();
194 if ((Tokens[Tokens.size() - 2].getFlags() & Token::LeadingSpace) == 0)
tools/clang/tools/extra/clang-tidy/mpi/BufferDerefCheck.cpp 107 Indirections[0] == IndirectionType::Pointer &&
108 Indirections[1] == IndirectionType::Array)
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 302 if (Groups[2].size() > 0) {
303 Words.push_back(Groups[1]);
304 Substr = Substr.substr(Groups[0].size());
305 } else if (Groups[3].size() > 0) {
306 Words.push_back(Groups[3]);
307 Substr = Substr.substr(Groups[0].size() - Groups[4].size());
307 Substr = Substr.substr(Groups[0].size() - Groups[4].size());
308 } else if (Groups[5].size() > 0) {
309 Words.push_back(Groups[5]);
310 Substr = Substr.substr(Groups[0].size() - Groups[6].size());
310 Substr = Substr.substr(Groups[0].size() - Groups[6].size());
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 143 StringRef NamespaceNameInComment = Groups.size() > 5 ? Groups[5] : "";
144 StringRef Anonymous = Groups.size() > 3 ? Groups[3] : "";
tools/clang/tools/extra/clang-tidy/utils/ExprSequence.cpp 201 S = Parents[0];
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp 132 const auto &Location = IncludeLocations[IncludeEntry][0];
171 const std::string &FirstInclude = IncludeBucket[NonEmptyKind][0];
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp 97 diag((*Transformations)[0].Range.getBegin(), *Explanation);
tools/clang/tools/extra/clangd/AST.cpp 228 CurrentParts[DifferentAt] == OriginalParts[DifferentAt]) {
228 CurrentParts[DifferentAt] == OriginalParts[DifferentAt]) {
233 Result.push_back(OriginalParts[i]);
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp 123 auto MatchPos = Matches[0].data() - Pending.data();
126 Pending = Pending.drop_front(MatchPos + Matches[0].size());
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp 60 arg.Edits[0].range == Range && arg.Edits[0].newText == Replacement;
60 arg.Edits[0].range == Range && arg.Edits[0].newText == Replacement;
tools/clang/tools/extra/modularize/Modularize.cpp 364 std::string File(std::string("\"") + FileDependents[Index] +
366 NewArgs.push_back(FileDependents[Index]);
497 if (Entries[I].Kind == Kind && Entries[I].Loc == Loc)
497 if (Entries[I].Kind == Kind && Entries[I].Loc == Loc)
936 EntryBins[E->second[I].Kind].push_back(E->second[I].Loc);
936 EntryBins[E->second[I].Kind].push_back(E->second[I].Loc);
936 EntryBins[E->second[I].Kind].push_back(E->second[I].Loc);
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 184 if (llvm::sys::path::is_absolute(DependentsList[Index]))
185 Dependent = DependentsList[Index];
191 llvm::sys::path::append(Dependent, DependentsList[Index]);
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.cpp 49 EXPECT_EQ(Expected.AttrKeys[Idx], Actual.AttrKeys[Idx]);
49 EXPECT_EQ(Expected.AttrKeys[Idx], Actual.AttrKeys[Idx]);
53 EXPECT_EQ(Expected.AttrValues[Idx], Actual.AttrValues[Idx]);
53 EXPECT_EQ(Expected.AttrValues[Idx], Actual.AttrValues[Idx]);
57 EXPECT_EQ(Expected.Args[Idx], Actual.Args[Idx]);
57 EXPECT_EQ(Expected.Args[Idx], Actual.Args[Idx]);
90 CheckReference(Expected->Namespace[Idx], Actual->Namespace[Idx]);
90 CheckReference(Expected->Namespace[Idx], Actual->Namespace[Idx]);
105 EXPECT_EQ(Expected->Loc[Idx], Actual->Loc[Idx]);
105 EXPECT_EQ(Expected->Loc[Idx], Actual->Loc[Idx]);
117 EXPECT_EQ(Expected->Params[Idx], Actual->Params[Idx]);
117 EXPECT_EQ(Expected->Params[Idx], Actual->Params[Idx]);
128 EXPECT_EQ(Expected->Members[Idx], Actual->Members[Idx]);
128 EXPECT_EQ(Expected->Members[Idx], Actual->Members[Idx]);
162 EXPECT_EQ(Expected->Members[Idx], Actual->Members[Idx]);
162 EXPECT_EQ(Expected->Members[Idx], Actual->Members[Idx]);
166 CheckReference(Expected->Parents[Idx], Actual->Parents[Idx]);
166 CheckReference(Expected->Parents[Idx], Actual->Parents[Idx]);
170 CheckReference(Expected->VirtualParents[Idx], Actual->VirtualParents[Idx]);
170 CheckReference(Expected->VirtualParents[Idx], Actual->VirtualParents[Idx]);
tools/clang/tools/libclang/CIndex.cpp 869 CXXCtorInitializer *Init = WrittenInits[I];
6595 SourceRange R = Pieces[PieceIndex];
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 378 delete TemporaryBuffers[I];
917 CXStoredDiagnostic *Diag = Results->DiagnosticsWrappers[Index];
919 Results->DiagnosticsWrappers[Index] = Diag =
920 new CXStoredDiagnostic(Results->Diagnostics[Index], Results->LangOpts);
tools/clang/tools/libclang/CXCursor.cpp 1536 *overridden = &((*Vec)[1]);
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 258 ProtInfos[i].protocol = &ProtEntities[i];
258 ProtInfos[i].protocol = &ProtEntities[i];
261 Prots.push_back(&ProtInfos[i]);
305 IBOutletCollectionInfo &IBInfo = IBCollAttrs[i];
328 CXAttrs.push_back(&Attrs[i]);
365 if (BaseEntities[i].name && BaseEntities[i].USR)
365 if (BaseEntities[i].name && BaseEntities[i].USR)
366 BaseInfos[i].base = &BaseEntities[i];
366 BaseInfos[i].base = &BaseEntities[i];
370 CXBases.push_back(&BaseInfos[i]);
992 const NamedDecl *BaseD = BaseList.BaseEntities[i].Dcl;
tools/clang/unittests/AST/ASTImporterTest.cpp 261 EXPECT_EQ(D0, Redecls[0]);
273 EXPECT_EQ(D0, Redecls[0]);
274 EXPECT_EQ(D1, Redecls[1]);
275 EXPECT_EQ(D2, Redecls[2]);
4666 EXPECT_EQ(FoundDecls[0], FieldInTemplate);
4675 EXPECT_EQ(FoundDecls[0], FieldInSpec);
tools/clang/unittests/AST/ASTTraverserTest.cpp 93 return Result[0].getNodeAs<FunctionDecl>("fn");
217 auto Templ = Result[0].getNodeAs<ClassTemplateSpecializationDecl>("fn");
tools/clang/unittests/AST/DeclTest.cpp 86 CXXRecordDecl *DeclS = cast<CXXRecordDecl>(Decls[0]);
tools/clang/unittests/CodeGen/IRMatchers.h 263 if (!OperandMatchers[N]->match(C)) {
344 if (!Operands[I]->match(C)) {
tools/clang/unittests/Format/FormatTest.cpp12304 Styles[0] = getLLVMStyle();
12305 EXPECT_TRUE(getPredefinedStyle("LLVM", FormatStyle::LK_Cpp, &Styles[1]));
12306 EXPECT_TRUE(getPredefinedStyle("lLvM", FormatStyle::LK_Cpp, &Styles[2]));
12309 Styles[0] = getGoogleStyle();
12310 EXPECT_TRUE(getPredefinedStyle("Google", FormatStyle::LK_Cpp, &Styles[1]));
12311 EXPECT_TRUE(getPredefinedStyle("gOOgle", FormatStyle::LK_Cpp, &Styles[2]));
12314 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript);
12316 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1]));
12318 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2]));
12321 Styles[0] = getChromiumStyle(FormatStyle::LK_Cpp);
12322 EXPECT_TRUE(getPredefinedStyle("Chromium", FormatStyle::LK_Cpp, &Styles[1]));
12323 EXPECT_TRUE(getPredefinedStyle("cHRoMiUM", FormatStyle::LK_Cpp, &Styles[2]));
12326 Styles[0] = getMozillaStyle();
12327 EXPECT_TRUE(getPredefinedStyle("Mozilla", FormatStyle::LK_Cpp, &Styles[1]));
12328 EXPECT_TRUE(getPredefinedStyle("moZILla", FormatStyle::LK_Cpp, &Styles[2]));
12331 Styles[0] = getWebKitStyle();
12332 EXPECT_TRUE(getPredefinedStyle("WebKit", FormatStyle::LK_Cpp, &Styles[1]));
12333 EXPECT_TRUE(getPredefinedStyle("wEbKit", FormatStyle::LK_Cpp, &Styles[2]));
12336 Styles[0] = getGNUStyle();
12337 EXPECT_TRUE(getPredefinedStyle("GNU", FormatStyle::LK_Cpp, &Styles[1]));
12338 EXPECT_TRUE(getPredefinedStyle("gnU", FormatStyle::LK_Cpp, &Styles[2]));
12341 EXPECT_FALSE(getPredefinedStyle("qwerty", FormatStyle::LK_Cpp, &Styles[0]));
12348 Styles[0] = getGoogleStyle();
12349 Styles[1] = getLLVMStyle();
12350 EXPECT_EQ(0, parseConfiguration("BasedOnStyle: Google", &Styles[1]).value());
12354 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript);
12355 Styles[1] = getLLVMStyle();
12356 Styles[1].Language = FormatStyle::LK_JavaScript;
12357 EXPECT_EQ(0, parseConfiguration("BasedOnStyle: Google", &Styles[1]).value());
12359 Styles[2] = getLLVMStyle();
12360 Styles[2].Language = FormatStyle::LK_JavaScript;
12363 &Styles[2])
12366 Styles[3] = getLLVMStyle();
12367 Styles[3].Language = FormatStyle::LK_JavaScript;
12370 &Styles[3])
12373 Styles[4] = getLLVMStyle();
12374 Styles[4].Language = FormatStyle::LK_JavaScript;
12381 &Styles[4])
tools/clang/unittests/Lex/DependencyDirectivesSourceMinimizerTest.cpp 67 EXPECT_EQ(pp_define, Tokens[0].K);
68 EXPECT_EQ(pp_undef, Tokens[1].K);
69 EXPECT_EQ(pp_endif, Tokens[2].K);
70 EXPECT_EQ(pp_if, Tokens[3].K);
71 EXPECT_EQ(pp_ifdef, Tokens[4].K);
72 EXPECT_EQ(pp_ifndef, Tokens[5].K);
73 EXPECT_EQ(pp_elif, Tokens[6].K);
74 EXPECT_EQ(pp_else, Tokens[7].K);
75 EXPECT_EQ(pp_include, Tokens[8].K);
76 EXPECT_EQ(pp_include_next, Tokens[9].K);
77 EXPECT_EQ(pp___include_macros, Tokens[10].K);
78 EXPECT_EQ(pp_import, Tokens[11].K);
79 EXPECT_EQ(decl_at_import, Tokens[12].K);
80 EXPECT_EQ(pp_pragma_import, Tokens[13].K);
81 EXPECT_EQ(cxx_export_decl, Tokens[14].K);
82 EXPECT_EQ(cxx_module_decl, Tokens[15].K);
83 EXPECT_EQ(cxx_import_decl, Tokens[16].K);
84 EXPECT_EQ(pp_eof, Tokens[17].K);
585 EXPECT_EQ(Tokens[0].K,
679 EXPECT_EQ(Tokens[0].K,
681 EXPECT_EQ(Tokens[2].K,
696 EXPECT_EQ(Ranges[0].Offset, 0);
697 EXPECT_EQ(Ranges[0].Length, (int)Out.find("#endif"));
717 EXPECT_EQ(Ranges[0].Offset, (int)Out.find("#if FOO"));
718 EXPECT_EQ(Ranges[0].Offset + Ranges[0].Length, (int)Out.find("#elif"));
718 EXPECT_EQ(Ranges[0].Offset + Ranges[0].Length, (int)Out.find("#elif"));
719 EXPECT_EQ(Ranges[1].Offset, (int)Out.find("#elif BAR"));
720 EXPECT_EQ(Ranges[1].Offset + Ranges[1].Length, (int)Out.find("#endif"));
720 EXPECT_EQ(Ranges[1].Offset + Ranges[1].Length, (int)Out.find("#endif"));
721 EXPECT_EQ(Ranges[2].Offset, 0);
722 EXPECT_EQ(Ranges[2].Length, (int)Out.find("#else"));
723 EXPECT_EQ(Ranges[3].Offset, (int)Out.find("#else"));
724 EXPECT_EQ(Ranges[3].Offset + Ranges[3].Length, (int)Out.rfind("#endif"));
724 EXPECT_EQ(Ranges[3].Offset + Ranges[3].Length, (int)Out.rfind("#endif"));
tools/clang/unittests/Tooling/DiagnosticsYamlTest.cpp 164 EXPECT_EQ("Note1", D3.Notes[0].Message);
165 EXPECT_EQ(88u, D3.Notes[0].FileOffset);
166 EXPECT_EQ("path/to/note1.cpp", D3.Notes[0].FilePath);
167 EXPECT_EQ("Note2", D3.Notes[1].Message);
168 EXPECT_EQ(99u, D3.Notes[1].FileOffset);
169 EXPECT_EQ("path/to/note2.cpp", D3.Notes[1].FilePath);
tools/clang/unittests/Tooling/RangeSelectorTest.cpp 54 return TestMatch{std::move(ASTUnit), MatchResult(Matches[0], &Context)};
tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp 66 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)};
tools/clang/unittests/Tooling/StencilTest.cpp 70 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)};
tools/dsymutil/MachOUtils.cpp 292 MCSection *Sec = Layout.getSectionOrder()[i];
428 MCSection *Sec = Layout.getSectionOrder()[i];
tools/lld/COFF/PDB.cpp 678 reinterpret_cast<TypeIndex *>(content.data() + refs[0].Offset);
688 *ti = indices[1];
tools/lld/ELF/Driver.cpp 735 if (fields.size() != 3 || !to_integer(fields[2], count)) {
740 if (InputSectionBase *from = findSection(fields[0]))
741 if (InputSectionBase *to = findSection(fields[1]))
tools/lld/ELF/DriverUtils.cpp 102 StringRef s = args[i];
104 v.push_back(saver.save(s + "=" + args[i + 1]).data());
107 v.push_back(args[i]);
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 50 if (llvm::getAsUnsignedInteger(parts[0], 10, num))
57 if (llvm::getAsUnsignedInteger(parts[1], 10, num))
65 if (llvm::getAsUnsignedInteger(parts[2], 10, num))
85 if (llvm::getAsUnsignedInteger(parts[0], 10, num))
tools/lldb/include/lldb/Utility/RangeMap.h 703 return ((i < m_entries.size()) ? &m_entries[i] : nullptr);
708 Entry &GetEntryRef(size_t i) { return m_entries[i]; }
tools/lldb/source/Breakpoint/BreakpointResolver.cpp 214 auto &match = all_scs[0];
tools/lldb/source/Core/Disassembler.cpp 811 value = matches[1].str();
878 key = matches[1].str();
879 value = matches[2].str();
tools/lldb/source/Core/ValueObject.cpp 268 SetValueDidChange(memcmp(&old_checksum[0], &m_value_checksum[0],
268 SetValueDidChange(memcmp(&old_checksum[0], &m_value_checksum[0],
tools/lldb/source/Host/common/Socket.cpp 288 host_str = matches[1].str();
289 port_str = matches[2].str();
tools/lldb/source/Interpreter/CommandObjectRegexCommand.cpp 40 const std::string match_str = matches[match_idx].str();
tools/lldb/source/Interpreter/OptionArgParser.cpp 218 std::string name = matches[1].str();
219 std::string sign = matches[2].str();
220 std::string str_offset = matches[3].str();
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp 387 m_opcode_name = matches[1].str();
388 m_mnemonics = matches[2].str();
842 operands[operands.size() - 1].m_clobbered = true;
845 operands[0].m_clobbered = true;
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.cpp 25 Sources[i]->PrintStats();
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h 269 if (clang::Decl *Result = Sources[i]->GetExternalDecl(ID))
276 Sources[i]->CompleteRedeclChain(D);
282 Sel = Sources[i]->GetExternalSelector(ID);
291 if (uint32_t total = Sources[i]->GetNumExternalSelectors())
298 if (clang::Stmt *Result = Sources[i]->GetExternalDeclStmt(Offset))
307 Sources[i]->GetExternalCXXBaseSpecifiers(Offset))
331 if (Sources[i]->FindExternalVisibleDeclsByName(DC, Name))
339 Sources[i]->completeVisibleDeclsMap(DC);
347 Sources[i]->FindExternalLexicalDecls(DC, IsKindWeWant, Result);
357 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls);
366 Sources[i]->CompleteType(Tag);
374 Sources[i]->CompleteType(Class);
379 Sources[i]->ReadComments();
384 Sources[i]->StartedDeserializing();
389 Sources[i]->FinishedDeserializing();
394 Sources[i]->StartTranslationUnit(Consumer);
401 if (auto M = Sources[i]->getModule(ID))
421 if (Sources[i]->layoutRecordType(Record, Size, Alignment, FieldOffsets,
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 1549 User *user = users[i];
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp 101 return m_tokens[m_next_token_index];
609 clang::Token &first_token = m_tokens[range.begin_index];
610 clang::Token &last_token = m_tokens[range.end_index - 1];
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 457 return !llvm::StringRef(matches[idx + 1]).getAsInteger<uint32_t>(10, i);
2891 const auto sig_s = spec[0];
2901 const auto accum_data_size_s = spec[1];
2911 LLDB_LOGF(log, "Found RenderScript reduction '%s'", spec[2].str().c_str());
2914 spec[2], spec[3], spec[4],
2914 spec[2], spec[3], spec[4],
2914 spec[2], spec[3], spec[4],
2915 spec[5], spec[6], spec[7]));
2915 spec[5], spec[6], spec[7]));
2915 spec[5], spec[6], spec[7]));
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp 196 columns[1] = columns[1].trim(" ");
196 columns[1] = columns[1].trim(" ");
197 if (columns[0].contains("cpu family") &&
198 columns[1].getAsInteger(10, cpu_family))
201 else if (columns[0].contains("model") && columns[1].getAsInteger(10, model))
201 else if (columns[0].contains("model") && columns[1].getAsInteger(10, model))
204 else if (columns[0].contains("stepping") &&
205 columns[1].getAsInteger(10, stepping))
208 else if (columns[0].contains("vendor_id")) {
209 vendor_id = columns[1].str();
378 if (offset > parts[0].size()) {
379 parts[1] = parts[1].slice(offset - parts[0].size());
379 parts[1] = parts[1].slice(offset - parts[0].size());
379 parts[1] = parts[1].slice(offset - parts[0].size());
380 parts[0] = parts[0].drop_back(parts[0].size());
380 parts[0] = parts[0].drop_back(parts[0].size());
380 parts[0] = parts[0].drop_back(parts[0].size());
381 } else if (offset == parts[0].size()) {
382 parts[0] = parts[0].drop_back(parts[0].size());
382 parts[0] = parts[0].drop_back(parts[0].size());
382 parts[0] = parts[0].drop_back(parts[0].size());
384 parts[0] = parts[0].slice(offset);
384 parts[0] = parts[0].slice(offset);
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp 142 std::string reg_name_str = matches[1].str();
143 std::string msbit_str = matches[2].str();
144 std::string lsbit_str = matches[3].str();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 2801 StringRef &xfer_object = fields[1];
2802 StringRef &xfer_action = fields[2];
2803 StringRef &xfer_annex = fields[3];
2804 StringExtractor offset_data(fields[4]);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 547 StringConvert::ToUInt32(matches[1].str().c_str(), UINT32_MAX, 10);
549 StringConvert::ToUInt32(matches[2].str().c_str(), UINT32_MAX, 10);
551 StringConvert::ToUInt32(matches[3].str().c_str(), UINT32_MAX, 10);
tools/lldb/source/Symbol/ClangASTContext.cpp 1466 IsValueParam(template_param_infos.packed_args->args[0])) {
1470 template_param_infos.packed_args->args[0].getIntegralType(),
1503 template_param_decls[i]->setDeclContext(func_decl);
1552 template_param_decls[i]->setDeclContext(template_cxx_decl);
1619 args[args.size() - 1] = TemplateArgument::CreatePackCopy(
tools/lldb/source/Symbol/SymbolContext.cpp 888 return external_symbols[0];
899 return internal_symbols[0];
tools/lldb/source/Symbol/Variable.cpp 398 std::string variable_name = matches[1].str();
tools/lldb/source/Target/StackFrame.cpp 1588 switch (operands[0].m_type) {
1595 operands[0].m_immediate, load_address)) {
1636 if (clobbered_reg_matcher(operands[0])) {
1637 origin_operand = &operands[1];
1639 else if (clobbered_reg_matcher(operands[1])) {
1640 origin_operand = &operands[0];
tools/lldb/source/Target/ThreadPlanStepInRange.cpp 368 std::string match = matches[1].str();
tools/lldb/source/Utility/FileSpec.cpp 511 if (current_path[0] == '~')
tools/lldb/unittests/Utility/RegularExpressionTest.cpp 62 EXPECT_EQ("9a:513", matches[0].str());
63 EXPECT_EQ("a", matches[1].str());
64 EXPECT_EQ("513", matches[2].str());
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp 285 StringRef Name = Elements["name"][0];
286 StringRef Reason = Elements["reason"][0];
289 if (!to_integer(Elements["thread"][0], Thread, 16))
294 Elements["threads"][0].split(Threads, ',');
295 Elements["thread-pcs"][0].split(Pcs, ',');
tools/llvm-ar/llvm-ar.cpp 234 RelPos = PositionalArgs[0];
243 auto CountParamArg = StringRef(PositionalArgs[0]);
255 ArchiveName = PositionalArgs[0];
1094 StringRef Arg = Argv[i];
1101 match = Argv[i];
1110 if (handleGenericOption(Argv[i]))
1114 PositionalArgs.push_back(Argv[i]);
1119 Arg = Argv[i] + 2;
1121 Arg = Argv[i] + 1;
1136 Options += Argv[i] + 1;
1139 Options += Argv[i];
1141 PositionalArgs.push_back(Argv[i]);
tools/llvm-cfi-verify/llvm-cfi-verify.cpp 82 outs() << i << ": " << Lines[i - 1] << "\n";
tools/llvm-cov/CodeCoverage.cpp 512 DC.DemangledNames[Function.Name] = Symbols[I++].rtrim();
tools/llvm-cov/CoverageReport.cpp 140 if (FirstPathComponents[Component.index()] != Component.value()) {
tools/llvm-cov/SourceCoverageViewHTML.cpp 525 Snippets[I] = escape(Snippets[I], getOptions());
525 Snippets[I] = escape(Snippets[I], getOptions());
546 if (!Snippets[0].empty())
547 Snippets[0] = Highlight(Snippets[0], 1, 1 + Snippets[0].size());
547 Snippets[0] = Highlight(Snippets[0], 1, 1 + Snippets[0].size());
547 Snippets[0] = Highlight(Snippets[0], 1, 1 + Snippets[0].size());
560 Snippets[I + 1] = Highlight(Snippets[I + 1], CurSeg->Col,
560 Snippets[I + 1] = Highlight(Snippets[I + 1], CurSeg->Col,
561 CurSeg->Col + Snippets[I + 1].size());
590 Snippets[I + 1] =
591 tag("div", Snippets[I + 1] + tag("span", formatCount(CurSeg->Count),
tools/llvm-diff/DiffConsumer.cpp 75 DiffContext &ctxt = contexts[N];
tools/llvm-diff/DifferenceEngine.cpp 65 T tmp = Storage[0];
71 Storage[0] = Storage[NewSize];
71 Storage[0] = Storage[NewSize];
73 std::swap(Storage[0], Storage[NewSize]);
73 std::swap(Storage[0], Storage[NewSize]);
88 if (Precedes(Storage[L], Storage[Index]))
88 if (Precedes(Storage[L], Storage[Index]))
89 std::swap(Storage[L], Storage[Index]);
89 std::swap(Storage[L], Storage[Index]);
95 unsigned IndexToTest = (Precedes(Storage[L], Storage[R]) ? L : R);
95 unsigned IndexToTest = (Precedes(Storage[L], Storage[R]) ? L : R);
98 if (!Precedes(Storage[IndexToTest], Storage[Index]))
98 if (!Precedes(Storage[IndexToTest], Storage[Index]))
102 std::swap(Storage[IndexToTest], Storage[Index]);
102 std::swap(Storage[IndexToTest], Storage[Index]);
tools/llvm-exegesis/lib/BenchmarkResult.cpp 268 if (Pieces.size() == 2 && (RegNo = Context.getRegNo(Pieces[0]))) {
270 const unsigned BitsNeeded = APInt::getBitsNeeded(Pieces[1], kRadix);
271 RV.Value = APInt(BitsNeeded, Pieces[1], kRadix);
tools/llvm-exegesis/lib/CodeTemplate.cpp 36 return VariableValues[Var.getIndex()];
44 return getValueFor(Instr.Variables[Op.getVariableIndex()]);
tools/llvm-exegesis/lib/MCInstrDescView.cpp 145 Op.VariableIndex = Operands[Op.getTiedToIndex()].getVariableIndex();
149 Variables[Op.getVariableIndex()].TiedOperands.push_back(Op.getIndex());
tools/llvm-exegesis/lib/SchedClassResolution.cpp 67 ProcResUnitUsage[WPR->ProcResourceIdx] += WPR->Cycles;
75 RemainingCycles -= ProcResUnitUsage[*SubResIdx];
88 ProcResUnitUsage[*SubResIdx] += RemainingCycles / ProcResDesc->NumUnits;
131 return DensePressure[A] < DensePressure[B];
131 return DensePressure[A] < DensePressure[B];
135 return DensePressure[Subunits[I]];
135 return DensePressure[Subunits[I]];
188 DensePressure[WPR.ProcResourceIdx] += WPR.Cycles;
200 if (DensePressure[I] > 0.0f)
201 Pressure.emplace_back(I, DensePressure[I]);
tools/llvm-exegesis/lib/SnippetFile.cpp 59 if (!(RegVal.Register = findRegisterByName(Parts[0].trim()))) {
60 errs() << "unknown register '" << Parts[0]
65 const StringRef HexValue = Parts[1].trim();
tools/llvm-exegesis/lib/Uops.cpp 143 PossibleRegsForVar[VarId].find_next(Iterators[VarId]);
150 Iterators[VarId] = NextPossibleReg;
tools/llvm-exegesis/lib/X86/Target.cpp 181 const auto Op = IT.Instr.Operands[OpIdx];
639 const auto &Op = IT.Instr.Operands[I];
tools/llvm-lipo/llvm-lipo.cpp 369 switch (ActionArgs[0]->getOption().getID()) {
394 C.ThinArchType = ActionArgs[0]->getValue();
707 MemoryBufferRef BufferRef = Slices[Index].getBinary()->getMemoryBufferRef();
709 OutFile->getBufferStart() + FatArchList[Index].offset);
tools/llvm-mca/Views/BottleneckAnalysis.cpp 38 ProcResID2ResourceUsersIndex[I] = NextResourceUsersIdx;
40 uint64_t ResourceMask = ProcResID2Mask[I];
41 ResIdx2ProcResID[getResourceStateIndex(ResourceMask)] = I;
74 unsigned Index = ProcResID2ResourceUsersIndex[RR.first];
76 ResourceUsers[Index] = std::make_pair(IID, Use.second.getNumerator());
85 unsigned ProcResID = ResIdx2ProcResID[ResIdx];
86 uint64_t Mask = ProcResID2Mask[ProcResID];
89 ResourcePressureDistribution[ProcResID]++;
98 ProcResID = ResIdx2ProcResID[ResIdx];
99 ResourcePressureDistribution[ProcResID]++;
178 DependencyEdge &Edge = N.OutgoingEdges[I];
184 Nodes[Edge.ToIID].NumPredecessors--;
185 std::swap(Edge, N.OutgoingEdges[E - 1]);
240 const DGNode &N = Nodes[IID];
243 DGNode &To = Nodes[ToIID];
282 Seq[I - 1] = &N.CriticalPredecessor;
318 const DependencyEdge &FirstEdge = *Seq[0];
432 DGNode &NodeFrom = Nodes[From];
433 DGNode &NodeTo = Nodes[To];
tools/llvm-mca/Views/DispatchStatistics.cpp 23 HWStalls[Event.Type]++;
tools/llvm-mca/Views/RegisterFileStatistics.cpp 50 RegisterFileUsage &RFU = PRFUsage[I];
69 MoveElimInfo[Inst.getDefs()[0].getRegisterFileID()];
84 PRFUsage[I].CurrentlyUsedMappings -= RE.FreedPhysRegs[I];
tools/llvm-mca/Views/SummaryView.cpp 35 unsigned Index = getResourceStateIndex(ProcResourceMasks[I]);
36 ResIdx2ProcResID[Index] = I;
59 unsigned ProcResID = ResIdx2ProcResID[getResourceStateIndex(RU.first)];
60 ProcResourceUsage[ProcResID] += RU.second.size();
tools/llvm-nm/llvm-nm.cpp 1669 if (SymbolList[J].Address == FoundFns[f] + BaseSegmentAddress)
1677 F.Address = FoundFns[f] + BaseSegmentAddress;
1714 if (FoundFns[f] == lc_main_offset)
tools/llvm-objcopy/CopyConfig.cpp 145 SR.NewName = NameAndFlags[0];
334 StringRef TrimmedLine = Lines[LineNo].split('#').first.trim();
411 Config.InputFilename = Positional[0];
412 Config.OutputFilename = Positional[Positional.size() == 1 ? 0 : 1];
863 Config.InputFilename = Positional[0];
865 InputArgs.getLastArgValue(STRIP_output, Positional[0]);
tools/llvm-objcopy/ELF/ELFConfig.cpp 61 if (Flags[0].getAsInteger(0, SI.Value))
63 Flags[0].str().c_str());
71 StringSwitch<Functor>(Flags[I])
92 .Default([&] { UnsupportedFlags.push_back(Flags[I]); }))();
tools/llvm-objcopy/ELF/Object.cpp 1641 StringRef Line = Lines[LineNo - 1].trim();
tools/llvm-objdump/MachODump.cpp 7911 CompactUnwindEntry &Entry = CompactUnwinds[EntryIdx];
8149 Pos = IndexEntries[0].LSDAStart;
8152 (IndexEntries.back().LSDAStart - IndexEntries[0].LSDAStart) / LSDASize;
8174 if (IndexEntries[i].SecondLevelPageStart == 0)
8179 << format("0x%08" PRIx32, IndexEntries[i].SecondLevelPageStart)
8182 << format("0x%08" PRIx32, IndexEntries[i].FunctionOffset) << '\n';
8184 Pos = IndexEntries[i].SecondLevelPageStart;
8196 IndexEntries[i].FunctionOffset,
tools/llvm-pdbutil/BytesOutputStyle.cpp 488 StreamPurposes[Spec.SI].getShortName(), Spec.Begin,
tools/llvm-pdbutil/DumpOutputStyle.cpp 398 StreamPurposes[StreamIdx].getLongName());
tools/llvm-pdbutil/ExplainOutputStyle.cpp 247 const StreamInfo &S = Streams[Stream];
tools/llvm-pdbutil/StreamUtil.cpp 100 Streams[StreamIdx] =
103 Streams[StreamIdx] = stream(StreamPurpose::PDB, "PDB Stream", StreamIdx);
105 Streams[StreamIdx] = stream(StreamPurpose::DBI, "DBI Stream", StreamIdx);
107 Streams[StreamIdx] = stream(StreamPurpose::TPI, "TPI Stream", StreamIdx);
109 Streams[StreamIdx] = stream(StreamPurpose::IPI, "IPI Stream", StreamIdx);
111 Streams[StreamIdx] =
114 Streams[StreamIdx] =
117 Streams[StreamIdx] =
120 Streams[StreamIdx] =
123 Streams[StreamIdx] =
126 Streams[StreamIdx] =
129 Streams[StreamIdx] =
133 Streams[StreamIdx] =
136 Streams[StreamIdx] =
139 Streams[StreamIdx] = stream(StreamPurpose::Other, "FPO Data", StreamIdx);
142 Streams[StreamIdx] =
146 Streams[StreamIdx] =
150 Streams[StreamIdx] =
153 Streams[StreamIdx] = stream(StreamPurpose::Other, "Pdata", StreamIdx);
156 Streams[StreamIdx] =
161 Streams[StreamIdx] = stream(StreamPurpose::Other,
165 Streams[StreamIdx] =
168 Streams[StreamIdx] = stream(StreamPurpose::Other, "Xdata", StreamIdx);
173 Streams[StreamIdx] =
177 Streams[StreamIdx] =
180 Streams[StreamIdx] = stream(StreamPurpose::Other, "???", StreamIdx);
tools/llvm-pdbutil/llvm-pdbutil.cpp 1406 if (!to_integer(Matches[1], Parsed->Min))
1409 if (!Matches[3].empty()) {
1411 if (!to_integer(Matches[3], *Parsed->Max))
tools/llvm-profdata/llvm-profdata.cpp 321 loadInput(Input, Remapper, Contexts[0].get());
328 Pool.async(loadInput, Input, Remapper, Contexts[Ctx].get());
339 Pool.async(mergeWriterContexts, Contexts[I].get(),
340 Contexts[I + Mid].get());
343 Pool.async(mergeWriterContexts, Contexts[0].get(),
344 Contexts[End - 1].get());
370 InstrProfWriter &Writer = Contexts[0]->Writer;
tools/llvm-rc/ResourceFileWriter.cpp 219 UTF16 CurChar = Chars[Pos];
224 if (Pos == Chars.size() || Chars[Pos] != '"')
232 UTF16 TypeChar = Chars[Pos];
252 while (RemainingChars && Pos < Chars.size() && Chars[Pos] < 0x80) {
253 if (!isxdigit(Chars[Pos]))
255 char Digit = tolower(Chars[Pos]);
276 while (RemainingChars && Pos < Chars.size() && Chars[Pos] >= '0' &&
277 Chars[Pos] < '8') {
279 ReadInt |= Chars[Pos] - '0';
316 if (Pos == Chars.size() || Chars[Pos] != '"')
343 if (Result[Pos] == '\0')
349 if (Result[Pos] == '\0' && Result[Pos + 1] == '\0')
349 if (Result[Pos] == '\0' && Result[Pos + 1] == '\0')
1478 FixedInfo.FileVersionMS = (FileVer[0] << 16) | FileVer[1];
1478 FixedInfo.FileVersionMS = (FileVer[0] << 16) | FileVer[1];
1479 FixedInfo.FileVersionLS = (FileVer[2] << 16) | FileVer[3];
1479 FixedInfo.FileVersionLS = (FileVer[2] << 16) | FileVer[3];
1485 FixedInfo.ProductVersionMS = (ProdVer[0] << 16) | ProdVer[1];
1485 FixedInfo.ProductVersionMS = (ProdVer[0] << 16) | ProdVer[1];
1486 FixedInfo.ProductVersionLS = (ProdVer[2] << 16) | ProdVer[3];
1486 FixedInfo.ProductVersionLS = (ProdVer[2] << 16) | ProdVer[3];
1488 FixedInfo.FileFlagsMask = GetField(VersionInfoFixed::FtFileFlagsMask)[0];
1489 FixedInfo.FileFlags = GetField(VersionInfoFixed::FtFileFlags)[0];
1490 FixedInfo.FileOS = GetField(VersionInfoFixed::FtFileOS)[0];
1491 FixedInfo.FileType = GetField(VersionInfoFixed::FtFileType)[0];
1492 FixedInfo.FileSubtype = GetField(VersionInfoFixed::FtFileSubtype)[0];
tools/llvm-rc/ResourceScriptParser.cpp 479 (*LocResult)[0], (*LocResult)[1], (*LocResult)[2], (*LocResult)[3],
479 (*LocResult)[0], (*LocResult)[1], (*LocResult)[2], (*LocResult)[3],
479 (*LocResult)[0], (*LocResult)[1], (*LocResult)[2], (*LocResult)[3],
479 (*LocResult)[0], (*LocResult)[1], (*LocResult)[2], (*LocResult)[3],
592 return Control(*ClassResult, Caption, *ID, (*Args)[0], (*Args)[1],
592 return Control(*ClassResult, Caption, *ID, (*Args)[0], (*Args)[1],
593 (*Args)[2], (*Args)[3], Style, ExStyle, HelpID, Class);
593 (*Args)[2], (*Args)[3], Style, ExStyle, HelpID, Class);
768 if (Result.IsTypePresent[FixedType])
784 return std::make_unique<LanguageResource>((*Args)[0], (*Args)[1]);
784 return std::make_unique<LanguageResource>((*Args)[0], (*Args)[1]);
822 FontWeight = (*Args)[0];
824 FontItalic = (*Args)[1] != 0;
826 FontCharset = (*Args)[2];
tools/llvm-rc/ResourceScriptStmt.h 818 IsTypePresent[Type] = true;
tools/llvm-readobj/ARMEHABIPrinter.h 178 OS << format("0x%02X ", ULEB[BI]);
182 Value = Value | ((ULEB[BI] & 0x7f) << (7 * BI));
tools/llvm-readobj/COFFDumper.cpp 1114 StringRef Name = FunctionNames[I];
tools/llvm-readobj/ELFDumper.cpp 675 VersionMap[Index] = VersionMapEntry(Vernaux);
703 VersionMap[Index] = VersionMapEntry(Verdef);
789 if (VersionIndex >= VersionMap.size() || VersionMap[VersionIndex].isNull())
791 const VersionMapEntry &Entry = VersionMap[VersionIndex];
tools/llvm-reduce/deltas/ReduceMetadata.cpp 48 if (!NodesToKeep.count(MDs[I].second))
tools/llvm-xray/xray-converter.cpp 234 unsigned stack_id = siblings[0]->ExtraData.id;
tools/polly/include/polly/ScopInfo.h 888 return Incoming[0].second;
tools/polly/lib/Analysis/ScopBuilder.cpp 411 ConditionSets[Idx] = isl_set_coalesce(
415 assert(ConditionSets[0] == nullptr && "Default condition set was set");
416 isl_set *ConditionSetUnion = isl_set_copy(ConditionSets[1]);
419 isl_set_union(ConditionSetUnion, isl_set_copy(ConditionSets[u]));
420 ConditionSets[0] = isl_set_subtract(isl_set_copy(Domain), ConditionSetUnion);
763 isl_set_free(ConditionSets[1 - idx]);
765 BackedgeCondition = isl::manage(ConditionSets[idx]);
942 isl::set CondSet = isl::manage(ConditionSets[u]);
985 isl_set_free(ConditionSets[u]);
1177 scop->setScheduleTree(LoopStack[0].Schedule);
1571 AssumptionCtx = isl_set_complement(isl_set_params(ConditionSets[1]));
1572 isl_set_free(ConditionSets[0]);
1574 AssumptionCtx = isl_set_complement(ConditionSets[1]);
1575 AssumptionCtx = isl_set_intersect(AssumptionCtx, ConditionSets[0]);
3508 AliasGroupTy &AG = AliasGroups[u];
tools/polly/lib/Analysis/ScopDetection.cpp 1313 BasicBlock *TheExitBlock = ExitBlocks[0];
tools/polly/lib/Analysis/ScopInfo.cpp 304 assert(DimensionSizesPw.size() > 0 && !DimensionSizesPw[0]);
318 DimensionSizesPw[0] = PwAff;
330 auto *KnownSize = DimensionSizes[i + ExtraDimsOld];
707 isl::pw_aff SubscriptPWA = getPwAff(Subscripts[0]);
711 if (Subscripts[1] == nullptr) {
714 isl::pw_aff LengthPWA = getPwAff(Subscripts[1]);
773 if (Sizes.size() < 2 || isa<SCEVConstant>(Sizes[1]))
783 isl::pw_aff DimSize = getPwAff(Sizes[i + 1]);
872 isl::pw_aff Affine = getPwAff(Subscripts[i]);
tools/polly/lib/CodeGen/BlockGenerators.cpp 1031 Vector, getNewValue(Stmt, Old, ScalarMaps[Lane], VLTS[Lane], L),
1057 Value *NewPointer = generateLocationAccessed(Stmt, Load, ScalarMaps[Offset],
1113 Value *NewPointer = generateLocationAccessed(Stmt, Load, ScalarMaps[i],
1135 ScalarMaps[i][Load] =
1136 generateArrayLoad(Stmt, Load, ScalarMaps[i], VLTS[i], NewAccesses);
1148 NewLoad = generateStrideZeroLoad(Stmt, Load, ScalarMaps[0], NewAccesses);
1204 Value *NewPointer = generateLocationAccessed(Stmt, Store, ScalarMaps[0],
1216 Value *NewPointer = generateLocationAccessed(Stmt, Store, ScalarMaps[i],
1247 ValueMapT &SM = ScalarMaps[i];
1272 BlockGenerator::copyInstruction(Stmt, Inst, ScalarMaps[VectorLane],
1283 Vector = Builder.CreateInsertElement(Vector, ScalarMaps[i][Inst],
tools/sancov/sancov.cpp 1094 auto Iter = ObjFiles.find(Components[1]);
unittests/ADT/DirectedGraphTest.cpp 136 EXPECT_EQ(*EL[0], E1);
182 EXPECT_EQ(*EL[0], E2);
unittests/ADT/IteratorTest.cpp 83 EXPECT_EQ(*V[i], *I);
90 EXPECT_EQ(*V[i], Begin[i]);
125 EXPECT_EQ(*V[i], *I);
132 EXPECT_EQ(*V[i], Begin[i]);
169 EXPECT_EQ(*V[j], *I);
unittests/ADT/STLExtrasTest.cpp 270 EXPECT_EQ(I, Enumerated[I].index());
271 EXPECT_EQ(v[I], Enumerated[I].value());
unittests/ADT/SmallVectorTest.cpp 179 EXPECT_EQ(value, v[i].getValue());
256 this->theVector.insert(this->theVector.begin(), this->theVector[1]);
353 EXPECT_EQ(i+1, this->theVector[i].getValue());
369 EXPECT_TRUE(*it == this->theVector[0]);
372 EXPECT_TRUE(*it == this->theVector[1]);
378 EXPECT_TRUE(*it == this->theVector[1]);
381 EXPECT_TRUE(*it == this->theVector[0]);
386 EXPECT_TRUE(*rit == this->theVector[1]);
389 EXPECT_TRUE(*rit == this->theVector[0]);
394 EXPECT_TRUE(*rit == this->theVector[0]);
397 EXPECT_TRUE(*rit == this->theVector[1]);
734 EXPECT_EQ(1, this->theVector[0].getValue());
735 EXPECT_EQ(2, this->theVector[1].getValue());
736 EXPECT_EQ(3, this->theVector[2].getValue());
737 EXPECT_EQ(4, this->theVector[3].getValue());
980 EXPECT_EQ(0, V[0]);
981 EXPECT_EQ(42, V[1]);
unittests/Analysis/LazyCallGraphTest.cpp 805 EXPECT_EQ(&DRC, MergedRCs[0]);
897 EXPECT_EQ(&DRC, MergedRCs[0]);
1172 LazyCallGraph::RefSCC &NewDRC = *NewRCs[0];
1175 LazyCallGraph::RefSCC &D2RC = *NewRCs[1];
1363 LazyCallGraph::RefSCC &BCRC = *NewRCs[0];
1364 LazyCallGraph::RefSCC &ARC = *NewRCs[1];
1429 LazyCallGraph::RefSCC &BRC = *NewRCs[0];
1430 LazyCallGraph::RefSCC &ACRC = *NewRCs[1];
unittests/Analysis/LoopInfoTest.cpp 212 EXPECT_EQ(&L_0, Preorder[0]);
213 EXPECT_EQ(&L_0_0, Preorder[1]);
214 EXPECT_EQ(&L_0_1, Preorder[2]);
215 EXPECT_EQ(&L_0_2, Preorder[3]);
216 EXPECT_EQ(&L_1, Preorder[4]);
217 EXPECT_EQ(&L_1_0, Preorder[5]);
218 EXPECT_EQ(&L_1_1, Preorder[6]);
219 EXPECT_EQ(&L_1_2, Preorder[7]);
223 EXPECT_EQ(&L_1, ReverseSiblingPreorder[0]);
224 EXPECT_EQ(&L_1_2, ReverseSiblingPreorder[1]);
225 EXPECT_EQ(&L_1_1, ReverseSiblingPreorder[2]);
226 EXPECT_EQ(&L_1_0, ReverseSiblingPreorder[3]);
227 EXPECT_EQ(&L_0, ReverseSiblingPreorder[4]);
228 EXPECT_EQ(&L_0_2, ReverseSiblingPreorder[5]);
229 EXPECT_EQ(&L_0_1, ReverseSiblingPreorder[6]);
230 EXPECT_EQ(&L_0_0, ReverseSiblingPreorder[7]);
unittests/Analysis/ScalarEvolutionTest.cpp 345 Acc[0] = PHINode::Create(Ty, 2, "", LoopBB);
346 Acc[1] = PHINode::Create(Ty, 2, "", LoopBB);
347 Acc[2] = PHINode::Create(Ty, 2, "", LoopBB);
348 Acc[3] = PHINode::Create(Ty, 2, "", LoopBB);
349 Acc[4] = PHINode::Create(Ty, 2, "", LoopBB);
350 Acc[5] = PHINode::Create(Ty, 2, "", LoopBB);
351 Acc[6] = PHINode::Create(Ty, 2, "", LoopBB);
352 Acc[7] = PHINode::Create(Ty, 2, "", LoopBB);
355 Muls[0] = BinaryOperator::CreateMul(Acc[0], Acc[0], "", LoopBB);
355 Muls[0] = BinaryOperator::CreateMul(Acc[0], Acc[0], "", LoopBB);
355 Muls[0] = BinaryOperator::CreateMul(Acc[0], Acc[0], "", LoopBB);
356 NextAcc[0] = BinaryOperator::CreateAdd(Muls[0], Acc[4], "", LoopBB);
356 NextAcc[0] = BinaryOperator::CreateAdd(Muls[0], Acc[4], "", LoopBB);
356 NextAcc[0] = BinaryOperator::CreateAdd(Muls[0], Acc[4], "", LoopBB);
357 Muls[1] = BinaryOperator::CreateMul(Acc[1], Acc[1], "", LoopBB);
357 Muls[1] = BinaryOperator::CreateMul(Acc[1], Acc[1], "", LoopBB);
357 Muls[1] = BinaryOperator::CreateMul(Acc[1], Acc[1], "", LoopBB);
358 NextAcc[1] = BinaryOperator::CreateAdd(Muls[1], Acc[5], "", LoopBB);
358 NextAcc[1] = BinaryOperator::CreateAdd(Muls[1], Acc[5], "", LoopBB);
358 NextAcc[1] = BinaryOperator::CreateAdd(Muls[1], Acc[5], "", LoopBB);
359 Muls[2] = BinaryOperator::CreateMul(Acc[2], Acc[2], "", LoopBB);
359 Muls[2] = BinaryOperator::CreateMul(Acc[2], Acc[2], "", LoopBB);
359 Muls[2] = BinaryOperator::CreateMul(Acc[2], Acc[2], "", LoopBB);
360 NextAcc[2] = BinaryOperator::CreateAdd(Muls[2], Acc[6], "", LoopBB);
360 NextAcc[2] = BinaryOperator::CreateAdd(Muls[2], Acc[6], "", LoopBB);
360 NextAcc[2] = BinaryOperator::CreateAdd(Muls[2], Acc[6], "", LoopBB);
361 Muls[3] = BinaryOperator::CreateMul(Acc[3], Acc[3], "", LoopBB);
361 Muls[3] = BinaryOperator::CreateMul(Acc[3], Acc[3], "", LoopBB);
361 Muls[3] = BinaryOperator::CreateMul(Acc[3], Acc[3], "", LoopBB);
362 NextAcc[3] = BinaryOperator::CreateAdd(Muls[3], Acc[7], "", LoopBB);
362 NextAcc[3] = BinaryOperator::CreateAdd(Muls[3], Acc[7], "", LoopBB);
362 NextAcc[3] = BinaryOperator::CreateAdd(Muls[3], Acc[7], "", LoopBB);
364 Muls[4] = BinaryOperator::CreateMul(Acc[4], Acc[4], "", LoopBB);
364 Muls[4] = BinaryOperator::CreateMul(Acc[4], Acc[4], "", LoopBB);
364 Muls[4] = BinaryOperator::CreateMul(Acc[4], Acc[4], "", LoopBB);
365 NextAcc[4] = BinaryOperator::CreateAdd(Muls[4], Acc[0], "", LoopBB);
365 NextAcc[4] = BinaryOperator::CreateAdd(Muls[4], Acc[0], "", LoopBB);
365 NextAcc[4] = BinaryOperator::CreateAdd(Muls[4], Acc[0], "", LoopBB);
366 Muls[5] = BinaryOperator::CreateMul(Acc[5], Acc[5], "", LoopBB);
366 Muls[5] = BinaryOperator::CreateMul(Acc[5], Acc[5], "", LoopBB);
366 Muls[5] = BinaryOperator::CreateMul(Acc[5], Acc[5], "", LoopBB);
367 NextAcc[5] = BinaryOperator::CreateAdd(Muls[5], Acc[1], "", LoopBB);
367 NextAcc[5] = BinaryOperator::CreateAdd(Muls[5], Acc[1], "", LoopBB);
367 NextAcc[5] = BinaryOperator::CreateAdd(Muls[5], Acc[1], "", LoopBB);
368 Muls[6] = BinaryOperator::CreateMul(Acc[6], Acc[6], "", LoopBB);
368 Muls[6] = BinaryOperator::CreateMul(Acc[6], Acc[6], "", LoopBB);
368 Muls[6] = BinaryOperator::CreateMul(Acc[6], Acc[6], "", LoopBB);
369 NextAcc[6] = BinaryOperator::CreateAdd(Muls[6], Acc[2], "", LoopBB);
369 NextAcc[6] = BinaryOperator::CreateAdd(Muls[6], Acc[2], "", LoopBB);
369 NextAcc[6] = BinaryOperator::CreateAdd(Muls[6], Acc[2], "", LoopBB);
370 Muls[7] = BinaryOperator::CreateMul(Acc[7], Acc[7], "", LoopBB);
370 Muls[7] = BinaryOperator::CreateMul(Acc[7], Acc[7], "", LoopBB);
370 Muls[7] = BinaryOperator::CreateMul(Acc[7], Acc[7], "", LoopBB);
371 NextAcc[7] = BinaryOperator::CreateAdd(Muls[7], Acc[3], "", LoopBB);
371 NextAcc[7] = BinaryOperator::CreateAdd(Muls[7], Acc[3], "", LoopBB);
371 NextAcc[7] = BinaryOperator::CreateAdd(Muls[7], Acc[3], "", LoopBB);
378 Phi->addIncoming(Acc[i], LoopBB);
386 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
386 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
386 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
387 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
387 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
387 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
388 Acc[2] = BinaryOperator::CreateAdd(Acc[4], Acc[5], "", ExitBB);
388 Acc[2] = BinaryOperator::CreateAdd(Acc[4], Acc[5], "", ExitBB);
388 Acc[2] = BinaryOperator::CreateAdd(Acc[4], Acc[5], "", ExitBB);
389 Acc[3] = BinaryOperator::CreateAdd(Acc[6], Acc[7], "", ExitBB);
389 Acc[3] = BinaryOperator::CreateAdd(Acc[6], Acc[7], "", ExitBB);
389 Acc[3] = BinaryOperator::CreateAdd(Acc[6], Acc[7], "", ExitBB);
390 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
390 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
390 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
391 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
391 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
391 Acc[1] = BinaryOperator::CreateAdd(Acc[2], Acc[3], "", ExitBB);
392 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
392 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
392 Acc[0] = BinaryOperator::CreateAdd(Acc[0], Acc[1], "", ExitBB);
398 EXPECT_NE(nullptr, SE.getSCEV(Acc[0]));
unittests/Analysis/UnrollAnalyzerTest.cpp 106 auto I1 = SimplifiedValuesVector[0].find(Y1);
107 EXPECT_TRUE(I1 != SimplifiedValuesVector[0].end());
111 auto I2 = SimplifiedValuesVector[0].find(Y2);
112 EXPECT_TRUE(I2 != SimplifiedValuesVector[0].end());
117 I1 = SimplifiedValuesVector[TripCount - 1].find(Y1);
118 EXPECT_TRUE(I1 != SimplifiedValuesVector[TripCount - 1].end());
122 I2 = SimplifiedValuesVector[TripCount - 1].find(Y2);
123 EXPECT_TRUE(I2 != SimplifiedValuesVector[TripCount - 1].end());
173 auto I1 = SimplifiedValuesVector[0].find(Y1);
174 EXPECT_TRUE(I1 != SimplifiedValuesVector[0].end());
175 auto I2 = SimplifiedValuesVector[0].find(Y2);
176 EXPECT_TRUE(I2 == SimplifiedValuesVector[0].end());
215 auto I1 = SimplifiedValuesVector[5].find(Y1);
216 EXPECT_TRUE(I1 != SimplifiedValuesVector[5].end());
218 auto I2 = SimplifiedValuesVector[5].find(Y2);
219 EXPECT_TRUE(I2 != SimplifiedValuesVector[5].end());
260 auto I1 = SimplifiedValuesVector[5].find(Y1);
261 EXPECT_TRUE(I1 != SimplifiedValuesVector[5].end());
310 auto I1 = SimplifiedValuesVector[5].find(Y1);
311 EXPECT_TRUE(I1 != SimplifiedValuesVector[5].end());
313 auto I2 = SimplifiedValuesVector[5].find(Y2);
314 EXPECT_TRUE(I2 != SimplifiedValuesVector[5].end());
316 auto I3 = SimplifiedValuesVector[5].find(Y3);
317 EXPECT_TRUE(I3 != SimplifiedValuesVector[5].end());
unittests/Analysis/VectorFunctionABITest.cpp 128 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector, 0}));
129 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::OMP_LinearPos, 2}));
130 EXPECT_EQ(Parameters[2], VFParameter({2, VFParamKind::OMP_LinearValPos, 27}));
131 EXPECT_EQ(Parameters[3], VFParameter({3, VFParamKind::OMP_LinearUValPos, 4}));
132 EXPECT_EQ(Parameters[4], VFParameter({4, VFParamKind::OMP_LinearRefPos, 5}));
133 EXPECT_EQ(Parameters[5], VFParameter({5, VFParamKind::OMP_Linear, 1}));
134 EXPECT_EQ(Parameters[6], VFParameter({6, VFParamKind::OMP_LinearVal, 10}));
135 EXPECT_EQ(Parameters[7], VFParameter({7, VFParamKind::OMP_LinearUVal, 100}));
136 EXPECT_EQ(Parameters[8], VFParameter({8, VFParamKind::OMP_LinearRef, 1000}));
148 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector, 0}));
160 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::OMP_Linear, -1}));
161 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::OMP_LinearVal, -10}));
162 EXPECT_EQ(Parameters[2], VFParameter({2, VFParamKind::OMP_LinearUVal, -100}));
163 EXPECT_EQ(Parameters[3], VFParameter({3, VFParamKind::OMP_LinearRef, -1000}));
211 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::OMP_Linear, 1}));
212 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::OMP_LinearVal, 1}));
213 EXPECT_EQ(Parameters[2], VFParameter({2, VFParamKind::OMP_LinearRef, 1}));
214 EXPECT_EQ(Parameters[3], VFParameter({3, VFParamKind::OMP_LinearUVal, 1}));
215 EXPECT_EQ(Parameters[4], VFParameter({4, VFParamKind::OMP_Linear, -1}));
216 EXPECT_EQ(Parameters[5], VFParameter({5, VFParamKind::OMP_LinearVal, -1}));
217 EXPECT_EQ(Parameters[6], VFParameter({6, VFParamKind::OMP_LinearRef, -1}));
218 EXPECT_EQ(Parameters[7], VFParameter({7, VFParamKind::OMP_LinearUVal, -1}));
255 EXPECT_EQ(Parameters[0].Alignment, Align(2));
277 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::OMP_Uniform, 0}));
376 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
377 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
388 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
389 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
400 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
401 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
412 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
413 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
424 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
425 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
436 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
437 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::GlobalPredicate}));
unittests/CodeGen/GlobalISel/CSETest.cpp 21 auto MIBInput = B.buildInstr(TargetOpcode::G_TRUNC, {s16}, {Copies[0]});
22 auto MIBInput1 = B.buildInstr(TargetOpcode::G_TRUNC, {s16}, {Copies[1]});
72 auto MIBUnmerge = CSEB.buildUnmerge({s32, s32}, Copies[0]);
73 auto MIBUnmerge2 = CSEB.buildUnmerge({s32, s32}, Copies[0]);
83 auto MIBInput = B.buildInstr(TargetOpcode::G_TRUNC, {s16}, {Copies[0]});
unittests/CodeGen/GlobalISel/KnownBitsTest.cpp 19 unsigned CopyReg = Copies[Copies.size() - 1];
39 unsigned CopyReg = Copies[Copies.size() - 1];
67 unsigned CopyReg = Copies[Copies.size() - 1];
83 unsigned CopyReg = Copies[Copies.size() - 1];
110 unsigned CopyReg = Copies[Copies.size() - 1];
unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp 39 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]});
71 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]});
105 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]});
138 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
171 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
201 {LLT::scalar(64)}, {Copies[0]});
228 B.buildInstr(TargetOpcode::G_CTLZ, {LLT::scalar(64)}, {Copies[0]});
259 B.buildInstr(TargetOpcode::G_CTLZ, {LLT::scalar(64)}, {Copies[0]});
291 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
333 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
368 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
404 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
437 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
471 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
505 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
544 auto MIBTrunc = B.buildTrunc(s8, Copies[0]);
635 auto Val0 = B.buildBitcast(v2s32, Copies[0]);
636 auto Val1 = B.buildBitcast(v2s32, Copies[1]);
690 auto ICmp = B.buildICmp(CmpInst::ICMP_EQ, s1, Copies[0], Copies[1]);
690 auto ICmp = B.buildICmp(CmpInst::ICMP_EQ, s1, Copies[0], Copies[1]);
763 B.buildInstr(TargetOpcode::G_FADD, {LLT::scalar(64)}, {Copies[0], Copies[1]},
763 B.buildInstr(TargetOpcode::G_FADD, {LLT::scalar(64)}, {Copies[0], Copies[1]},
773 B.buildInstr(TargetOpcode::G_FNEG, {LLT::scalar(64)}, {Copies[0]},
809 auto SMin = B.buildSMin(s64, Copies[0], Copies[1]);
809 auto SMin = B.buildSMin(s64, Copies[0], Copies[1]);
810 auto SMax = B.buildSMax(s64, Copies[0], Copies[1]);
810 auto SMax = B.buildSMax(s64, Copies[0], Copies[1]);
811 auto UMin = B.buildUMin(s64, Copies[0], Copies[1]);
811 auto UMin = B.buildUMin(s64, Copies[0], Copies[1]);
812 auto UMax = B.buildUMax(s64, Copies[0], Copies[1]);
812 auto UMax = B.buildUMax(s64, Copies[0], Copies[1]);
814 auto VecVal0 = B.buildBitcast(v2s32, Copies[0]);
815 auto VecVal1 = B.buildBitcast(v2s32, Copies[1]);
1037 auto Lo = B.buildTrunc(S32, Copies[0]);
1038 auto Hi = B.buildTrunc(S32, Copies[1]);
1070 {B.buildInstr(TargetOpcode::G_TRUNC, {LLT::scalar(32)}, {Copies[0]}),
1101 {B.buildInstr(TargetOpcode::G_TRUNC, {LLT::scalar(16)}, {Copies[0]}),
1131 {B.buildInstr(TargetOpcode::G_TRUNC, {LLT::scalar(32)}, {Copies[0]}),
1163 {B.buildInstr(TargetOpcode::G_TRUNC, {LLT::scalar(32)}, {Copies[0]}),
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp 85 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
85 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
109 B.buildUnmerge(LLT::scalar(32), Copies[0]);
110 B.buildUnmerge(LLT::scalar(16), Copies[1]);
133 B.buildFAdd(S64, Copies[0], Copies[1]);
133 B.buildFAdd(S64, Copies[0], Copies[1]);
134 B.buildFSub(S64, Copies[0], Copies[1]);
134 B.buildFSub(S64, Copies[0], Copies[1]);
135 B.buildFMA(S64, Copies[0], Copies[1], Copies[2]);
135 B.buildFMA(S64, Copies[0], Copies[1], Copies[2]);
135 B.buildFMA(S64, Copies[0], Copies[1], Copies[2]);
136 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2]);
136 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2]);
136 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2]);
137 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2], MachineInstr::FmNoNans);
137 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2], MachineInstr::FmNoNans);
137 B.buildFMAD(S64, Copies[0], Copies[1], Copies[2], MachineInstr::FmNoNans);
138 B.buildFNeg(S64, Copies[0]);
139 B.buildFAbs(S64, Copies[0]);
140 B.buildFCopysign(S64, Copies[0], Copies[1]);
140 B.buildFCopysign(S64, Copies[0], Copies[1]);
170 .addUse(Copies[0]);
176 .addUse(Copies[1]);
197 B.buildXor(S64, Copies[0], Copies[1]);
197 B.buildXor(S64, Copies[0], Copies[1]);
198 B.buildNot(S64, Copies[0]);
201 auto Merge = B.buildMerge(S128, {Copies[0], Copies[1]});
201 auto Merge = B.buildMerge(S128, {Copies[0], Copies[1]});
226 B.buildCTPOP(S32, Copies[0]);
227 B.buildCTLZ(S32, Copies[0]);
228 B.buildCTLZ_ZERO_UNDEF(S32, Copies[1]);
229 B.buildCTTZ(S32, Copies[0]);
230 B.buildCTTZ_ZERO_UNDEF(S32, Copies[1]);
254 B.buildUITOFP(S32, Copies[0]);
255 B.buildSITOFP(S32, Copies[0]);
256 B.buildFPTOUI(S32, Copies[0]);
257 B.buildFPTOSI(S32, Copies[0]);
279 B.buildSMin(S64, Copies[0], Copies[1]);
279 B.buildSMin(S64, Copies[0], Copies[1]);
280 B.buildSMax(S64, Copies[0], Copies[1]);
280 B.buildSMax(S64, Copies[0], Copies[1]);
281 B.buildUMin(S64, Copies[0], Copies[1]);
281 B.buildUMin(S64, Copies[0], Copies[1]);
282 B.buildUMax(S64, Copies[0], Copies[1]);
282 B.buildUMax(S64, Copies[0], Copies[1]);
313 B.buildAtomicRMWFAdd(S64, Ptr, Copies[0], *MMO);
314 B.buildAtomicRMWFSub(S64, Ptr, Copies[0], *MMO);
unittests/CodeGen/GlobalISel/PatternMatchTest.cpp 49 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
49 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
58 EXPECT_EQ(Src0, Copies[0]);
59 EXPECT_EQ(Src1, Copies[1]);
62 auto MIBMul = B.buildMul(s64, MIBAdd, Copies[2]);
69 EXPECT_EQ(Src1, Copies[2]);
75 EXPECT_EQ(Src0, Copies[0]);
76 EXPECT_EQ(Src1, Copies[1]);
77 EXPECT_EQ(Src2, Copies[2]);
80 auto MIBMul2 = B.buildMul(s64, Copies[0], B.buildConstant(s64, 42));
88 EXPECT_EQ(Src0, Copies[0]);
91 auto MIBSub = B.buildSub(s64, Copies[0], B.buildConstant(s64, 42));
97 {Copies[0], B.buildConstant(s64, 42)});
103 EXPECT_EQ(Src0, Copies[0]);
107 {Copies[0], B.buildConstant(s64, 42)});
111 EXPECT_EQ(Src0, Copies[0]);
114 auto MIBAnd = B.buildAnd(s64, Copies[0], Copies[1]);
114 auto MIBAnd = B.buildAnd(s64, Copies[0], Copies[1]);
119 EXPECT_EQ(Src0, Copies[0]);
120 EXPECT_EQ(Src1, Copies[1]);
123 auto MIBOr = B.buildOr(s64, Copies[0], Copies[1]);
123 auto MIBOr = B.buildOr(s64, Copies[0], Copies[1]);
128 EXPECT_EQ(Src0, Copies[0]);
129 EXPECT_EQ(Src1, Copies[1]);
139 auto Copy0s32 = B.buildFPTrunc(s32, Copies[0]);
202 auto MIBTrunc = B.buildTrunc(s32, Copies[0]);
210 EXPECT_EQ(Src0, Copies[0]);
228 EXPECT_EQ(Src0, Copies[0]);
233 EXPECT_EQ(Src0, Copies[0]);
238 EXPECT_EQ(Src0, Copies[0]);
249 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
249 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
257 auto MIBCast = B.buildCast(v2s32, Copies[0]);
267 auto MIBIntToPtr = B.buildCast(PtrTy, Copies[0]);
275 EXPECT_EQ(Src0, Copies[0]);
285 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
285 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
291 EXPECT_EQ(Src0, Copies[0]);
292 EXPECT_EQ(Src1, Copies[1]);
302 EXPECT_EQ(Src0, Copies[0]);
303 EXPECT_EQ(Src1, Copies[1]);
318 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
318 auto MIBAdd = B.buildAdd(s64, Copies[0], Copies[1]);
unittests/FuzzMutate/OperationsTest.cpp 293 EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, UndefValue::get(Int8PtrTy)));
294 EXPECT_TRUE(GEPOp.SourcePreds[1].matches({UndefValue::get(Int8PtrTy)},
323 ASSERT_FALSE(Descr.SourcePreds[0].matches({}, &*BB.begin()));
326 ASSERT_TRUE(Descr.SourcePreds[0].matches({}, &*std::next(BB.begin())));
352 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, SVal));
353 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, OVal));
354 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, AVal));
355 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, VVal));
356 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, SVal));
357 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, OVal));
358 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, AVal));
359 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, VVal));
362 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, ZAVal));
363 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, ZAVal));
367 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0)));
369 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1)));
371 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2)));
373 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0)));
375 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 65536)));
377 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 0)));
379 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 3)));
381 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 4)));
384 EVOp.SourcePreds[1].generate({SVal}, {}),
389 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int8PtrTy)));
390 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int32Ty)));
391 EXPECT_FALSE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int64Ty)));
392 EXPECT_FALSE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)},
394 EXPECT_TRUE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)},
397 EXPECT_THAT(IVOp.SourcePreds[1].generate({SVal}, {}),
400 IVOp.SourcePreds[2].generate({SVal, ConstantInt::get(Int32Ty, 0)}, {}),
unittests/FuzzMutate/RandomIRBuilderTest.cpp 73 ASSERT_TRUE(Descr.SourcePreds[0].matches(Srcs, Insts[1]));
73 ASSERT_TRUE(Descr.SourcePreds[0].matches(Srcs, Insts[1]));
74 Srcs.push_back(Insts[1]);
75 ASSERT_TRUE(Descr.SourcePreds[1].matches(Srcs, Insts[1]));
75 ASSERT_TRUE(Descr.SourcePreds[1].matches(Srcs, Insts[1]));
76 Srcs.push_back(Insts[1]);
81 Value *LastSrc = IB.newSource(BB, Insts, Srcs, Descr.SourcePreds[2]);
82 ASSERT_TRUE(Descr.SourcePreds[2].matches(Srcs, LastSrc));
113 ASSERT_TRUE(IVDescr.SourcePreds[0].matches({}, Src));
114 Srcs[0] = Src;
122 Srcs[1] = ConstantInt::get(T, 5);
126 BB, &*BB.begin(), Srcs, IVDescr.SourcePreds[2]);
127 ASSERT_TRUE(IVDescr.SourcePreds[2].matches(Srcs, Src));
190 ASSERT_TRUE(Descr.SourcePreds[0].matches({}, Source));
196 Srcs[0] = Source;
197 Srcs[1] = IB.findOrCreateSource(BB, {Source}, Srcs, Descr.SourcePreds[1]);
197 Srcs[1] = IB.findOrCreateSource(BB, {Source}, Srcs, Descr.SourcePreds[1]);
198 IB.findOrCreateSource(BB, {}, Srcs, Descr.SourcePreds[2]);
293 Value *V = IB.findOrCreateSource(BB, {Alloca}, {}, Descr.SourcePreds[0]);
unittests/IR/DominatorTreeTest.cpp 661 EXPECT_EQ(IDFBlocks[0], D);
662 EXPECT_EQ(IDFBlocks[1], E);
663 EXPECT_TRUE(DT->getNode(IDFBlocks[0])->getDFSNumIn() <
664 DT->getNode(IDFBlocks[1])->getDFSNumIn());
unittests/IR/FunctionTest.cpp 82 EXPECT_EQ(Args[I], &A);
91 EXPECT_NE(Args[I], &A);
106 EXPECT_EQ(Args[I], &A);
unittests/IR/IRBuilderTest.cpp 146 EXPECT_EQ(FTy->getParamType(i), ArgTys[i]->getType());
167 EXPECT_EQ(FTy->getParamType(i), ArgTys[i]->getType());
unittests/IR/InstructionsTest.cpp 92 EXPECT_EQ(FArgTypes[Idx], Arg->getType());
110 EXPECT_EQ(FArgTypes[Idx], Arg->getType());
unittests/IR/MetadataTest.cpp 2714 EXPECT_EQ(LLVMContext::MD_dbg, MDs[0].first);
2715 EXPECT_EQ(LLVMContext::MD_prof, MDs[1].first);
2716 EXPECT_EQ(Context.getMDKindID("other1"), MDs[2].first);
2717 EXPECT_EQ(Context.getMDKindID("other2"), MDs[3].first);
2718 EXPECT_EQ(SP, MDs[0].second);
2719 EXPECT_EQ(P, MDs[1].second);
2720 EXPECT_EQ(T1, MDs[2].second);
2721 EXPECT_EQ(T2, MDs[3].second);
unittests/Option/OptionParsingTest.cpp 110 EXPECT_EQ("-C", StringRef(ASL[0]));
111 EXPECT_EQ("desu", StringRef(ASL[1]));
unittests/ProfileData/CoverageMappingTest.cpp 194 FileIDs[E.second] = E.first;
205 Filenames[E.getValue()] = E.getKey();
unittests/Support/BranchProbabilityTest.cpp 342 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
343 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
348 EXPECT_EQ(0u, Probs[0].getNumerator());
349 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
354 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
355 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
360 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
361 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
367 Probs[0].getNumerator());
369 Probs[1].getNumerator());
371 Probs[2].getNumerator());
376 EXPECT_EQ(0U, Probs[0].getNumerator());
377 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
382 EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
383 EXPECT_EQ(0U, Probs[1].getNumerator());
388 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
389 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
396 Probs[0].getNumerator());
398 Probs[1].getNumerator());
400 Probs[2].getNumerator());
401 EXPECT_EQ(0U, Probs[3].getNumerator());
unittests/Support/CommandLineTest.cpp 228 EXPECT_STREQ(Output[I], Actual[I]);
836 EXPECT_STREQ(Argv[0], "test/test");
837 EXPECT_STREQ(Argv[1], "-flag_1");
838 EXPECT_STREQ(Argv[2], "-option_1");
839 EXPECT_STREQ(Argv[3], "-option_2");
840 EXPECT_STREQ(Argv[4], "-option_21");
841 EXPECT_STREQ(Argv[5], "-option_22");
842 EXPECT_STREQ(Argv[6], "-option_23=abcd");
843 EXPECT_STREQ(Argv[7], "-option_3=abcd");
844 EXPECT_STREQ(Argv[8], "-option_31");
845 EXPECT_STREQ(Argv[9], "-option_32");
846 EXPECT_STREQ(Argv[10], "-option_33=abcd");
847 EXPECT_STREQ(Argv[11], "-option_4=efjk");
848 EXPECT_STREQ(Argv[12], "-flag_2");
912 EXPECT_STREQ(Argv[0], "test/test");
913 EXPECT_STREQ(Argv[1], "-option_1");
914 EXPECT_STREQ(Argv[2], "-option_x");
915 EXPECT_STREQ(Argv[3], "-option_2");
916 EXPECT_STREQ(Argv[4], "-option_x");
917 EXPECT_STREQ(Argv[5], SelfFileRef.c_str());
918 EXPECT_STREQ(Argv[6], NestedFileRef.c_str());
919 EXPECT_STREQ(Argv[7], SelfFileRef.c_str());
920 EXPECT_STREQ(Argv[8], "-option_3");
953 EXPECT_STREQ(Argv[i++], "test/test");
955 EXPECT_STREQ(Argv[i], "@non_rsp_at_arg");
956 EXPECT_STREQ(Argv[i++], "-foo");
957 EXPECT_STREQ(Argv[i++], "-bar");
1040 EXPECT_STREQ(Argv[0], "-option_1");
1041 EXPECT_STREQ(Argv[1], "-option_2");
1042 EXPECT_STREQ(Argv[2], "-option_3=abcd");
1043 EXPECT_STREQ(Argv[3], "-option_4=cdef");
unittests/Support/ConvertUTFTest.cpp 49 EXPECT_EQ(Expected[I], Result[I]);
unittests/Support/EndianStreamTest.cpp 27 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0xCD);
28 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0xB6);
29 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xCA);
30 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0xAE);
42 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0xAE);
43 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0xCA);
44 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xB6);
45 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0xCD);
58 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0x00);
59 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0xE4);
60 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0x40);
61 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0x46);
73 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0x46);
74 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0x40);
75 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xE4);
76 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0x00);
88 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0xCD);
89 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0xAB);
90 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xED);
91 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0x1B);
92 EXPECT_EQ(static_cast<uint8_t>(data[4]), 0x33);
93 EXPECT_EQ(static_cast<uint8_t>(data[5]), 0xF6);
94 EXPECT_EQ(static_cast<uint8_t>(data[6]), 0x1B);
95 EXPECT_EQ(static_cast<uint8_t>(data[7]), 0xFE);
107 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0xFE);
108 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0x1B);
109 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xF6);
110 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0x33);
111 EXPECT_EQ(static_cast<uint8_t>(data[4]), 0x1B);
112 EXPECT_EQ(static_cast<uint8_t>(data[5]), 0xED);
113 EXPECT_EQ(static_cast<uint8_t>(data[6]), 0xAB);
114 EXPECT_EQ(static_cast<uint8_t>(data[7]), 0xCD);
126 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0x20);
127 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0x98);
128 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0xD2);
129 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0x98);
130 EXPECT_EQ(static_cast<uint8_t>(data[4]), 0xC5);
131 EXPECT_EQ(static_cast<uint8_t>(data[5]), 0x80);
132 EXPECT_EQ(static_cast<uint8_t>(data[6]), 0xE1);
133 EXPECT_EQ(static_cast<uint8_t>(data[7]), 0xC1);
145 EXPECT_EQ(static_cast<uint8_t>(data[0]), 0xC1);
146 EXPECT_EQ(static_cast<uint8_t>(data[1]), 0xE1);
147 EXPECT_EQ(static_cast<uint8_t>(data[2]), 0x80);
148 EXPECT_EQ(static_cast<uint8_t>(data[3]), 0xC5);
149 EXPECT_EQ(static_cast<uint8_t>(data[4]), 0x98);
150 EXPECT_EQ(static_cast<uint8_t>(data[5]), 0xD2);
151 EXPECT_EQ(static_cast<uint8_t>(data[6]), 0x98);
152 EXPECT_EQ(static_cast<uint8_t>(data[7]), 0x20);
164 EXPECT_EQ(static_cast<uint8_t>(Data[0]), 0x34);
165 EXPECT_EQ(static_cast<uint8_t>(Data[1]), 0x12);
166 EXPECT_EQ(static_cast<uint8_t>(Data[2]), 0x78);
167 EXPECT_EQ(static_cast<uint8_t>(Data[3]), 0x56);
180 EXPECT_EQ(static_cast<uint8_t>(Data[0]), 0x34);
181 EXPECT_EQ(static_cast<uint8_t>(Data[1]), 0x12);
182 EXPECT_EQ(static_cast<uint8_t>(Data[2]), 0x78);
183 EXPECT_EQ(static_cast<uint8_t>(Data[3]), 0x56);
195 EXPECT_EQ(static_cast<uint8_t>(Data[0]), 0x00);
196 EXPECT_EQ(static_cast<uint8_t>(Data[1]), 0xE4);
197 EXPECT_EQ(static_cast<uint8_t>(Data[2]), 0x40);
198 EXPECT_EQ(static_cast<uint8_t>(Data[3]), 0x46);
200 EXPECT_EQ(static_cast<uint8_t>(Data[4]), 0x00);
201 EXPECT_EQ(static_cast<uint8_t>(Data[5]), 0xE8);
202 EXPECT_EQ(static_cast<uint8_t>(Data[6]), 0x40);
203 EXPECT_EQ(static_cast<uint8_t>(Data[7]), 0x46);
unittests/Support/Path.cpp 193 Relative[5] = '/'; // Fix up windows paths.
200 Relative[6] = '/'; // Fix up windows paths.
unittests/Support/RegexTest.cpp 30 EXPECT_EQ("216", Matches[0].str());
35 EXPECT_EQ("9a:513", Matches[0].str());
36 EXPECT_EQ("a", Matches[1].str());
37 EXPECT_EQ("513", Matches[2].str());
41 EXPECT_EQ("9:513", Matches[0].str());
42 EXPECT_EQ("", Matches[1].str());
43 EXPECT_EQ("513", Matches[2].str());
51 EXPECT_EQ(String, Matches[0].str());
73 EXPECT_EQ("4", Matches[1].str());
79 EXPECT_EQ("6", Matches[1].str());
80 EXPECT_EQ("z", Matches[2].str());
unittests/Support/VirtualFileSystemTest.cpp 767 EXPECT_EQ(StringRef(InputToCheck[Idx]), Expected[Idx]);
767 EXPECT_EQ(StringRef(InputToCheck[Idx]), Expected[Idx]);
unittests/TextAPI/TextStubV1Tests.cpp 126 File->addSymbol(SymbolKind::ObjectiveCClassEHType, "Class1", {Targets[1]});
128 {Targets[1]});
196 File.addAllowableClient("clientA", Targets[1]);
197 File.addReexportedLibrary("/usr/lib/libfoo.dylib", Targets[1]);
198 File.addSymbol(SymbolKind::GlobalSymbol, "_sym1", {Targets[0]});
199 File.addSymbol(SymbolKind::GlobalSymbol, "_sym2", {Targets[0]},
201 File.addSymbol(SymbolKind::GlobalSymbol, "_sym3", {Targets[0]},
203 File.addSymbol(SymbolKind::ObjectiveCClass, "Class1", {Targets[1]});
204 File.addSymbol(SymbolKind::ObjectiveCClassEHType, "Class1", {Targets[1]});
206 {Targets[1]});
unittests/TextAPI/TextStubV2Tests.cpp 217 File.addAllowableClient("clientA", Targets[1]);
218 File.addReexportedLibrary("/usr/lib/libfoo.dylib", Targets[1]);
219 File.addSymbol(SymbolKind::GlobalSymbol, "_sym1", {Targets[0]});
220 File.addSymbol(SymbolKind::GlobalSymbol, "_sym2", {Targets[0]},
222 File.addSymbol(SymbolKind::GlobalSymbol, "_sym3", {Targets[0]},
224 File.addSymbol(SymbolKind::ObjectiveCClass, "Class1", {Targets[1]});
225 File.addSymbol(SymbolKind::ObjectiveCClassEHType, "Class1", {Targets[1]});
227 {Targets[1]});
unittests/TextAPI/TextStubV3Tests.cpp 173 File.addAllowableClient("clientA", Targets[1]);
174 File.addReexportedLibrary("/usr/lib/libfoo.dylib", Targets[1]);
175 File.addSymbol(SymbolKind::GlobalSymbol, "_sym1", {Targets[0]});
176 File.addSymbol(SymbolKind::GlobalSymbol, "_sym2", {Targets[0]},
178 File.addSymbol(SymbolKind::GlobalSymbol, "_sym3", {Targets[0]},
180 File.addSymbol(SymbolKind::ObjectiveCClass, "Class1", {Targets[1]});
181 File.addSymbol(SymbolKind::ObjectiveCClassEHType, "Class1", {Targets[1]});
183 {Targets[1]});
unittests/TextAPI/TextStubV4Tests.cpp 121 UUIDs uuids = {{Targets[0], "00000000-0000-0000-0000-000000000000"},
122 {Targets[1], "11111111-1111-1111-1111-111111111111"},
123 {Targets[2], "11111111-1111-1111-1111-111111111111"}};
138 {Targets[0]});
209 UUIDs uuids = {{Targets[0], "00000000-0000-0000-0000-000000000000"},
210 {Targets[1], "11111111-1111-1111-1111-111111111111"}};
221 File.addAllowableClient("ClientA", Targets[0]);
222 File.addParentUmbrella(Targets[0], "System");
223 File.addParentUmbrella(Targets[1], "System");
224 File.addSymbol(SymbolKind::GlobalSymbol, "_symA", {Targets[0]});
225 File.addSymbol(SymbolKind::GlobalSymbol, "_symB", {Targets[1]});
226 File.addSymbol(SymbolKind::GlobalSymbol, "_symC", {Targets[0]},
228 File.addSymbol(SymbolKind::ObjectiveCClass, "Class1", {Targets[0]});
unittests/Transforms/Utils/CloningTest.cpp 817 DIGlobalVariableExpression *GVExpr = GVs[0];
unittests/Transforms/Vectorize/VPlanDominatorTreeTest.cpp 51 VPBlockBase *IfThen = H->getSuccessors()[0];
52 VPBlockBase *IfElse = H->getSuccessors()[1];
54 VPBlockBase *Exit = Latch->getSuccessors()[0] != H
55 ? Latch->getSuccessors()[0]
56 : Latch->getSuccessors()[1];
unittests/Transforms/Vectorize/VPlanLoopInfoTest.cpp 53 VPBlockBase *IfThen = H->getSuccessors()[0];
54 VPBlockBase *IfElse = H->getSuccessors()[1];
56 VPBlockBase *Exit = Latch->getSuccessors()[0] != H
57 ? Latch->getSuccessors()[0]
58 : Latch->getSuccessors()[1];
unittests/Transforms/Vectorize/VPlanPredicatorTest.cpp 73 VPBlockBase *OuterIf = InnerLoopH->getSuccessors()[0];
74 VPBlockBase *InnerLoopLatch = InnerLoopH->getSuccessors()[1];
75 VPBlockBase *InnerIf = OuterIf->getSuccessors()[0];
167 VPBlockBase *InnerIfCmpBlk = OuterIfCmpBlk->getSuccessors()[0];
168 VPBlockBase *InnerIfTSucc = InnerIfCmpBlk->getSuccessors()[0];
169 VPBlockBase *InnerIfFSucc = InnerIfCmpBlk->getSuccessors()[1];
unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp 393 IT.getValueFor(IT.Instr.Variables[0]) = MCOperand::createReg(X86::AX);
408 Mov.getValueFor(Mov.Instr.Variables[0]) = MCOperand::createReg(X86::RAX);
409 Mov.getValueFor(Mov.Instr.Variables[1]) = MCOperand::createImm(42);
414 Add.getValueFor(Add.Instr.Variables[0]) = MCOperand::createReg(X86::RAX);
415 Add.getValueFor(Add.Instr.Variables[1]) = MCOperand::createReg(X86::RBX);
unittests/tools/llvm-exegesis/X86/TargetTest.cpp 363 EXPECT_THAT(IT.getValueFor(I.Operands[2]), IsReg(X86::RDI));
364 EXPECT_THAT(IT.getValueFor(I.Operands[3]), IsImm(1));
365 EXPECT_THAT(IT.getValueFor(I.Operands[4]), IsReg(0));
366 EXPECT_THAT(IT.getValueFor(I.Operands[5]), IsImm(kOffset));
367 EXPECT_THAT(IT.getValueFor(I.Operands[6]), IsReg(0));
376 EXPECT_THAT(IT.getValueFor(I.Operands[4]), IsReg(X86::RDI));
377 EXPECT_THAT(IT.getValueFor(I.Operands[5]), IsImm(1));
378 EXPECT_THAT(IT.getValueFor(I.Operands[6]), IsReg(0));
379 EXPECT_THAT(IT.getValueFor(I.Operands[7]), IsImm(kOffset));
380 EXPECT_THAT(IT.getValueFor(I.Operands[8]), IsReg(0));
utils/TableGen/AsmMatcherEmitter.cpp 928 assert(!AsmOperands[0].Token.empty());
930 Mnemonic = AsmOperands[0].Token;
937 } else if (AsmOperands[0].Token[0] != '$')
938 Mnemonic = AsmOperands[0].Token;
1452 const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
1575 MatchableInfo::AsmOperand &Op = II->AsmOperands[i];
1675 MatchableInfo::AsmOperand *Op = &II->AsmOperands[AsmOpIdx];
1699 Op = &II->AsmOperands[AsmOpIdx]; // update the pointer in case it moved
1772 ResOperands[TiedOp].Kind == ResOperand::RenderAsmOperand)
1774 TiedOp, ResOperands[TiedOp].AsmOperandNum, TiedSrcOperand));
1793 if (AsmOperands[SrcOperand].SubOpIdx == -1) {
1800 assert(AsmOperands[SrcOperand+AI].SubOpIdx == (int)AI &&
1801 AsmOperands[SrcOperand+AI].SrcOpName == OpInfo.Name &&
1836 if (ResOperands[TiedOp].Kind == ResOperand::RenderAsmOperand) {
1837 SrcOp1 = ResOperands[TiedOp].AsmOperandNum;
1840 StringRef Name = AsmOperands[SrcOp1].SrcOpName;
1860 SrcOp1 = ResOperands[TiedOp].AsmOperandNum;
2079 const MatchableInfo::ResOperand &OpInfo = II->ResOperands[i];
2086 II->AsmOperands[OpInfo.AsmOperandNum];
3341 FeatureBitsets.back().push_back(MI->RequiredFeatures[I]->TheDef);
3453 OS << '_' << MI->RequiredFeatures[i]->TheDef->getName();
3457 const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
utils/TableGen/AsmWriterEmitter.cpp 505 std::string &AsmName = AsmNames[i++];
547 O << StringTable.get(AsmNames[i]) << ", ";
utils/TableGen/CodeGenDAGPatterns.cpp 208 OS << ValueTypeByHwMode::getMVTName(Types[i]);
1409 Check += '(' + PredList[i]->getCondString() + ')';
2970 TreePatternNode *N1 = Nodes[i], *N2 = Nodes[i+1];
2970 TreePatternNode *N1 = Nodes[i], *N2 = Nodes[i+1];
3753 assert(ResNodes[i]->getNumTypes() == 1 && "FIXME: Unhandled");
3754 ResultPattern->setType(i, ResNodes[i]->getExtType(0));
utils/TableGen/CodeGenRegisters.cpp 277 CodeGenRegister *SR = ExplicitSubRegs[i];
278 CodeGenSubRegIndex *Idx = ExplicitSubRegIndices[i];
310 CodeGenSubRegIndex *Idx = Indices[i];
390 CodeGenRegister *SR = ExplicitSubRegs[i];
398 CodeGenSubRegIndex &I = *SR->ExplicitSubRegIndices[j];
400 Parts.push_back(getSubRegIndex(SR->ExplicitSubRegs[j]));
404 CodeGenSubRegIndex &Idx = *ExplicitSubRegIndices[i];
414 CodeGenRegister *SR = ExplicitSubRegs[i];
428 CodeGenRegister *AR = ExplicitAliases[i];
495 assert(Cand->ExplicitSubRegs[0] == SubReg && "LeadingSuperRegs correct");
533 CodeGenSubRegIndex *NewIdx = NewSubRegs[i].first;
534 CodeGenRegister *NewSubReg = NewSubRegs[i].second;
632 ST.evaluate(SubRegs->getElement(i), Lists[i], Def->getLoc());
633 Length = std::min(Length, unsigned(Lists[i].size()));
648 Record *Proto = Lists[0][n];
652 Record *Reg = Lists[i][n];
795 assert((RSI.hasDefault() || Size != 0 || VTs[0].isSimple()) &&
800 : VTs[0].getSimple().getSizeInBits();
857 if (contains(RegBank.getReg(Super.Orders[i][j])))
858 Orders[i].push_back(Super.Orders[i][j]);
1510 LaneTransforms[0].Mask = LaneBitmask::getAll();
1839 unsigned UnitWeight = RegUnits[SubSet.Units[0]].Weight;
1843 && UnitWeight == RegUnits[SuperSet.Units[0]].Weight
1844 && UnitWeight == RegUnits[SuperSet.Units.back()].Weight) {
2032 RegUnits[UnitIdx].RegClassUnitSetsIdx = RCUnitSetsIdx;
2066 RegUnitLaneMasks[u] |= LaneMask;
2259 if (SubRC.contains(SSPairs[i].second))
2260 SubSetVec.push_back(SSPairs[i].first);
utils/TableGen/CodeGenRegisters.h 697 RegUnit &getRegUnit(unsigned RUID) { return RegUnits[RUID]; }
utils/TableGen/CodeGenSchedule.cpp 1467 if (ProcIndices[0] && Variant.ProcIdx) {
1536 RWSequences[OperIdx]);
1548 RWSequences[OperIdx].insert(RWSequences[OperIdx].end(),
1548 RWSequences[OperIdx].insert(RWSequences[OperIdx].end(),
utils/TableGen/CodeGenTarget.cpp 498 NewBits[bit] = BitSwap;
499 NewBits[bitSwapIdx] = OrigBit;
503 NewBits[middle] = BI->getBit(middle);
utils/TableGen/DAGISelMatcher.h 193 Matcher *getChild(unsigned i) { return Children[i]; }
197 delete Children[i];
198 Children[i] = N;
202 Matcher *Res = Children[i];
203 Children[i] = nullptr;
211 delete Children[i];
481 Matcher *getCaseMatcher(unsigned i) { return Cases[i].second; }
531 Matcher *getCaseMatcher(unsigned i) { return Cases[i].second; }
utils/TableGen/DAGISelMatcherGen.cpp 550 AddMatcher(new CheckTypeMatcher(N->getSimpleType(ResultsToTypeCheck[i]),
551 ResultsToTypeCheck[i]));
587 auto N = MatchedComplexPatterns[i].first;
601 unsigned RecNodeEntry = MatchedComplexPatterns[i].second;
872 CGP.getTargetInfo().getRegBank().getReg(PhysRegInputs[i].first);
873 AddMatcher(new EmitCopyToRegMatcher(PhysRegInputs[i].second,
967 if (ResultVTs[i] == MVT::Other || ResultVTs[i] == MVT::Glue) break;
967 if (ResultVTs[i] == MVT::Other || ResultVTs[i] == MVT::Glue) break;
989 AddMatcher(new EmitNodeXFormMatcher(InputOps[0], N->getOperator()));
1056 Results[ResNo] = Ops[Pattern.getDstPattern()->getResultIndex(ResNo)];
1056 Results[ResNo] = Ops[Pattern.getDstPattern()->getResultIndex(ResNo)];
utils/TableGen/DAGISelMatcherOpt.cpp 229 Matcher *Optn = OptionsToMatch[OptionIdx++];
245 while (OptionIdx != e && OptionsToMatch[OptionIdx]->isEqual(Optn))
246 EqualMatchers.push_back(OptionsToMatch[OptionIdx++]);
257 Matcher *ScanMatcher = OptionsToMatch[Scan];
287 OptionsToMatch[Scan] = M2;
301 OptionsToMatch[Scan]->print(errs(), 4);
302 if (Scan + 1 != e) OptionsToMatch[Scan + 1]->printOne(errs());
303 if (Scan + 2 < e) OptionsToMatch[Scan + 2]->printOne(errs());
310 NewOptionsToMatch.push_back(EqualMatchers[0]);
318 EqualMatchers[0] = Optn;
322 Matcher *Tmp = EqualMatchers[i]->takeNext();
323 delete EqualMatchers[i];
324 EqualMatchers[i] = Tmp;
338 MatcherPtr.reset(NewOptionsToMatch[0]);
356 !isa<CheckOpcodeMatcher>(NewOptionsToMatch[i])) {
369 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i],
379 !CTM->canMoveBefore(NewOptionsToMatch[i])) {
396 CheckOpcodeMatcher *COM = cast<CheckOpcodeMatcher>(NewOptionsToMatch[i]);
412 Matcher* M = FindNodeWithKind(NewOptionsToMatch[i], Matcher::CheckType);
416 Matcher *MatcherWithoutCTM = NewOptionsToMatch[i]->unlinkNode(CTM);
423 Matcher *PrevMatcher = Cases[Entry-1].second;
431 Cases[Entry-1].second = new ScopeMatcher(Entries);
453 MatcherPtr.reset(new CheckTypeMatcher(Cases[0].first, 0));
454 MatcherPtr->setNext(Cases[0].second);
463 Scope->resetChild(i, NewOptionsToMatch[i]);
utils/TableGen/FastISelEmitter.cpp 161 if (!Operands[i].isImm()) continue;
163 unsigned Code = Operands[i].getImmCode();
utils/TableGen/FixedLenDecoderEmitter.cpp 1281 TableInfo.Table.push_back(PBytes[i]);
1338 TableInfo.Table.push_back(MaskBytes[i]);
1345 TableInfo.Table.push_back(MaskBytes[i]);
1419 TableInfo.Table.push_back(Bytes[i]);
utils/TableGen/IntrinsicEmitter.cpp 406 Mapping[OriginalIdx] = ArgCodes.size();
utils/TableGen/RegisterInfoEmitter.cpp 676 CodeGenSubRegIndex *&Entry = Vec[I.first->EnumValue - 1];
683 auto *&Entry = Vec[I.first->EnumValue - 1];
715 if (combine(&Idx, Rows[r])) {
734 OS << RowMap[i] << ", ";
744 if (Rows[r][i])
744 if (Rows[r][i])
745 OS << Rows[r][i]->getQualifiedName() << ", ";
745 OS << Rows[r][i]->getQualifiedName() << ", ";
779 SmallVectorImpl<MaskRolPair> &Sequence = Sequences[s];
801 const SmallVectorImpl<MaskRolPair> &Sequence = Sequences[s];
817 unsigned Idx = SubReg2SequenceIndexMap[i];
905 diffEncode(SubRegLists[i], Reg.EnumValue, SR.begin(), SR.end());
906 DiffSeqs.add(SubRegLists[i]);
909 SubRegIdxVec &SRIs = SubRegIdxLists[i];
916 diffEncode(SuperRegLists[i], Reg.EnumValue, SuperRegList.begin(),
918 DiffSeqs.add(SuperRegLists[i]);
943 RegUnitInitScale[i] = Scale;
944 DiffSeqs.add(diffEncode(RegUnitLists[i], Scale * Reg.EnumValue, RUs));
947 MaskVec &LaneMaskVec = RegUnitLaneMasks[i];
1007 << DiffSeqs.get(SubRegLists[i]) << ", " << DiffSeqs.get(SuperRegLists[i])
1007 << DiffSeqs.get(SubRegLists[i]) << ", " << DiffSeqs.get(SuperRegLists[i])
1008 << ", " << SubRegIdxSeqs.get(SubRegIdxLists[i]) << ", "
1009 << (DiffSeqs.get(RegUnitLists[i]) * 16 + RegUnitInitScale[i]) << ", "
1009 << (DiffSeqs.get(RegUnitLists[i]) * 16 + RegUnitInitScale[i]) << ", "
1010 << LaneMaskSeqs.get(RegUnitLaneMasks[i]) << " },\n";
1328 IdxList &SRIList = SuperRegIdxLists[RC.EnumValue];
1404 << SuperRegIdxSeqs.get(SuperRegIdxLists[RC.EnumValue]) << ",\n ";
utils/TableGen/SearchableTableEmitter.cpp 557 if (EarlyOut && isa<StringRecTy>(Index->Fields[0].RecType)) {
utils/TableGen/X86DisassemblerTables.cpp 852 const char *Encoding = stringForOperandEncoding(OperandList[i].first);
853 const char *Type = stringForOperandType(OperandList[i].second);