40 using namespace llvm::PatternMatch;
42 #define DEBUG_TYPE "early-cse"
44 STATISTIC(NumSimplify,
"Number of instructions simplified or DCE'd");
45 STATISTIC(NumCSE,
"Number of instructions CSE'd");
46 STATISTIC(NumCSECVP,
"Number of compare instructions CVP'd");
47 STATISTIC(NumCSELoad,
"Number of load instructions CSE'd");
48 STATISTIC(NumCSECall,
"Number of call instructions CSE'd");
49 STATISTIC(NumDSE,
"Number of trivial dead stores removed");
61 assert((isSentinel() || canHandle(I)) &&
"Inst can't be handled!");
64 bool isSentinel()
const {
71 if (
CallInst *CI = dyn_cast<CallInst>(Inst))
72 return CI->doesNotAccessMemory() && !CI->getType()->isVoidTy();
73 return isa<CastInst>(Inst) || isa<BinaryOperator>(Inst) ||
74 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) ||
75 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) ||
76 isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst) ||
77 isa<ExtractValueInst>(Inst) || isa<InsertValueInst>(Inst);
90 static unsigned getHashValue(SimpleValue Val);
91 static bool isEqual(SimpleValue LHS, SimpleValue RHS);
99 Value *LHS = BinOp->getOperand(0);
100 Value *RHS = BinOp->getOperand(1);
101 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1))
107 if (
CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
108 Value *LHS = CI->getOperand(0);
109 Value *RHS = CI->getOperand(1);
113 Pred = CI->getSwappedPredicate();
118 if (
CastInst *CI = dyn_cast<CastInst>(Inst))
119 return hash_combine(CI->getOpcode(), CI->getType(), CI->getOperand(0));
122 return hash_combine(EVI->getOpcode(), EVI->getOperand(0),
126 return hash_combine(IVI->getOpcode(), IVI->getOperand(0),
130 assert((isa<CallInst>(Inst) || isa<BinaryOperator>(Inst) ||
131 isa<GetElementPtrInst>(Inst) || isa<SelectInst>(Inst) ||
132 isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) ||
133 isa<ShuffleVectorInst>(Inst)) &&
134 "Invalid/unknown instruction");
145 if (LHS.isSentinel() || RHS.isSentinel())
148 if (LHSI->
getOpcode() != RHSI->getOpcode())
155 if (!LHSBinOp->isCommutative())
158 assert(isa<BinaryOperator>(RHSI) &&
159 "same opcode, but different instruction type?");
164 LHSBinOp->getOperand(1) == RHSBinOp->
getOperand(0);
166 if (
CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) {
167 assert(isa<CmpInst>(RHSI) &&
168 "same opcode, but different instruction type?");
169 CmpInst *RHSCmp = cast<CmpInst>(RHSI);
172 LHSCmp->getOperand(1) == RHSCmp->
getOperand(0) &&
173 LHSCmp->getSwappedPredicate() == RHSCmp->
getPredicate();
190 assert((isSentinel() || canHandle(I)) &&
"Inst can't be handled!");
193 bool isSentinel()
const {
219 static unsigned getHashValue(CallValue Val);
220 static bool isEqual(CallValue LHS, CallValue RHS);
234 if (LHS.isSentinel() || RHS.isSentinel())
259 std::unique_ptr<MemorySSAUpdater> MSSAUpdater;
263 AllocatorTy> ScopedHTType;
271 ScopedHTType AvailableValues;
294 : DefInst(nullptr), Generation(0), MatchingId(-1), IsAtomic(
false),
295 IsInvariant(
false) {}
296 LoadValue(
Instruction *Inst,
unsigned Generation,
unsigned MatchingId,
297 bool IsAtomic,
bool IsInvariant)
298 : DefInst(Inst), Generation(Generation), MatchingId(MatchingId),
299 IsAtomic(IsAtomic), IsInvariant(IsInvariant) {}
305 LoadMapAllocator> LoadHTType;
306 LoadHTType AvailableLoads;
314 CallHTType AvailableCalls;
317 unsigned CurrentGeneration;
323 : TLI(TLI), TTI(TTI), DT(DT), AC(AC), SQ(DL, &TLI, &DT, &AC), MSSA(MSSA),
335 NodeScope(ScopedHTType &AvailableValues, LoadHTType &AvailableLoads,
336 CallHTType &AvailableCalls)
337 : Scope(AvailableValues), LoadScope(AvailableLoads),
338 CallScope(AvailableCalls) {}
341 NodeScope(
const NodeScope &) =
delete;
342 void operator=(
const NodeScope &) =
delete;
344 ScopedHTType::ScopeTy Scope;
345 LoadHTType::ScopeTy LoadScope;
346 CallHTType::ScopeTy CallScope;
355 StackNode(ScopedHTType &AvailableValues, LoadHTType &AvailableLoads,
356 CallHTType &AvailableCalls,
unsigned cg,
DomTreeNode *n,
358 : CurrentGeneration(cg), ChildGeneration(cg), Node(n), ChildIter(child),
359 EndIter(end), Scopes(AvailableValues, AvailableLoads, AvailableCalls),
363 unsigned currentGeneration() {
return CurrentGeneration; }
364 unsigned childGeneration() {
return ChildGeneration; }
374 bool isProcessed() {
return Processed; }
375 void process() { Processed =
true; }
378 StackNode(
const StackNode &) =
delete;
379 void operator=(
const StackNode &) =
delete;
382 unsigned CurrentGeneration;
383 unsigned ChildGeneration;
393 class ParseMemoryInst {
396 : IsTargetMemInst(
false), Inst(Inst) {
399 IsTargetMemInst =
true;
401 bool isLoad()
const {
402 if (IsTargetMemInst)
return Info.ReadMem;
403 return isa<LoadInst>(Inst);
405 bool isStore()
const {
406 if (IsTargetMemInst)
return Info.WriteMem;
407 return isa<StoreInst>(Inst);
414 bool isUnordered()
const {
416 return Info.isUnordered();
418 if (
LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
419 return LI->isUnordered();
420 }
else if (
StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
421 return SI->isUnordered();
429 return Info.IsVolatile;
431 if (
LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
432 return LI->isVolatile();
433 }
else if (
StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
434 return SI->isVolatile();
440 bool isInvariantLoad()
const {
441 if (
auto *LI = dyn_cast<LoadInst>(Inst))
446 bool isMatchingMemLoc(
const ParseMemoryInst &Inst)
const {
448 getMatchingId() == Inst.getMatchingId());
456 int getMatchingId()
const {
457 if (IsTargetMemInst)
return Info.MatchingId;
461 if (IsTargetMemInst)
return Info.PtrVal;
462 if (
LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
463 return LI->getPointerOperand();
464 }
else if (
StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
465 return SI->getPointerOperand();
469 bool mayReadFromMemory()
const {
470 if (IsTargetMemInst)
return Info.ReadMem;
471 return Inst->mayReadFromMemory();
473 bool mayWriteToMemory()
const {
474 if (IsTargetMemInst)
return Info.WriteMem;
475 return Inst->mayWriteToMemory();
479 bool IsTargetMemInst;
487 if (
auto *LI = dyn_cast<LoadInst>(Inst))
489 if (
auto *SI = dyn_cast<StoreInst>(Inst))
490 return SI->getValueOperand();
491 assert(isa<IntrinsicInst>(Inst) &&
"Instruction not supported");
496 bool isSameMemGeneration(
unsigned EarlierGeneration,
unsigned LaterGeneration,
516 for (
unsigned I = 0; I < WorkQueue.
size(); ++
I) {
519 for (
auto *U : WI->
users())
520 if (
MemoryPhi *MP = dyn_cast<MemoryPhi>(U))
523 MSSAUpdater->removeMemoryAccess(WI);
527 if (
all_of(MP->incoming_values(),
528 [=](
Use &
In) {
return In == FirstIn; }))
554 bool EarlyCSE::isSameMemGeneration(
unsigned EarlierGeneration,
555 unsigned LaterGeneration,
559 if (EarlierGeneration == LaterGeneration)
572 auto *EarlierMA = MSSA->getMemoryAccess(EarlierInst);
575 auto *LaterMA = MSSA->getMemoryAccess(LaterInst);
584 MSSA->getWalker()->getClobberingMemoryAccess(LaterInst);
585 return MSSA->dominates(LaterDef, EarlierMA);
589 bool Changed =
false;
609 if (BI && BI->isConditional()) {
611 if (CondInst && SimpleValue::canHandle(CondInst)) {
612 assert(BI->getSuccessor(0) == BB || BI->getSuccessor(1) == BB);
613 auto *TorF = (BI->getSuccessor(0) == BB)
616 AvailableValues.insert(CondInst, TorF);
617 DEBUG(
dbgs() <<
"EarlyCSE CVP: Add conditional value for '"
618 << CondInst->getName() <<
"' as " << *TorF <<
" in "
643 DEBUG(
dbgs() <<
"EarlyCSE DCE: " << *Inst <<
'\n');
655 if (
match(Inst, m_Intrinsic<Intrinsic::assume>())) {
658 if (CondI && SimpleValue::canHandle(CondI)) {
659 DEBUG(
dbgs() <<
"EarlyCSE considering assumption: " << *Inst <<
'\n');
662 DEBUG(
dbgs() <<
"EarlyCSE skipping assumption: " << *Inst <<
'\n');
676 if (
match(Inst, m_Intrinsic<Intrinsic::invariant_start>()))
679 if (
match(Inst, m_Intrinsic<Intrinsic::experimental_guard>())) {
681 dyn_cast<Instruction>(cast<CallInst>(Inst)->getArgOperand(0))) {
682 if (SimpleValue::canHandle(CondI)) {
684 if (
auto *KnownCond = AvailableValues.lookup(CondI)) {
686 if (isa<ConstantInt>(KnownCond) &&
687 cast<ConstantInt>(KnownCond)->isOne()) {
688 DEBUG(
dbgs() <<
"EarlyCSE removing guard: " << *Inst <<
'\n');
695 cast<CallInst>(Inst)->setArgOperand(0, KnownCond);
713 DEBUG(
dbgs() <<
"EarlyCSE Simplify: " << *Inst <<
" to: " << *V <<
'\n');
732 if (SimpleValue::canHandle(Inst)) {
734 if (
Value *V = AvailableValues.lookup(Inst)) {
735 DEBUG(
dbgs() <<
"EarlyCSE CSE: " << *Inst <<
" to: " << *V <<
'\n');
736 if (
auto *I = dyn_cast<Instruction>(V))
747 AvailableValues.insert(Inst, Inst);
751 ParseMemoryInst MemInst(Inst, TTI);
753 if (MemInst.isValid() && MemInst.isLoad()) {
756 if (MemInst.isVolatile() || !MemInst.isUnordered()) {
768 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand());
769 if (InVal.DefInst !=
nullptr &&
770 InVal.MatchingId == MemInst.getMatchingId() &&
772 !MemInst.isVolatile() && MemInst.isUnordered() &&
774 InVal.IsAtomic >= MemInst.isAtomic() &&
775 (InVal.IsInvariant || MemInst.isInvariantLoad() ||
776 isSameMemGeneration(InVal.Generation, CurrentGeneration,
777 InVal.DefInst, Inst))) {
780 DEBUG(
dbgs() <<
"EarlyCSE CSE LOAD: " << *Inst
781 <<
" to: " << *InVal.DefInst <<
'\n');
793 AvailableLoads.insert(
794 MemInst.getPointerOperand(),
795 LoadValue(Inst, CurrentGeneration, MemInst.getMatchingId(),
796 MemInst.
isAtomic(), MemInst.isInvariantLoad()));
808 !(MemInst.isValid() && !MemInst.mayReadFromMemory()))
812 if (CallValue::canHandle(Inst)) {
815 std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(Inst);
816 if (InVal.first !=
nullptr &&
817 isSameMemGeneration(InVal.second, CurrentGeneration, InVal.first,
819 DEBUG(
dbgs() <<
"EarlyCSE CSE CALL: " << *Inst
820 <<
" to: " << *InVal.first <<
'\n');
831 AvailableCalls.insert(
832 Inst, std::pair<Instruction *, unsigned>(Inst, CurrentGeneration));
841 if (
FenceInst *FI = dyn_cast<FenceInst>(Inst))
852 if (MemInst.isValid() && MemInst.isStore()) {
853 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand());
855 InVal.DefInst == getOrCreateResult(Inst, InVal.DefInst->getType()) &&
856 InVal.MatchingId == MemInst.getMatchingId() &&
858 !MemInst.isVolatile() && MemInst.isUnordered() &&
859 isSameMemGeneration(InVal.Generation, CurrentGeneration,
860 InVal.DefInst, Inst)) {
867 MemInst.getPointerOperand() ||
869 "can't have an intervening store if not using MemorySSA!");
870 DEBUG(
dbgs() <<
"EarlyCSE DSE (writeback): " << *Inst <<
'\n');
887 if (MemInst.isValid() && MemInst.isStore()) {
896 ParseMemoryInst LastStoreMemInst(LastStore, TTI);
897 assert(LastStoreMemInst.isUnordered() &&
898 !LastStoreMemInst.isVolatile() &&
899 "Violated invariant");
900 if (LastStoreMemInst.isMatchingMemLoc(MemInst)) {
901 DEBUG(
dbgs() <<
"EarlyCSE DEAD STORE: " << *LastStore
902 <<
" due to: " << *Inst <<
'\n');
903 removeMSSA(LastStore);
917 AvailableLoads.insert(
918 MemInst.getPointerOperand(),
919 LoadValue(Inst, CurrentGeneration, MemInst.getMatchingId(),
929 if (MemInst.isUnordered() && !MemInst.isVolatile())
940 bool EarlyCSE::run() {
946 std::deque<StackNode *> nodesToProcess;
948 bool Changed =
false;
951 nodesToProcess.push_back(
new StackNode(
952 AvailableValues, AvailableLoads, AvailableCalls, CurrentGeneration,
953 DT.getRootNode(), DT.getRootNode()->begin(), DT.getRootNode()->end()));
956 unsigned LiveOutGeneration = CurrentGeneration;
959 while (!nodesToProcess.empty()) {
962 StackNode *NodeToProcess = nodesToProcess.back();
965 CurrentGeneration = NodeToProcess->currentGeneration();
968 if (!NodeToProcess->isProcessed()) {
970 Changed |= processNode(NodeToProcess->node());
971 NodeToProcess->childGeneration(CurrentGeneration);
972 NodeToProcess->process();
973 }
else if (NodeToProcess->childIter() != NodeToProcess->end()) {
976 nodesToProcess.push_back(
977 new StackNode(AvailableValues, AvailableLoads, AvailableCalls,
978 NodeToProcess->childGeneration(), child, child->
begin(),
983 delete NodeToProcess;
984 nodesToProcess.pop_back();
989 CurrentGeneration = LiveOutGeneration;
1024 template<
bool UseMemorySSA>
1036 bool runOnFunction(
Function &
F)
override {
1037 if (skipFunction(F))
1040 auto &TLI = getAnalysis<TargetLibraryInfoWrapperPass>().getTLI();
1041 auto &TTI = getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F);
1042 auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
1043 auto &AC = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
1045 UseMemorySSA ? &getAnalysis<MemorySSAWrapperPass>().getMSSA() : nullptr;
1080 using EarlyCSEMemSSALegacyPass =
1081 EarlyCSELegacyCommonPass<
true>;
1084 char EarlyCSEMemSSALegacyPass::
ID = 0;
1088 return new EarlyCSEMemSSALegacyPass();
1094 "Early CSE w/ MemorySSA",
false,
false)
Legacy wrapper pass to provide the GlobalsAAResult object.
void initializeEarlyCSELegacyPassPass(PassRegistry &)
SymbolTableList< Instruction >::iterator eraseFromParent()
This method unlinks 'this' from the containing basic block and deletes it.
void push_back(const T &Elt)
A parsed version of the target data layout string in and methods for querying it. ...
const_iterator end(StringRef path)
Get end iterator over path.
static ConstantInt * getFalse(LLVMContext &Context)
static SimpleValue getTombstoneKey()
This class is the base class for the comparison instructions.
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
STATISTIC(NumFunctions,"Total number of functions")
This is the interface for a simple mod/ref and alias analysis over globals.
An instruction for ordering other memory operations.
value_op_iterator value_op_begin()
This class represents a function call, abstracting a target machine's calling convention.
An immutable pass that tracks lazily created AssumptionCache objects.
A cache of .assume calls within a function.
Analysis pass providing the TargetTransformInfo.
static CallValue getTombstoneKey()
value_op_iterator value_op_end()
bool all_of(R &&range, UnaryPredicate P)
Provide wrappers to std::all_of which take ranges instead of having to pass begin/end explicitly...
Analysis pass which computes a DominatorTree.
An instruction for reading from memory.
unsigned replaceDominatedUsesWith(Value *From, Value *To, DominatorTree &DT, const BasicBlockEdge &Edge)
Replace each use of 'From' with 'To' if that use is dominated by the given edge.
INITIALIZE_PASS_BEGIN(EarlyCSELegacyPass,"early-cse","Early CSE", false, false) using EarlyCSEMemSSALegacyPass
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Run the pass over the function.
StringRef getName() const
Return a constant reference to the value's name.
iterator begin()
Instruction iterator methods.
bool onlyReadsMemory() const
Determine if the call does not access or only reads memory.
bool match(Val *V, const Pattern &P)
AnalysisUsage & addRequired()
#define INITIALIZE_PASS_DEPENDENCY(depName)
Legacy analysis pass which computes MemorySSA.
static Value * getPointerOperand(Instruction &Inst)
bool isIdenticalTo(const Instruction *I) const
Return true if the specified instruction is exactly identical to the current one. ...
This is the base class for all instructions that perform data casts.
early cse Early CSE w false
A Use represents the edge between a Value definition and its users.
separate const offset from Split GEPs to a variadic base and a constant offset for better CSE
Encapsulates MemorySSA, including all data associated with memory accesses.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs...ExtraArgs)
Get the result of an analysis pass for a given IR unit.
static CallValue getEmptyKey()
RecyclingAllocator - This class wraps an Allocator, adding the functionality of recycling deleted obj...
static void cse(BasicBlock *BB)
Perform cse of induction variable instructions.
bool insert(const value_type &X)
Insert a new element into the SetVector.
bool mayReadFromMemory() const
Return true if this instruction may read memory.
static bool isEqual(const Function &Caller, const Function &Callee)
This file provides the interface for a simple, fast CSE pass.
void andIRFlags(const Value *V)
Logical 'and' of any supported wrapping, exact, and fast-math flags of V and this instruction...
Base class for the actual dominator tree node.
An instruction for storing to memory.
void replaceAllUsesWith(Value *V)
Change all uses of this to point to a new Value.
Optimize for code generation
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
bool isAtomic() const
Return true if this instruction has an AtomicOrdering of unordered or higher.
BumpPtrAllocatorImpl BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
A set of analyses that are preserved following a run of a transformation pass.
bool isIdenticalToWhenDefined(const Instruction *I) const
This is like isIdenticalTo, except that it ignores the SubclassOptionalData flags, which may specify conditions under which the instruction's result is undefined.
std::enable_if<!std::is_array< T >::value, std::unique_ptr< T > >::type make_unique(Args &&...args)
Constructs a new T() with the given args and returns a unique_ptr<T> which owns the object...
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
Conditional or Unconditional Branch instruction.
static SimpleValue getEmptyKey()
Represent the analysis usage information of a pass.
Analysis pass providing a never-invalidated alias analysis result.
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE,"Assign register bank of generic virtual registers", false, false) RegBankSelect
FunctionPass class - This class is used to implement most global optimizations.
Value * getOperand(unsigned i) const
Predicate getPredicate() const
Return the predicate for this instruction.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
static bool isAtomic(Instruction *I)
bool mayWriteToMemory() const
Return true if this instruction may modify memory.
A function analysis which provides an AssumptionCache.
A SetVector that performs no allocations if smaller than a certain size.
Iterator for intrusive lists based on ilist_node.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Type * getType() const
All values are typed, get the type of this value.
Provides information about what library functions are available for the current target.
An analysis that produces MemorySSA for a function.
void setPreservesCFG()
This function should be called by the pass, iff they do not:
static ConstantInt * getTrue(LLVMContext &Context)
const BasicBlock * getSinglePredecessor() const
Return the predecessor of this block if it has a single predecessor block.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void swap(llvm::BitVector &LHS, llvm::BitVector &RHS)
Implement std::swap in terms of BitVector swap.
hash_code hash_combine(const Ts &...args)
Combine values into a single hash_code.
iterator_range< user_iterator > users()
hash_code hash_combine_range(InputIteratorT first, InputIteratorT last)
Compute a hash_code for a sequence of values.
Represents analyses that only rely on functions' control flow.
bool mayThrow() const
Return true if this instruction may throw an exception.
const DataLayout & getDataLayout() const
Get the data layout for the module's target platform.
void preserveSet()
Mark an analysis set as preserved.
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
void preserve()
Mark an analysis as preserved.
INITIALIZE_PASS(HexagonGenMux,"hexagon-gen-mux","Hexagon generate mux instructions", false, false) void HexagonGenMux I isValid()
EarlyCSELegacyCommonPass< false > EarlyCSELegacyPass
Analysis pass providing the TargetLibraryInfo.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVMContext & getContext() const
Get the context in which this basic block lives.
Module * getParent()
Get the module that this global value is contained inside of...
bool isInstructionTriviallyDead(Instruction *I, const TargetLibraryInfo *TLI=nullptr)
Return true if the result produced by the instruction is not used, and the instruction has no side ef...
LLVM Value Representation.
unsigned getOpcode() const
Returns a member of one of the enums like Instruction::Add.
typename std::vector< DomTreeNodeBase * >::iterator iterator
void initializeEarlyCSEMemSSALegacyPassPass(PassRegistry &)
This file exposes an interface to building/using memory SSA to walk memory instructions using a use/d...
FunctionPass * createEarlyCSEPass(bool UseMemorySSA=false)
A container for analyses that lazily runs them and caches their results.
Legacy analysis pass which computes a DominatorTree.
static bool isVolatile(Instruction *Inst)
Represents phi nodes for memory accesses.
Value * SimplifyInstruction(Instruction *I, const SimplifyQuery &Q, OptimizationRemarkEmitter *ORE=nullptr)
See if we can compute a simplified version of this instruction.
Information about a load/store intrinsic defined by the target.
A wrapper class for inspecting calls to intrinsic functions.
bool isVoidTy() const
Return true if this is 'void'.
This instruction inserts a struct field of array element value into an aggregate value.