Home | History | Annotate | Download | only in IR

Lines Matching full:constant

33 /// behind the scenes to implement unary constant exprs.
42 UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty)
50 /// behind the scenes to implement binary constant exprs.
59 BinaryConstantExpr(unsigned Opcode, Constant *C1, Constant *C2,
71 /// behind the scenes to implement select constant exprs.
80 SelectConstantExpr(Constant *C1, Constant *C2, Constant *C3)
92 /// extractelement constant exprs.
101 ExtractElementConstantExpr(Constant *C1, Constant *C2)
113 /// insertelement constant exprs.
122 InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3)
135 /// shufflevector constant exprs.
144 ShuffleVectorConstantExpr(Constant *C1, Constant *C2, Constant *C3)
160 /// extractvalue constant exprs.
169 ExtractValueConstantExpr(Constant *Agg,
186 /// insertvalue constant exprs.
195 InsertValueConstantExpr(Constant *Agg, Constant *Val,
213 /// used behind the scenes to implement getelementpr constant exprs.
216 GetElementPtrConstantExpr(Constant *C, ArrayRef<Constant*> IdxList,
219 static GetElementPtrConstantExpr *Create(Constant *C,
220 ArrayRef<Constant*> IdxList,
233 // behind the scenes to implement ICmp and FCmp constant expressions. This is
245 unsigned short pred, Constant* LHS, Constant* RHS)
318 ArrayRef<Constant*> ops,
327 std::vector<Constant*> operands;
395 // constant.
405 struct ConstantTraits<Constant *> {
406 static unsigned uses(Constant * const & v) {
420 static ConstantClass *create(TypeClass *Ty, ArrayRef<Constant*> V) {
429 llvm_unreachable("Unknown Constant type!");
460 std::vector<Constant*> IdxList(V.operands.begin()+1, V.operands.end());
482 std::vector<Constant*> Operands;
485 Operands.push_back(cast<Constant>(CE->getOperand(i)));
523 /// constant.
594 /// getOrCreate - Return the specified constant from the map, creating it if
615 assert(I != Map.end() && "Constant not found in constant table!");
628 // First, remove the old location of the specified constant in the map.
630 assert(OldI != Map.end() && "Constant not found in constant table!");
636 // Update the inverse map so that we know that this constant is now
645 DEBUG(dbgs() << "Constant.cpp: ConstantUniqueMap\n");
653 typedef ArrayRef<Constant*> Operands;
658 typedef DenseMapInfo<Constant*> ConstantInfo;
667 SmallVector<Constant*, 8> CPOperands;
699 /// constant.
730 /// getOrCreate - Return the specified constant from the map, creating it if
749 /// Find the constant by lookup key.
754 /// Insert the constant into its proper slot.
759 /// Remove this constant from the map
762 assert(I != Map.end() && "Constant not found in constant table!");
768 DEBUG(dbgs() << "Constant.cpp: ConstantUniqueMap\n");