Home
last modified time | relevance | path

Searched refs:LVI (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp97 static Constant *getConstantAt(Value *V, Instruction *At, LazyValueInfo *LVI) { in getConstantAt() argument
98 if (Constant *C = LVI->getConstant(V, At)) in getConstantAt()
112 return LVI->getPredicateAt(C->getPredicate(), Op0, Op1, At, in getConstantAt()
116 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect() argument
125 C = LVI->getConstantOnEdge(S->getCondition(), PN->getIncomingBlock(U), in processSelect()
128 C = getConstantAt(S->getCondition(), I, LVI); in processSelect()
156 static bool simplifyCommonValuePhi(PHINode *P, LazyValueInfo *LVI, in simplifyCommonValuePhi() argument
189 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
207 static Value *getValueOnEdge(LazyValueInfo *LVI, Value *Incoming, in getValueOnEdge() argument
210 if (Constant *C = LVI->getConstantOnEdge(Incoming, From, To, CxtI)) in getValueOnEdge()
[all …]
H A DJumpThreading.cpp245 auto &LVI = AM.getResult<LazyValueAnalysis>(F); in run() local
250 runImpl(F, &AM, &TLI, &TTI, &LVI, &AA, in run()
294 LVI = LVI_; in runImpl()
353 LVI->eraseBlock(&BB); in runImpl()
374 LVI->eraseBlock(&BB); in runImpl()
591 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in computeValueKnownInPredecessorsImpl()
600 PredCst = LVI->getPredicateOnEdge(Pred, Val, Cst, P, BB, CxtI); in computeValueKnownInPredecessorsImpl()
615 Constant *CI = LVI->getConstantOnEdge(InVal, in computeValueKnownInPredecessorsImpl()
780 Res = LVI->getPredicateOnEdge(Pred, LHS, cast<Constant>(RHS), PredBB, in computeValueKnownInPredecessorsImpl()
801 Constant *Res = LVI->getPredicateOnEdge(Pred, CmpLHS, CmpConst, P, BB, in computeValueKnownInPredecessorsImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSplitKit.cpp206 LiveInterval::const_iterator LVI = CurLI->begin(); in calcLiveBlockInfo() local
215 LIS.getMBBFromIndex(LVI->start)->getIterator(); in calcLiveBlockInfo()
230 assert(LVI->end >= Stop && "range ends mid block with no uses"); in calcLiveBlockInfo()
241 BI.LiveIn = LVI->start <= Start; in calcLiveBlockInfo()
245 assert(LVI->start == LVI->valno->def && "Dangling Segment start"); in calcLiveBlockInfo()
246 assert(LVI->start == BI.FirstInstr && "First instr should be a def"); in calcLiveBlockInfo()
252 while (LVI->end < Stop) { in calcLiveBlockInfo()
253 SlotIndex LastStop = LVI->end; in calcLiveBlockInfo()
254 if (++LVI == LVE || LVI->start >= Stop) { in calcLiveBlockInfo()
260 if (LastStop < LVI->start) { in calcLiveBlockInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp353 AssumptionCache *AC, LazyValueInfo *LVI) { in ProcessSwitchInst() argument
416 LVI->getConstantRange(Val, SI, /*UndefAllowed*/ false); in ProcessSwitchInst()
537 bool LowerSwitch(Function &F, LazyValueInfo *LVI, AssumptionCache *AC) { in LowerSwitch() argument
550 ProcessSwitchInst(SI, DeleteList, AC, LVI); in LowerSwitch()
555 LVI->eraseBlock(BB); in LowerSwitch()
599 LazyValueInfo *LVI = &getAnalysis<LazyValueInfoWrapperPass>().getLVI(); in runOnFunction() local
602 return LowerSwitch(F, LVI, AC); in runOnFunction()
607 LazyValueInfo *LVI = &AM.getResult<LazyValueAnalysis>(F); in run() local
609 return LowerSwitch(F, LVI, AC) ? PreservedAnalyses::none() in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h84 LazyValueInfo *LVI = nullptr; variable
106 LazyValueInfo *LVI, AAResults *AA,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp2057 auto &LVI = AM.getResult<LazyValueAnalysis>(F); in run() local
2059 LVI.printLVI(F, DTree, OS); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86.td409 // Mitigate LVI attacks against indirect calls/branches and call returns
424 "and conditional branches. Implies LVI Control Flow integrity.",
427 // Mitigate LVI attacks against data loads
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp9033 LazyValueInfo *LVI = in getConstantRangeFromLVI() local
9037 if (!LVI || !CtxI) in getConstantRangeFromLVI()
9039 return LVI->getConstantRange(&getAssociatedValue(), in getConstantRangeFromLVI()
/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DOptions.td4817 HelpText<"Enable all mitigations for Load Value Injection (LVI)">;
4820 HelpText<"Disable mitigations for Load Value Injection (LVI)">;
4823 HelpText<"Enable only control-flow mitigations for Load Value Injection (LVI)">;
4826 HelpText<"Disable control-flow mitigations for Load Value Injection (LVI)">;
4830 "Includes LVI control flow integrity mitigations">;