Lines Matching refs:getVM

177   ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; }  in getVM()  function in __anona5d7d5240111::Mapper
339 ValueToValueMapTy::iterator I = getVM().find(V); in mapValue()
342 if (I != getVM().end()) { in mapValue()
350 getVM()[V] = NewV; in mapValue()
360 return getVM()[V] = const_cast<Value *>(V); in mapValue()
375 return getVM()[V] = const_cast<Value *>(V); in mapValue()
420 return getVM()[V] = const_cast<Value *>(V); in mapValue()
425 return getVM()[V] = const_cast<Value *>(V); in mapValue()
426 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD); in mapValue()
442 return getVM()[E] = DSOLocalEquivalent::get(GV); in mapValue()
448 return getVM()[E] = llvm::ConstantExpr::getBitCast( in mapValue()
481 return getVM()[V] = C; in mapValue()
508 return getVM()[V] = CE->getWithOperands(Ops, NewTy, false, NewSrcTy); in mapValue()
510 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in mapValue()
512 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue()
514 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
517 return getVM()[V] = UndefValue::get(NewTy); in mapValue()
519 return getVM()[V] = ConstantAggregateZero::get(NewTy); in mapValue()
521 return getVM()[V] = ConstantPointerNull::get(cast<PointerType>(NewTy)); in mapValue()
538 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock()); in mapBlockAddress()
542 getVM().MD()[Key].reset(Val); in mapToMetadata()
557 assert((!*MappedOp || M.getVM().count(CMD->getValue()) || in tryToMapOperand()
558 M.getVM().getMappedMD(Op)) && in tryToMapOperand()
561 assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) && in tryToMapOperand()
575 assert(!M.getVM().getMappedMD(&N) && "Expected an unmapped node"); in mapDistinctNode()
602 if (Optional<Metadata *> MappedOp = M.getVM().getMappedMD(Op)) in getMappedOp()
609 return wrapConstantAsMetadata(*CMD, M.getVM().lookup(CMD->getValue())); in getMappedOp()
819 if (Optional<Metadata *> NewMD = getVM().getMappedMD(MD)) in mapSimpleMetadata()