Home | History | Annotate | Download | only in Utils

Lines Matching refs:VM

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