Lines Matching refs:Assume
36 static Value *getValueFromBundleOpInfo(CallInst &Assume, in getValueFromBundleOpInfo() argument
40 return (Assume.op_begin() + BOI.Begin + Idx)->get(); in getValueFromBundleOpInfo()
47 IntrinsicInst &Assume = cast<IntrinsicInst>(AssumeCI); in hasAttributeInAssume() local
48 assert(Assume.getIntrinsicID() == Intrinsic::assume && in hasAttributeInAssume()
55 if (Assume.bundle_op_infos().empty()) in hasAttributeInAssume()
58 for (auto &BOI : Assume.bundle_op_infos()) { in hasAttributeInAssume()
62 IsOn != getValueFromBundleOpInfo(Assume, BOI, ABA_WasOn))) in hasAttributeInAssume()
67 cast<ConstantInt>(getValueFromBundleOpInfo(Assume, BOI, ABA_Argument)) in hasAttributeInAssume()
76 IntrinsicInst &Assume = cast<IntrinsicInst>(AssumeCI); in fillMapFromAssume() local
77 assert(Assume.getIntrinsicID() == Intrinsic::assume && in fillMapFromAssume()
79 for (auto &Bundles : Assume.bundle_op_infos()) { in fillMapFromAssume()
83 Key.first = getValueFromBundleOpInfo(Assume, Bundles, ABA_WasOn); in fillMapFromAssume()
88 Result[Key][&Assume] = {0, 0}; in fillMapFromAssume()
92 getValueFromBundleOpInfo(Assume, Bundles, ABA_Argument)) in fillMapFromAssume()
95 if (Lookup == Result.end() || !Lookup->second.count(&Assume)) { in fillMapFromAssume()
96 Result[Key][&Assume] = {Val, Val}; in fillMapFromAssume()
99 Lookup->second[&Assume].Min = std::min(Val, Lookup->second[&Assume].Min); in fillMapFromAssume()
100 Lookup->second[&Assume].Max = std::max(Val, Lookup->second[&Assume].Max); in fillMapFromAssume()
105 llvm::getKnowledgeFromBundle(CallInst &Assume, in getKnowledgeFromBundle() argument
110 Result.WasOn = getValueFromBundleOpInfo(Assume, BOI, ABA_WasOn); in getKnowledgeFromBundle()
113 getValueFromBundleOpInfo(Assume, BOI, ABA_Argument + Idx))) in getKnowledgeFromBundle()
127 IntrinsicInst &Assume = cast<IntrinsicInst>(AssumeCI); in getKnowledgeFromOperandInAssume() local
128 assert(Assume.getIntrinsicID() == Intrinsic::assume && in getKnowledgeFromOperandInAssume()
130 CallBase::BundleOpInfo BOI = Assume.getBundleOpInfoForOperand(Idx); in getKnowledgeFromOperandInAssume()
135 IntrinsicInst &Assume = cast<IntrinsicInst>(CI); in isAssumeWithEmptyBundle() local
136 assert(Assume.getIntrinsicID() == Intrinsic::assume && in isAssumeWithEmptyBundle()
138 return none_of(Assume.bundle_op_infos(), in isAssumeWithEmptyBundle()
178 IntrinsicInst *II = cast_or_null<IntrinsicInst>(Elem.Assume); in getKnowledgeForValue()