Home
last modified time | relevance | path

Searched refs:II (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp303 II, II, II.getIntrinsicID(), IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic()
403 II, ConstantFP::get(II.getContext(), Significand)); in instCombineIntrinsic()
592 II, 1, in instCombineIntrinsic()
645 return ⅈ in instCombineIntrinsic()
699 return ⅈ in instCombineIntrinsic()
735 II, ConstantExpr::getSExt(CCmp, II.getType())); in instCombineIntrinsic()
761 return ⅈ in instCombineIntrinsic()
782 return ⅈ in instCombineIntrinsic()
886 return IC.replaceInstUsesWith(II, II.getArgOperand(0)); in instCombineIntrinsic()
1057 II.getModule(), Intrinsic::fma, II.getType())); in instCombineIntrinsic()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerCorpus.h221 II.U = U; in AddToCorpus()
275 if (std::find(II->U.begin(), II->U.end(), 'F') != II->U.end()) { in PrintCorpus()
294 II->U = U; in Replace()
305 return II; in ChooseUnitToMutate()
314 return II; in ChooseUnitToCrossOverWith()
329 Sha1ToString(II.Sha1).c_str(), II.U.size(), in PrintStats()
408 II->Energy += log(II->SumIncidence) / II->SumIncidence; in AddRareFeature()
463 if (II) in UpdateFeatureFrequency()
483 if (II->Tmp != II->NumFeatures) in ValidateFeatureSet()
485 assert(II->Tmp == II->NumFeatures); in ValidateFeatureSet()
[all …]
/llvm-project-15.0.7/llvm/unittests/Target/AArch64/
H A DInstSizes.cpp84 Checks(*II, MF); in runChecks()
100 runChecks(TM.get(), II.get(), "", in TEST()
105 runChecks(TM.get(), II.get(), "", in TEST()
110 runChecks(TM.get(), II.get(), "", in TEST()
115 runChecks(TM.get(), II.get(), "", in TEST()
140 runChecks(TM.get(), II.get(), "", in TEST()
155 runChecks(TM.get(), II.get(), "", in TEST()
184 TM.get(), II.get(), in TEST()
198 TM.get(), II.get(), "", in TEST()
212 TM.get(), II.get(), "", in TEST()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/
H A Dmismatch.pass.cpp31 typedef cpp17_input_iterator<int*> II; in test_constexpr() typedef
50 auto p5 = std::mismatch(II(std::begin(ib)), II(std::end(ib)), II(std::begin(ic))); in test_constexpr()
51 if (p5.first != II(ib+2) || p5.second != II(ic+2)) in test_constexpr()
68 typedef cpp17_input_iterator<const int*> II; in main() typedef
71 assert(std::mismatch(II(ia), II(ia + sa), II(ib)) in main()
72 == (std::pair<II, II>(II(ia+3), II(ib+3)))); in main()
78 assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib+sb)) in main()
79 == (std::pair<II, II>(II(ia+3), II(ib+3)))); in main()
85 assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib+2)) in main()
86 == (std::pair<II, II>(II(ia+2), II(ib+2)))); in main()
H A Dmismatch_pred.pass.cpp36 typedef cpp17_input_iterator<int*> II; in test_constexpr() typedef
55 auto p5 = std::mismatch(II(std::begin(ib)), II(std::end(ib)), II(std::begin(ic)), eq); in test_constexpr()
56 if (p5.first != II(ib+2) || p5.second != II(ic+2)) in test_constexpr()
78 typedef cpp17_input_iterator<const int*> II; in main() typedef
82 assert(std::mismatch(II(ia), II(ia + sa), II(ib), EQ()) in main()
83 == (std::pair<II, II>(II(ia+3), II(ib+3)))); in main()
94 assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib + sb), EQ()) in main()
95 == (std::pair<II, II>(II(ia+3), II(ib+3)))); in main()
99 assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib + sb), std::ref(bcp)) in main()
100 == (std::pair<II, II>(II(ia+3), II(ib+3)))); in main()
/llvm-project-15.0.7/llvm/unittests/Target/ARM/
H A DInstSizes.cpp65 Checks(*II, MF, Expected); in runChecks()
98 runChecks(TM.get(), II, "", in TEST()
103 runChecks(TM.get(), II, "", in TEST()
108 runChecks(TM.get(), II, "", in TEST()
113 runChecks(TM.get(), II, "", in TEST()
122 runChecks(TM.get(), II, "", in TEST()
127 runChecks(TM.get(), II, "", in TEST()
132 runChecks(TM.get(), II, "", in TEST()
137 runChecks(TM.get(), II, "", in TEST()
142 runChecks(TM.get(), II, "", in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp594 if ((II.getArgOperand(0) == II.getArgOperand(1)) || in simplifyX86insertps()
950 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), 0)); in instCombineIntrinsic()
973 return IC.replaceInstUsesWith(II, II.getArgOperand(0)); in instCombineIntrinsic()
976 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), 0)); in instCombineIntrinsic()
995 return IC.replaceInstUsesWith(II, II.getArgOperand(0)); in instCombineIntrinsic()
1039 return IC.replaceInstUsesWith(II, II.getArgOperand(0)); in instCombineIntrinsic()
1166 return &II; in instCombineIntrinsic()
1449 return &II; in instCombineIntrinsic()
1496 return &II; in instCombineIntrinsic()
1596 return &II; in instCombineIntrinsic()
[all …]
H A DX86LowerAMXType.cpp72 return match(II, in isAMXCast()
79 if (!II) in isAMXIntrinsic()
81 if (isAMXCast(II)) in isAMXIntrinsic()
87 for (Value *V : II->args()) { in isAMXIntrinsic()
118 IRBuilder<> Builder(II); in getShape()
316 if (!II) in transformBitcast()
336 if (!II) in transformBitcast()
952 if (!isAMXIntrinsic(II)) in combineLoadCast()
1030 if (!II || II->getIntrinsicID() != IID) in combineAMXcast()
1128 if (!II) in transformAMXCast()
[all …]
H A DX86PreAMXConfig.cpp61 for (Value *Operand : II->operands()) in isAMXIntrinsic()
64 return II->getType()->isX86_AMXTy(); in isAMXIntrinsic()
78 for (Value *Operand : II->operands()) in onlyTileDef()
81 return II->getType()->isX86_AMXTy(); in onlyTileDef()
270 if (!II || !isAMXIntrinsic(II)) in getShapesAndConfigPosEnd()
273 if (isTileLoad(II)) { in getShapesAndConfigPosEnd()
274 Loads.insert(II); in getShapesAndConfigPosEnd()
275 } else if (isTileStore(II)) { in getShapesAndConfigPosEnd()
282 KeyAMX = II; in getShapesAndConfigPosEnd()
314 if (!II) in findConfigShapes()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp603 return &II; in foldCttzCtlz()
682 return &II; in foldCtpop()
842 Value *Op0 = II->getArgOperand(0), *Op1 = II->getArgOperand(1); in moveAddAfterMinMax()
937 Value *I0 = II->getArgOperand(0), *I1 = II->getArgOperand(1); in foldClampRangeOfTwo()
1127 Instruction *FPI = isa<FPMathOperator>(II) ? II : nullptr; in foldShuffledIntrinsicOperands()
1231 return II; in visitCallInst()
1863 return II; in visitCallInst()
1871 return II; in visitCallInst()
2040 return II; in visitCallInst()
2358 return II; in visitCallInst()
[all …]
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPMacroExpansion.cpp109 assert(II && MD); in setLoadedMacroDirective()
1382 return II; in ExpectFeatureIdentifierInfo()
1517 } else if (II == Ident__FILE__ || II == Ident__BASE_FILE__ || in ExpandBuiltinMacro()
1657 return II && HasFeature(*this, II->getName()); in ExpandBuiltinMacro()
1664 return II && HasExtension(*this, II->getName()); in ExpandBuiltinMacro()
1671 if (!II) in ExpandBuiltinMacro()
1741 if (II) { in ExpandBuiltinMacro()
1893 return II && isTargetArch(getTargetInfo(), II); in ExpandBuiltinMacro()
1901 return II && isTargetVendor(getTargetInfo(), II); in ExpandBuiltinMacro()
1909 return II && isTargetOS(getTargetInfo(), II); in ExpandBuiltinMacro()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerInvoke.cpp49 SmallVector<Value *, 16> CallArgs(II->args()); in runImpl()
51 II->getOperandBundlesAsDefs(OpBundles); in runImpl()
54 CallInst::Create(II->getFunctionType(), II->getCalledOperand(), in runImpl()
56 NewCall->takeName(II); in runImpl()
57 NewCall->setCallingConv(II->getCallingConv()); in runImpl()
58 NewCall->setAttributes(II->getAttributes()); in runImpl()
59 NewCall->setDebugLoc(II->getDebugLoc()); in runImpl()
60 II->replaceAllUsesWith(NewCall); in runImpl()
63 BranchInst::Create(II->getNormalDest(), II); in runImpl()
66 II->getUnwindDest()->removePredecessor(&BB); in runImpl()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreRegisterInfo.cpp64 MachineInstr &MI = *II; in InsertFPImmInst()
76 BuildMI(MBB, II, dl, TII.get(XCore::STW_2rus)) in InsertFPImmInst()
97 MachineInstr &MI = *II; in InsertFPConstInst()
112 BuildMI(MBB, II, dl, TII.get(XCore::STW_l3r)) in InsertFPConstInst()
131 MachineInstr &MI = *II; in InsertSPImmInst()
140 BuildMI(MBB, II, dl, TII.get(NewOpcode), Reg) in InsertSPImmInst()
146 BuildMI(MBB, II, dl, TII.get(NewOpcode)) in InsertSPImmInst()
165 MachineInstr &MI = *II; in InsertSPConstInst()
258 MachineInstr &MI = *II; in eliminateFrameIndex()
309 InsertSPImmInst(II, TII, Reg, Offset); in eliminateFrameIndex()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/
H A DObjCNoReturn.cpp20 static bool isSubclass(const ObjCInterfaceDecl *Class, IdentifierInfo *II) { in isSubclass() argument
23 if (Class->getIdentifier() == II) in isSubclass()
25 return isSubclass(Class->getSuperClass(), II); in isSubclass()
33 SmallVector<IdentifierInfo*, 3> II; in ObjCNoReturn() local
36 II.push_back(&C.Idents.get("raise")); in ObjCNoReturn()
37 II.push_back(&C.Idents.get("format")); in ObjCNoReturn()
39 C.Selectors.getSelector(II.size(), &II[0]); in ObjCNoReturn()
42 II.push_back(&C.Idents.get("arguments")); in ObjCNoReturn()
44 C.Selectors.getSelector(II.size(), &II[0]); in ObjCNoReturn()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp650 auto Select = Builder.CreateSelect(II.getOperand(0), II.getOperand(1), in instCombineSVESel()
672 II.getArgOperand(0), II.getArgOperand(2), ConstantInt::get(IdxTy, 0)); in instCombineSVEDup()
674 Insert->takeName(&II); in instCombineSVEDup()
687 Splat->takeName(&II); in instCombineSVEDupX()
864 Extract->takeName(&II); in instCombineSVELast()
925 RDFFR->takeName(&II); in instCombineRDFFR()
948 II, ConstantInt::get(II.getType(), MinNumElts))) in instCombineSVECntElts()
970 PTest->takeName(&II); in instCombineSVEPTest()
1002 {II.getType()}, {P, A, B, C}, &II); in instCombineSVEVectorFMLA()
1094 Builder.CreateBinOp(BinOpCode, II.getOperand(1), II.getOperand(2)); in instCombineSVEVectorBinOp()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp52 if (auto *II = dyn_cast<IntrinsicInst>(&I)) { in lower() local
53 switch (II->getIntrinsicID()) { in lower()
57 II->replaceAllUsesWith(II->getArgOperand(1)); in lower()
60 II->replaceAllUsesWith(II->getArgOperand(1)); in lower()
63 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower()
66 II->replaceAllUsesWith( in lower()
73 II->replaceAllUsesWith(ConstantTokenNone::get(Context)); in lower()
76 lowerSubFn(Builder, cast<CoroSubFnInst>(II)); in lower()
81 II->replaceAllUsesWith(UndefValue::get(II->getType())); in lower()
87 cast<GlobalVariable>(II->getArgOperand(0)->stripPointerCasts()) in lower()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostSelectOptimize.cpp129 LRU.stepBackward(II); in optimizeNZCVDefs()
133 if (InsideCmpRange && &II == FirstCmp) in optimizeNZCVDefs()
135 else if (&II == LastCmp) in optimizeNZCVDefs()
143 unsigned NewOpc = getNonFlagSettingVariant(II.getOpcode()); in optimizeNZCVDefs()
144 int DeadNZCVIdx = II.findRegisterDefOperandIdx(AArch64::NZCV); in optimizeNZCVDefs()
150 << II); in optimizeNZCVDefs()
151 II.setDesc(TII->get(NewOpc)); in optimizeNZCVDefs()
152 II.removeOperand(DeadNZCVIdx); in optimizeNZCVDefs()
156 constrainOperandRegClass(MF, *TRI, MRI, *TII, *RBI, II, II.getDesc(), in optimizeNZCVDefs()
157 II.getOperand(0), 0); in optimizeNZCVDefs()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp25 switch (II->getIntrinsicID()) { in readsThreadIndex()
34 static bool readsLaneId(const IntrinsicInst *II) { in readsLaneId() argument
40 switch (II->getIntrinsicID()) { in isNVVMAtomic()
97 if (readsThreadIndex(II) || readsLaneId(II)) in isSourceOfDivergence()
101 if (isNVVMAtomic(II)) in isSourceOfDivergence()
172 switch (II->getIntrinsicID()) { in simplifyNvvmIntrinsic()
384 SmallVector<Value *, 4> Args(II->args()); in simplifyNvvmIntrinsic()
395 II->getArgOperand(1), II->getName()); in simplifyNvvmIntrinsic()
399 return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(), in simplifyNvvmIntrinsic()
400 II->getName()); in simplifyNvvmIntrinsic()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerConstantIntrinsics.cpp46 if (auto *C = dyn_cast<Constant>(II->getOperand(0))) in lowerIsConstantIntrinsic()
48 return ConstantInt::getTrue(II->getType()); in lowerIsConstantIntrinsic()
49 return ConstantInt::getFalse(II->getType()); in lowerIsConstantIntrinsic()
110 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in lowerConstantIntrinsics() local
111 if (!II) in lowerConstantIntrinsics()
113 switch (II->getIntrinsicID()) { in lowerConstantIntrinsics()
129 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&*VH); in lowerConstantIntrinsics() local
130 if (!II) in lowerConstantIntrinsics()
133 switch (II->getIntrinsicID()) { in lowerConstantIntrinsics()
137 NewValue = lowerIsConstantIntrinsic(II); in lowerConstantIntrinsics()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DIdentifierTable.h494 : II(II), OldValue(II ? II->isPoisoned() : false) { in PoisonIdentifierRAIIObject()
495 if(II) in PoisonIdentifierRAIIObject()
500 if(II) in ~PoisonIdentifierRAIIObject()
600 if (II) return *II; in get()
605 if (II) in get()
606 return *II; in get()
617 return *II; in get()
624 return II; in get()
637 if (II) in getOwn()
638 return *II; in getOwn()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandReductions.cpp82 switch (II->getIntrinsicID()) { in expandReductions()
98 Worklist.push_back(II); in expandReductions()
105 for (auto *II : Worklist) { in expandReductions() local
107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
112 IRBuilder<> Builder(II); in expandReductions()
121 Value *Acc = II->getArgOperand(0); in expandReductions()
122 Value *Vec = II->getArgOperand(1); in expandReductions()
145 Value *Vec = II->getArgOperand(0); in expandReductions()
157 Value *Vec = II->getArgOperand(0); in expandReductions()
167 II->replaceAllUsesWith(Rdx); in expandReductions()
[all …]
H A DMIRCanonicalizerPass.cpp95 for (auto *II : instructions) { in rescheduleLexographically() local
98 II->print(OS); in rescheduleLexographically()
108 for (auto &II : StringInstrMap) { in rescheduleLexographically() local
112 II.second->dump(); in rescheduleLexographically()
152 for (auto *II : Instructions) { in rescheduleCanonically() local
168 for (auto *II : Instructions) { in rescheduleCanonically() local
169 if (II->getNumOperands() == 0) in rescheduleCanonically()
171 if (II->mayLoadOrStore()) in rescheduleCanonically()
183 if (II->getOperand(i).isImm()) { in rescheduleCanonically()
187 if (II->getOperand(i).isReg()) { in rescheduleCanonically()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp751 MBB.erase(II); in lowerDynamicAlloc()
886 MBB.erase(II); in lowerPrepareProbedAlloca()
909 MBB.erase(II); in lowerDynamicAreaOffset()
962 MBB.erase(II); in lowerCRSpilling()
1005 MBB.erase(II); in lowerCRRestore()
1120 MBB.erase(II); in lowerCRBitSpilling()
1174 MBB.erase(II); in lowerCRBitRestore()
1254 MBB.erase(II); in lowerOctWordSpilling()
1301 MBB.erase(II); in lowerACCSpilling()
1335 MBB.erase(II); in lowerACCRestore()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp444 {II->getArgOperand(3), BasePtr, Stride, II->getArgOperand(2)}); in tryCreateStridedLoadStore()
449 {II->getArgOperand(0), BasePtr, Stride, II->getArgOperand(3)}); in tryCreateStridedLoadStore()
451 Call->takeName(II); in tryCreateStridedLoadStore()
453 II->eraseFromParent(); in tryCreateStridedLoadStore()
485 if (II && II->getIntrinsicID() == Intrinsic::masked_gather && in runOnFunction()
488 } else if (II && II->getIntrinsicID() == Intrinsic::masked_scatter && in runOnFunction()
496 for (auto *II : Gathers) in runOnFunction() local
498 II, II->getType(), II->getArgOperand(0), II->getArgOperand(1)); in runOnFunction()
499 for (auto *II : Scatters) in runOnFunction() local
501 tryCreateStridedLoadStore(II, II->getArgOperand(0)->getType(), in runOnFunction()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DIdentifierResolver.cpp148 if (IdentifierInfo *II = Name.getAsIdentifierInfo()) in AddDecl() local
149 updatingIdentifier(*II); in AddDecl()
173 if (IdentifierInfo *II = Name.getAsIdentifierInfo()) in InsertDeclAfter() local
174 updatingIdentifier(*II); in InsertDeclAfter()
215 updatingIdentifier(*II); in RemoveDecl()
234 readingIdentifier(*II); in begin()
306 readingIdentifier(*II); in tryAddTopLevelDecl()
381 if (II.isOutOfDate()) in readingIdentifier()
386 if (II.isOutOfDate()) in updatingIdentifier()
389 if (II.isFromAST()) in updatingIdentifier()
[all …]

12345678910>>...26