Lines Matching defs:Ty

42   UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty)
43 : ConstantExpr(Ty, Opcode, &Op<0>(), 1) {
413 static ConstantClass *create(TypeClass *Ty, const ValType &V) {
414 return new(ConstantTraits<ValType>::uses(V)) ConstantClass(Ty, V);
420 static ConstantClass *create(TypeClass *Ty, ArrayRef<Constant*> V) {
421 return new(V.size()) ConstantClass(Ty, V);
435 static ConstantExpr *create(Type *Ty, const ExprMapKeyType &V,
438 return new UnaryConstantExpr(V.opcode, V.operands[0], Ty);
456 V.indices, Ty);
458 return new ExtractValueConstantExpr(V.operands[0], V.indices, Ty);
461 return GetElementPtrConstantExpr::Create(V.operands[0], IdxList, Ty,
469 return new CompareConstantExpr(Ty, Instruction::ICmp, V.subclassdata,
472 return new CompareConstantExpr(Ty, Instruction::FCmp, V.subclassdata,
496 static InlineAsm *create(PointerType *Ty, const InlineAsmKeyType &Key) {
497 return new InlineAsm(Ty, Key.asm_string, Key.constraints,
579 ConstantClass *Create(TypeClass *Ty, ValRefType V,
582 ConstantCreator<ConstantClass,TypeClass,ValType>::create(Ty, V);
584 assert(Result->getType() == Ty && "Type specified is not correct!");
585 I = Map.insert(I, std::make_pair(MapKey(Ty, V), Result));
596 ConstantClass *getOrCreate(TypeClass *Ty, ValRefType V) {
597 MapKey Lookup(Ty, V);
607 Result = Create(Ty, V, I);
719 ConstantClass *Create(TypeClass *Ty, Operands V, typename MapTy::iterator I) {
721 ConstantArrayCreator<ConstantClass,TypeClass>::create(Ty, V);
723 assert(Result->getType() == Ty && "Type specified is not correct!");
732 ConstantClass *getOrCreate(TypeClass *Ty, Operands V) {
733 LookupKey Lookup(Ty, V);
743 Result = Create(Ty, V, I);