Lines Matching refs:getVM
167 ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; }
340 ValueToValueMapTy::iterator I = getVM().find(V);
343 if (I != getVM().end()) {
351 getVM()[V] = NewV;
361 return getVM()[V] = const_cast<Value *>(V);
375 return getVM()[V] = const_cast<Value *>(V);
400 return getVM()[V] = const_cast<Value *>(V);
405 return getVM()[V] = const_cast<Value *>(V);
406 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD);
447 return getVM()[V] = C;
474 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy);
476 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops);
478 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops);
480 return getVM()[V] = ConstantVector::get(Ops);
483 return getVM()[V] = UndefValue::get(NewTy);
485 return getVM()[V] = ConstantAggregateZero::get(NewTy);
487 return getVM()[V] = ConstantPointerNull::get(cast<PointerType>(NewTy));
504 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock());
508 getVM().MD()[Key].reset(Val);
523 assert((!*MappedOp || M.getVM().count(CMD->getValue()) ||
524 M.getVM().getMappedMD(Op)) &&
527 assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) &&
541 assert(!M.getVM().getMappedMD(&N) && "Expected an unmapped node");
560 if (Optional<Metadata *> MappedOp = M.getVM().getMappedMD(Op))
567 return wrapConstantAsMetadata(*CMD, M.getVM().lookup(CMD->getValue()));
779 if (Optional<Metadata *> NewMD = getVM().getMappedMD(MD))
792 MapMetadataDisabler MMD(getVM());