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