Lines Matching refs:VM
27 Value *llvm::MapValue(const Value *V, ValueToValueMapTy &VM, RemapFlags Flags, in MapValue() argument
30 ValueToValueMapTy::iterator I = VM.find(V); in MapValue()
33 if (I != VM.end() && I->second) return I->second; in MapValue()
38 return VM[V] = NewV; in MapValue()
44 return VM[V] = const_cast<Value*>(V); in MapValue()
57 return VM[V] = const_cast<Value*>(V); in MapValue()
65 return VM[V] = const_cast<Value*>(V); in MapValue()
69 VM[V] = Dummy; in MapValue()
75 Value *Mapped_OP = MapValue(OP, VM, Flags, TypeMapper, Materializer); in MapValue()
90 Value *Mapped_Op = MapValue(Op, VM, Flags, TypeMapper, Materializer); in MapValue()
100 VM[V] = NewMD; in MapValue()
105 VM[V] = const_cast<Value*>(V); in MapValue()
120 cast<Function>(MapValue(BA->getFunction(), VM, Flags, TypeMapper, Materializer)); in MapValue()
121 BasicBlock *BB = cast_or_null<BasicBlock>(MapValue(BA->getBasicBlock(), VM, in MapValue()
123 return VM[V] = BlockAddress::get(F, BB ? BB : BA->getBasicBlock()); in MapValue()
132 Mapped = MapValue(Op, VM, Flags, TypeMapper, Materializer); in MapValue()
144 return VM[V] = C; in MapValue()
159 Ops.push_back(MapValue(cast<Constant>(C->getOperand(OpNo)), VM, in MapValue()
164 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue()
166 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue()
168 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue()
170 return VM[V] = ConstantVector::get(Ops); in MapValue()
173 return VM[V] = UndefValue::get(NewTy); in MapValue()
175 return VM[V] = ConstantAggregateZero::get(NewTy); in MapValue()
177 return VM[V] = ConstantPointerNull::get(cast<PointerType>(NewTy)); in MapValue()