Home | History | Annotate | Download | only in IR

Lines Matching defs:To

132 // Constructor to create a '0' constant of arbitrary type...
174 // Convert an integer to a pointer, if necessary.
178 // Broadcast a scalar to a vector, if necessary.
202 /// constant that corresponds to the specified element if possible, or null if
237 // references to the constant by other constants in the constant pool. These
252 assert(isa<Constant>(V) && "References remain to Constant being destroyed");
259 // Value has no outstanding references it is safe to delete it now...
289 // Div and rem can trap if the RHS is not known to be non-zero.
359 /// getRelocationInfo - This method classifies the entry according to
361 /// conservative, so if it might codegen to a relocatable entry, it should say
364 /// NoRelocation: This constant pool entry is guaranteed to never have a
365 /// relocation applied to it (because it holds a simple constant like
368 /// guaranteed to be resolvable by the static linker, so the dynamic
376 return LocalRelocation; // Local to this file/library.
383 // While raw uses of blockaddress need to be relocated, differences between
429 /// that want to check to see if a global is unused, but don't want to deal
444 // and move on to the next constant.
515 // operator== and operator!= to ensure that the DenseMap doesn't attempt to
784 // Empty arrays are canonicalized to ConstantAggregateZero.
804 // Check to see if all of the elements are ConstantFP or ConstantInt and if
809 // uncommon for that to happen.
873 // Otherwise, we really do want to create a ConstantArray.
877 /// getTypeForElements - Return an anonymous struct type to use for a constant
914 "Incorrect # elements specified to ConstantStruct::get");
985 // Check to see if all of the elements are ConstantFP or ConstantInt and if
990 // uncommon for that to happen.
1072 // can't be inline because we don't want to #include Instruction.h into
1125 /// getWithOperandReplaced - Return a constant expression identical to this
1126 /// one, but with the specified operand set to the specified value.
1202 return true; // always true, has to fit in largest type
1212 return true; // always true, has to fit in largest type
1226 // FIXME rounding mode needs to be more flexible
1330 // Then make sure all remaining elements point to the same value.
1364 // Free the constant and any dangling references to it.
1383 // Free the constant and any dangling references to it.
1435 void BlockAddress::replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
1437 // case, we have to remove the map entry.
1442 NewF = cast<Function>(To->stripPointerCasts());
1444 NewBB = cast<BasicBlock>(To);
1453 // Remove the old entry, this can't cause the map to rehash (just a
1464 // Otherwise, I do need to replace this with an existing value.
1476 /// This is a utility function to handle folding of casts and lookup of the
1480 assert(Ty->isFirstClassType() && "Cannot cast to an aggregate type!");
1487 // Look up the constant in the table first to ensure uniqueness.
1496 assert(C && Ty && "Null arguments to getCast");
1592 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1606 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1620 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1634 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1646 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1658 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1660 "This is an illegal uint to floating point cast!");
1669 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1671 "This is an illegal sint to floating point cast!");
1680 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1682 "This is an illegal floating point to uint cast!");
1691 assert((fromVec == toVec) && "Cannot convert from scalar to/from vector");
1693 "This is an illegal floating point to sint cast!");
1725 // It is common to ask for a bitcast of a value to its own type, handle this
1768 "Tried to create an integer operation on a non-integer type!");
1775 "Tried to create a floating-point operation on a "
1782 "Tried to
1787 "Tried to create an arithmetic operation on a non-arithmetic type!");
1793 "Tried to create an arithmetic operation on a non-arithmetic type!");
1798 "Tried to create an arithmetic operation on a non-arithmetic type!");
1805 "Tried to create a logical operation on a non-integral type!");
1812 "Tried to create a shift operation on a non-integer type!");
1922 // Look up the constant in the table first to ensure uniqueness
1951 // Look up the constant in the table first to ensure uniqueness
1972 // Look up the constant in the table first to ensure uniqueness
1987 "Tried to create extractelement operation on non-vector type!");
1994 // Look up the constant in the table first to ensure uniqueness
2006 "Tried to create insertelement operation on non-vector type!");
2014 // Look up the constant in the table first to ensure uniqueness
2034 // Look up the constant in the table first to ensure uniqueness
2065 "Tried to create extractelement operation on non-first-class type!");
2318 /// ConstantDataSequential::get methods. They all thunk down to here, providing
2320 /// we *want* an underlying "char*" to avoid TBAA type punning violations.
2328 // Do a lookup to see if we have already formed one of these.
2332 // The bucket can point to a linked list of different CDS's that have the same
2426 /// string. The default behavior (AddNull==true) causes a null terminator to
2429 /// to disable this behavior.
2521 // The data is stored in host byte order, make sure to cast back to the right
2522 // type to load with the right endianness.
2575 /// Note that this has to compute a new constant to return, so it isn't as
2609 // Compare elements 1+ to the 0'th element.
2622 /// replaceUsesOfWithOnConstant - Update this constant array to change uses of
2623 /// 'From' to be uses of 'To'. This must update the uniquing data structures
2626 /// Note that we intentionally replace all uses of From with To here. Consider
2630 /// work, but would be really slow because it would have to unique each updated
2633 void ConstantArray::replaceUsesOfWithOnConstant(Value *From, Value *To,
2635 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2636 Constant *ToC = cast<Constant>(To);
2667 // Check to see if we have this array type already.
2681 // Update to the new value. Optimize for the case when we have a single
2698 // Otherwise, I do need to replace this with an existing value.
2708 void ConstantStruct::replaceUsesOfWithOnConstant(Value *From, Value *To,
2710 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2711 Constant *ToC = cast<Constant>(To);
2753 // Check to see if we have this struct type already.
2767 // Update to the new value.
2783 void ConstantVector::replaceUsesOfWithOnConstant(Value *From, Value *To,
2785 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2791 if (Val == From) Val = cast<Constant>(To);
2807 assert(isa<Constant>(ToV) && "Cannot make Constant refer to non-constant!");
2808 Constant *To = cast<Constant>(ToV);
2813 NewOps.push_back(Op == From ? To : Op);