Home
last modified time | relevance | path

Searched refs:CInt (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang/test/Sema/
H A Dcast.c24 typedef _Complex int CInt; typedef
37 (void) (CInt) v; in testBool()
51 (void) (CInt) v; in testInt()
73 (void) (CInt) v; in testLong()
87 (void) (CInt) v; in testFloat()
99 (void) (CInt) v; in testDouble()
105 void testCI(CInt v) { in testCI()
111 (void) (CInt) v; in testCI()
123 (void) (CInt) v; in testCLong()
135 (void) (CInt) v; in testCFloat()
[all …]
H A Ddllexport-2.cpp14 typedef const int CInt; typedef
21 __declspec(dllexport) CInt j2; //expected-error {{default initialization of an object of const type…
26 __declspec(dllexport) CInt j3 = 3;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-qualifiermixing.cpp14 using CInt = const int; typedef
62 void qualifiedThroughTypedef1(int I, CInt CI) {} in qualifiedThroughTypedef1()
69 void qualifiedThroughTypedef2(CInt CI1, const int CI2) {} in qualifiedThroughTypedef2()
75 void qualifiedThroughTypedef3(CInt CI1, const MyInt1 CI2, const int CI3) {} in qualifiedThroughTypedef3()
83 void qualifiedThroughTypedef4(CInt CI1, const MyInt1 CI2, const MyInt2 CI3) {} in qualifiedThroughTypedef4()
104 void referenceToTypedef1(CInt &CIR, int I) {} in referenceToTypedef1()
H A Deasily-swappable-parameters-len2.cpp113 using CInt = const int; typedef
170 void qualifiedThroughTypedef1(int I, CInt CI) {} // NO-WARN: Different qualifiers. in qualifiedThroughTypedef1()
172 void qualifiedThroughTypedef2(CInt CI1, const int CI2) {} in qualifiedThroughTypedef2()
178 void qualifiedThroughTypedef3(CInt CI1, const MyInt1 CI2, const int CI3) {} in qualifiedThroughTypedef3()
186 void qualifiedThroughTypedef4(CInt CI1, const MyInt1 CI2, const MyInt2 CI3) {} in qualifiedThroughTypedef4()
232 void referenceToTypedef1(CInt &CIR, int I) {} in referenceToTypedef1()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dinitialization.cpp226 typedef Int const CInt; typedef
227 typedef CInt Arr[2];
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp156 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() local
157 if (!CInt) in handlePhiDef()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp561 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps() local
562 if (!CInt) in simplifyX86insertps()
573 uint8_t Imm = CInt->getZExtValue(); in simplifyX86insertps()
H A DX86ISelLowering.cpp7265 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) { in getTargetConstantBitsFromNode() local
7266 Mask = CInt->getValue(); in getTargetConstantBitsFromNode()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1814 const APInt &CInt = C->getAPIntValue(); in getPowerOf2Factor() local
1815 if (CInt.getBoolValue()) in getPowerOf2Factor()
1816 MaxFactor = CInt.countTrailingZeros(); in getPowerOf2Factor()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp721 const APInt *CInt; in tryFactorization() local
722 if (match(V, m_APInt(CInt))) { in tryFactorization()
723 if (!CInt->isMinSignedValue()) in tryFactorization()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3424 if (auto *CInt = dyn_cast<ConstantInt>(Elt)) { in computeKnownBits() local
3425 const APInt &Value = CInt->getValue(); in computeKnownBits()
3442 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) { in computeKnownBits() local
3443 Known = KnownBits::makeConstant(CInt->getValue()); in computeKnownBits()
4464 if (auto *CInt = dyn_cast<ConstantInt>(Elt)) { in ComputeNumSignBits() local
4465 const APInt &Value = CInt->getValue(); in ComputeNumSignBits()
11617 auto *CInt = dyn_cast<ConstantSDNode>(Op); in getConstantRawBits() local
11619 assert((CInt || CFP) && "Unknown constant"); in getConstantRawBits()
11620 SrcBitElements[I] = CInt ? CInt->getAPIntValue().trunc(SrcEltSizeInBits) in getConstantRawBits()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2635 if (ConstantInt *CInt = dyn_cast<ConstantInt>(CI->getArgOperand(2))) { in optimizeStrToInt() local
2636 return convertStrToInt(CI, Str, EndPtr, CInt->getSExtValue(), AsSigned, B); in optimizeStrToInt()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp6394 ConstantInt *CInt = dyn_cast<ConstantInt>(I->getOperand(OpIdx)); in getEntryCost() local
6395 if (!CInt) { in getEntryCost()
6401 !CInt->getValue().isPowerOf2()) in getEntryCost()
6404 CInt0 = CInt; in getEntryCost()
6407 if (CInt0 != CInt) in getEntryCost()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4230 const APInt &CInt = C->getAPIntValue(); in skipExtensionForVectorMULL() local
4233 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32)); in skipExtensionForVectorMULL()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp9437 const APInt &CInt = C->getAPIntValue(); in SkipExtensionForVMULL() local
9440 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32)); in SkipExtensionForVMULL()