• Home
  • Raw
  • Download

Lines Matching refs:inst

63       CreateInstructionVisitor([&table](Instruction *inst) {  in resolveIds()  argument
64 if (inst->hasResult()) { in resolveIds()
65 table.insert(std::make_pair(inst->getId(), inst)); in resolveIds()
74 CreateInstructionVisitor([&table, &err](Instruction *inst) { in resolveIds() argument
75 for (auto ref : inst->getAllIdRefs()) { in resolveIds()
362 size_t Module::getSize(Instruction *inst) { in getSize() argument
363 switch (inst->getOpCode()) { in getSize()
365 return getSize(static_cast<TypeVoidInst *>(inst)); in getSize()
367 return getSize(static_cast<TypeIntInst *>(inst)); in getSize()
369 return getSize(static_cast<TypeFloatInst *>(inst)); in getSize()
371 return getSize(static_cast<TypeVectorInst *>(inst)); in getSize()
373 return getSize(static_cast<TypeStructInst *>(inst)); in getSize()
375 return getSize(static_cast<TypeFunctionInst *>(inst)); in getSize()
391 Module::getFunctionDefinitionFromInstruction(FunctionInst *inst) const { in getFunctionDefinitionFromInstruction()
393 if (fdef->getInstruction() == inst) { in getFunctionDefinitionFromInstruction()
402 FunctionInst *inst = static_cast<FunctionInst *>(lookupByName(name)); in lookupFunctionDefinitionByName() local
403 return getFunctionDefinitionFromInstruction(inst); in lookupFunctionDefinitionByName()
406 const char *Module::lookupNameByInstruction(const Instruction *inst) const { in lookupNameByInstruction()
407 return mDebugInfo->lookupNameByInstruction(inst); in lookupNameByInstruction()
432 CreateInstructionVisitor([&annotations](Instruction *inst) -> void { in consolidateAnnotations() argument
433 const auto &ann = inst->getAnnotations(); in consolidateAnnotations()
529 SourceExtensionInst *inst = mBuilder->MakeSourceExtension(ext); in addSourceExtension() local
530 mSources.push_back(inst); in addSourceExtension()
542 mSources.begin(), mSources.end(), [prefix](Instruction *inst) -> bool { in findStringOfPrefix() argument
543 if (inst->getOpCode() != OpString) { in findStringOfPrefix()
546 const StringInst *strInst = static_cast<const StringInst *>(inst); in findStringOfPrefix()
558 for (auto inst : mNames) { in lookupByName() local
559 if (inst->getOpCode() == OpName) { in lookupByName()
560 NameInst *nameInst = static_cast<NameInst *>(inst); in lookupByName()
572 for (auto inst : mNames) { in lookupNameByInstruction() local
573 if (inst->getOpCode() == OpName) { in lookupNameByInstruction()
574 NameInst *nameInst = static_cast<NameInst *>(inst); in lookupNameByInstruction()
619 for (auto inst : *globals) { in findOrCreate()
620 if (inst->getOpCode() == T::mOpCode) { in findOrCreate()
621 T *derived = static_cast<T *>(inst); in findOrCreate()
926 Instruction *inst; in Deserialize() local
931 inst = Deserialize<INST_CLASS>(IS); \ in Deserialize()
937 inst = nullptr; in Deserialize()
940 return inst; in Deserialize()
944 Instruction *inst; in DeserializeInternal() local
946 (inst = Deserialize<Instruction>(IS))) { in DeserializeInternal()
947 mInsts.push_back(inst); in DeserializeInternal()
948 if (inst->getOpCode() == OpBranch || in DeserializeInternal()
949 inst->getOpCode() == OpBranchConditional || in DeserializeInternal()
950 inst->getOpCode() == OpSwitch || inst->getOpCode() == OpKill || in DeserializeInternal()
951 inst->getOpCode() == OpReturn || inst->getOpCode() == OpReturnValue || in DeserializeInternal()
952 inst->getOpCode() == OpUnreachable) { in DeserializeInternal()