Lines Matching refs:VM
26 Value *llvm::MapValue(const Value *V, ValueToValueMapTy &VM, RemapFlags Flags,
28 ValueToValueMapTy::iterator I = VM.find(V);
31 if (I != VM.end() && I->second) return I->second;
33 // Global values do not need to be seeded into the VM if they
36 return VM[V] = const_cast<Value*>(V);
49 return VM[V] = const_cast<Value*>(V);
57 return VM[V] = const_cast<Value*>(V);
61 VM[V] = Dummy;
67 Value *Mapped_OP = MapValue(OP, VM, Flags, TypeMapper);
82 Value *Mapped_Op = MapValue(Op, VM, Flags, TypeMapper);
92 VM[V] = NewMD;
97 VM[V] = const_cast<Value*>(V);
112 cast<Function>(MapValue(BA->getFunction(), VM, Flags, TypeMapper));
113 BasicBlock *BB = cast_or_null<BasicBlock>(MapValue(BA->getBasicBlock(), VM,
115 return VM[V] = BlockAddress::get(F, BB ? BB : BA->getBasicBlock());
124 Mapped = MapValue(Op, VM, Flags, TypeMapper);
136 return VM[V] = C;
151 Ops.push_back(MapValue(cast<Constant>(C->getOperand(OpNo)), VM,
156 return VM[V] = CE->getWithOperands(Ops, NewTy);
158 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops);
160 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops);
162 return VM[V] = ConstantVector::get(Ops);
165 return VM[V] = UndefValue::get(NewTy);
167 return VM[V] = ConstantAggregateZero::get(NewTy);
169 return VM[V] = ConstantPointerNull::get(cast<PointerType>(NewTy));