Home | History | Annotate | Download | only in llvm

Lines Matching refs:Ty

50   ConstantInt(IntegerType *Ty, const APInt& V);
60 static Constant *getTrue(Type *Ty);
61 static Constant *getFalse(Type *Ty);
63 /// If Ty is a vector type, return a Constant with a splat of the given
65 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
73 static ConstantInt *get(IntegerType *Ty, uint64_t V,
79 /// signed value for the type Ty.
81 static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
82 static Constant *getSigned(Type *Ty, int64_t V);
90 static ConstantInt *get(IntegerType *Ty, StringRef Str,
93 /// If Ty is a vector type, return a Constant with a splat of the given
95 static Constant *get(Type* Ty, const APInt& V);
140 /// This static method returns true if the type Ty is big enough to
142 /// assert when V is larger than Ty can represent. Note that there are two
147 /// @returns true if V is a valid value for type Ty
149 static bool isValueValidForType(Type *Ty, uint64_t V);
150 static bool isValueValidForType(Type *Ty, int64_t V);
236 ConstantFP(Type *Ty, const APFloat& V);
246 static Constant *getZeroValueForNegation(Type *Ty);
252 static Constant *get(Type* Ty, double V);
253 static Constant *get(Type* Ty, StringRef Str);
255 static ConstantFP *getNegativeZero(Type* Ty);
256 static ConstantFP *getInfinity(Type *Ty, bool Negative = false);
258 /// isValueValidForType - return true if Ty is big enough to represent V.
259 static bool isValueValidForType(Type *Ty, const APFloat &V);
303 explicit ConstantAggregateZero(Type *ty)
304 : Constant(ty, ConstantAggregateZeroVal, 0, 0) {}
311 static ConstantAggregateZero* get(Type *Ty);
594 ConstantExpr(Type *ty, unsigned Opcode, Use *Ops, unsigned NumOps)
595 : Constant(ty, ConstantExprVal, Ops, NumOps) {
608 static Constant *getAlignOf(Type *Ty);
614 static Constant *getSizeOf(Type *Ty);
624 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
651 static Constant *getTrunc (Constant *C, Type *Ty);
652 static Constant *getSExt (Constant *C, Type *Ty);
653 static Constant *getZExt (Constant *C, Type *Ty);
654 static Constant *getFPTrunc (Constant *C, Type *Ty);
655 static Constant *getFPExtend(Constant *C, Type *Ty);
656 static Constant *getUIToFP (Constant *C, Type *Ty);
657 static Constant *getSIToFP (Constant *C, Type *Ty);
658 static Constant *getFPToUI (Constant *C, Type *Ty);
659 static Constant *getFPToSI (Constant *C, Type *Ty);
660 static Constant *getPtrToInt(Constant *C, Type *Ty);
661 static Constant *getIntToPtr(Constant *C, Type *Ty);
662 static Constant *getBitCast (Constant *C, Type *Ty);
711 Type *Ty ///< The type to which the constant is converted
717 Type *Ty ///< The type to zext or bitcast C to
723 Type *Ty ///< The type to sext or bitcast C to
729 Type *Ty ///< The type to trunc or bitcast C to
735 Type *Ty ///< The type to which cast should be made
741 Type *Ty, ///< The integer type to cast to
748 Type *Ty ///< The integer type to cast to
863 Constant *getWithOperands(ArrayRef<Constant*> Ops, Type *Ty) const;