Lines Matching refs:Value
59 /// constant value, convert it into an unconditional branch to the constant
107 Value *Cond = BI->getCondition();
201 Value *Cond = SI->getCondition();
212 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
259 Value *Address = IBI->getAddress();
341 /// RecursivelyDeleteTriviallyDeadInstructions - If the specified value is a
346 llvm::RecursivelyDeleteTriviallyDeadInstructions(Value *V,
361 Value *OpV = I->getOperand(i);
380 /// areAllUsesEqual - Check whether the uses of a value are all the same.
383 /// value.
385 Value::user_iterator UI = I->user_begin();
386 Value::user_iterator UE = I->user_end();
398 /// RecursivelyDeleteDeadPHINode - If the specified value is an effectively
432 Value *OpV = I->getOperand(i);
451 if (Value *SimpleV = SimplifyInstruction(I, DL)) {
458 // Replace the instruction with its simplified value.
535 Value *OldPhiIt = PhiIt;
556 Value *NewVal = PN->getIncomingValue(0);
567 // address an invalid value.
600 /// value to keep.
601 static bool CanMergeValues(Value *First, Value *Second) {
627 // If the incoming value from BB is again a PHINode in
628 // BB which has the same incoming value for *PI as PN does, we can
645 Value* Val = PN->getIncomingValueForBlock(BB);
647 // See if the incoming value for the common predecessor is equal to the
666 typedef DenseMap<BasicBlock *, Value *> IncomingValueMap;
668 /// \brief Determines the value to use as the phi node input for a block.
670 /// Select between \p OldVal any value that we know flows from \p BB
672 /// undef. Update IncomingValues based on the selected value.
674 /// \param OldVal The value we are considering selecting.
675 /// \param BB The block that the value flows in from.
676 /// \param IncomingValues A map from block-to-value for other phi inputs
679 /// \returns the selected value.
680 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB,
685 "Expected OldVal to match incoming value from BB!");
697 /// \brief Create a map from block to value for the operands of a
700 /// Create a map from block to value for each non-undef value flowing
704 /// \param IncomingValues [out] The map from block to value for this phi.
709 Value *V = PN->getIncomingValue(i);
717 /// from a block-to-value map.
720 /// \param IncomingValues A map from block to value.
724 Value *V = PN->getIncomingValue(i);
736 /// \brief Replace a value flowing from a block to a phi with
737 /// potentially multiple instances of that value flowing from the
740 /// \param BB The block with the value flowing into the phi.
746 Value *OldVal = PN->removeIncomingValue(BB, false);
762 // If this incoming value is one of the PHI nodes in BB, the new entries
773 Value *PredVal = OldValPN->getIncomingValue(i);
774 Value *Selected = selectIncomingValueForBlock(PredVal, PredBB,
777 // And add a new incoming value for this predecessor for the
786 Value *Selected = selectIncomingValueForBlock(OldVal, PredBB,
789 // And add a new incoming value for this predecessor for the
899 // Compute a hash value on the operands. Instcombine will likely have
943 static unsigned enforceKnownAlignment(Value *V, unsigned Align,
986 unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign,
1006 Align = std::min(Align, +Value::MaximumAlignment);
1019 /// See if there is a dbg.value intrinsic for DIVar before I.
1023 // not inserting the same dbg.value intrinsic over and over.
1036 /// Inserts a llvm.dbg.value intrinsic before a store to an alloca'd value
1063 /// Inserts a llvm.dbg.value intrinsic before a load of an alloca'd value
1074 // We are now tracking the loaded value instead of the address. In the
1076 // preferable to keep tracking both the loaded value and the original
1091 /// of llvm.dbg.value intrinsics.
1106 // If this is an alloca for a scalar variable, insert a dbg.value
1119 // This is a call by-value or some other instruction that
1120 // takes a pointer to the variable. Insert a *value*
1138 DbgDeclareInst *llvm::FindAllocaDbgDeclare(Value *V) {
1148 bool llvm::replaceDbgDeclare(Value *Address, Value *NewAddress,
1162 // will take a value storing address of the memory for variable, not
1186 bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
1220 SmallVector<Value*, 8> Args(II->arg_begin(), II->arg_end());
1296 Value *Ptr = SI->getOperand(1);
1310 Value *Callee = II->getCalledValue();
1468 unsigned llvm::replaceDominatedUsesWith(Value *From, Value *To,
1474 for (Value::use_iterator UI = From->use_begin(), UE = From->use_end();
1488 unsigned llvm::replaceDominatedUsesWith(Value *From, Value *To,
1494 for (Value::use_iterator UI = From->use_begin(), UE = From->use_end();