Lines Matching refs:PS

167   Optional<PredState> PS;  member in __anon72cb81e60111::X86SpeculativeLoadHardeningPass
416 PS.emplace(MF, &X86::GR64_NOSPRegClass); in runOnMachineFunction()
448 PS->PoisonReg = MRI->createVirtualRegister(PS->RC); in runOnMachineFunction()
449 BuildMI(Entry, EntryInsertPt, Loc, TII->get(X86::MOV64ri32), PS->PoisonReg) in runOnMachineFunction()
477 PS->InitialReg = extractPredStateFromSP(Entry, EntryInsertPt, Loc); in runOnMachineFunction()
481 PS->InitialReg = MRI->createVirtualRegister(PS->RC); in runOnMachineFunction()
492 PS->InitialReg) in runOnMachineFunction()
505 PS->SSA.Initialize(PS->InitialReg); in runOnMachineFunction()
506 PS->SSA.AddAvailableValue(&Entry, PS->InitialReg); in runOnMachineFunction()
525 PS->SSA.AddAvailableValue( in runOnMachineFunction()
550 if (!Op.isReg() || Op.getReg() != PS->InitialReg) in runOnMachineFunction()
553 PS->SSA.RewriteUse(Op); in runOnMachineFunction()
749 unsigned CurStateReg = PS->InitialReg; in tracePredStateThroughCFG()
752 int PredStateSizeInBytes = TRI->getRegSizeInBits(*PS->RC) / 8; in tracePredStateThroughCFG()
755 Register UpdatedStateReg = MRI->createVirtualRegister(PS->RC); in tracePredStateThroughCFG()
761 .addReg(PS->PoisonReg) in tracePredStateThroughCFG()
774 if (CurStateReg == PS->InitialReg) in tracePredStateThroughCFG()
783 PS->SSA.AddAvailableValue(&CheckingMBB, CurStateReg); in tracePredStateThroughCFG()
1181 int PredStateSizeInBytes = TRI->getRegSizeInBits(*PS->RC) / 8; in tracePredStateThroughIndirectBranches()
1183 Register UpdatedStateReg = MRI->createVirtualRegister(PS->RC); in tracePredStateThroughIndirectBranches()
1186 .addReg(PS->InitialReg) in tracePredStateThroughIndirectBranches()
1187 .addReg(PS->PoisonReg) in tracePredStateThroughIndirectBranches()
1196 PS->SSA.AddAvailableValue(&MBB, UpdatedStateReg); in tracePredStateThroughIndirectBranches()
1534 Register TmpReg = MRI->createVirtualRegister(PS->RC); in mergePredStateIntoSP()
1554 Register PredStateReg = MRI->createVirtualRegister(PS->RC); in extractPredStateFromSP()
1555 Register TmpReg = MRI->createVirtualRegister(PS->RC); in extractPredStateFromSP()
1565 .addImm(TRI->getRegSizeInBits(*PS->RC) - 1); in extractPredStateFromSP()
1646 Register StateReg = PS->SSA.GetValueAtEndOfBlock(&MBB); in hardenLoadAddr()
1917 Register StateReg = PS->SSA.GetValueAtEndOfBlock(&MBB); in hardenValueInRegister()
2024 mergePredStateIntoSP(MBB, InsertPt, Loc, PS->SSA.GetValueAtEndOfBlock(&MBB)); in hardenReturnInstr()
2082 Register StateReg = PS->SSA.GetValueAtEndOfBlock(&MBB); in tracePredStateThroughCall()
2187 int PredStateSizeInBytes = TRI->getRegSizeInBits(*PS->RC) / 8; in tracePredStateThroughCall()
2190 Register UpdatedStateReg = MRI->createVirtualRegister(PS->RC); in tracePredStateThroughCall()
2193 .addReg(PS->PoisonReg) in tracePredStateThroughCall()
2199 PS->SSA.AddAvailableValue(&MBB, UpdatedStateReg); in tracePredStateThroughCall()