Lines Matching refs:getVM
179 ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; } in getVM() function in __anonc32747150111::Mapper
341 ValueToValueMapTy::iterator I = getVM().find(V); in mapValue()
344 if (I != getVM().end()) { in mapValue()
352 getVM()[V] = NewV; in mapValue()
362 return getVM()[V] = const_cast<Value *>(V); in mapValue()
376 return getVM()[V] = const_cast<Value *>(V); in mapValue()
401 return getVM()[V] = const_cast<Value *>(V); in mapValue()
406 return getVM()[V] = const_cast<Value *>(V); in mapValue()
407 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD); in mapValue()
448 return getVM()[V] = C; in mapValue()
475 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue()
477 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue()
479 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue()
481 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
484 return getVM()[V] = UndefValue::get(NewTy); in mapValue()
486 return getVM()[V] = ConstantAggregateZero::get(NewTy); in mapValue()
488 return getVM()[V] = ConstantPointerNull::get(cast<PointerType>(NewTy)); in mapValue()
505 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock()); in mapBlockAddress()
509 getVM().MD()[Key].reset(Val); in mapToMetadata()
524 assert((!*MappedOp || M.getVM().count(CMD->getValue()) || in tryToMapOperand()
525 M.getVM().getMappedMD(Op)) && in tryToMapOperand()
528 assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) && in tryToMapOperand()
552 assert(!M.getVM().getMappedMD(&N) && "Expected an unmapped node"); in mapDistinctNode()
571 if (Optional<Metadata *> MappedOp = M.getVM().getMappedMD(Op)) in getMappedOp()
578 return wrapConstantAsMetadata(*CMD, M.getVM().lookup(CMD->getValue())); in getMappedOp()
794 if (Optional<Metadata *> NewMD = getVM().getMappedMD(MD)) in mapSimpleMetadata()
807 MapMetadataDisabler MMD(getVM()); in mapSimpleMetadata()