| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/llvm/ |
| H A D | prefer-isa-or-dyn-cast-in-conditionals.cpp | 8 X *cast(Y*); 15 X *cast(Y *); 22 if (auto x = cast<X>(y)) in foo() 27 while (auto x = cast<X>(y)) in foo() 32 if (cast<X>(y)) in foo() 37 while (cast<X>(y)) in foo() 44 } while (cast<X>(y)); in foo() 100 if (cast<Z>(y)->foo()) in foo() 102 if (z->cast(y)) in foo() 111 if(z->cast(y)) in foo() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | objcbridge-static-cast.mm | 31 …pected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C pointer ty… 57 …ected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer t… 60 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 63 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 74 …pected-error {{cast of Objective-C pointer type 'NSString *' to C pointer type 'CFErrorRef' (aka '… 78 …expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointe… 82 …expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '__C… 89 …/ expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C point… 96 …ected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C pointer ty… 102 …expected-error {{cast of C pointer type 'CFMyErrorRef' (aka '__CFMyErrorRef *') to Objective-C poi… [all …]
|
| H A D | objcbridge-attribute-arc.mm | 31 …pected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C pointer ty… 57 …ected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer t… 60 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 63 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 70 …pected-error {{cast of Objective-C pointer type 'NSError *' to C pointer type 'CFErrorRef' (aka '_… 78 …expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointe… 82 …expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '__C… 89 …/ expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C point… 92 …pected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C pointer t… 102 …expected-error {{cast of C pointer type 'CFMyErrorRef' (aka '__CFMyErrorRef *') to Objective-C poi… [all …]
|
| H A D | objcbridge-attribute.mm | 31 …pected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C pointer ty… 57 …ected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer t… 60 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 63 …pected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointer … 70 …pected-error {{cast of Objective-C pointer type 'NSError *' to C pointer type 'CFErrorRef' (aka '_… 78 …expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C pointe… 82 …expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '__C… 89 …/ expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C point… 92 …pected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objective-C pointer t… 102 …expected-error {{cast of C pointer type 'CFMyErrorRef' (aka '__CFMyErrorRef *') to Objective-C poi… [all …]
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instruction.cpp | 132 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact() 201 cast<FPMathOperator>(this)->setFast(B); in setFast() 211 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs() 216 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs() 251 return cast<FPMathOperator>(this)->isFast(); in isFast() 261 return cast<FPMathOperator>(this)->hasNoNaNs(); in hasNoNaNs() 266 return cast<FPMathOperator>(this)->hasNoInfs(); in hasNoInfs() 524 const PHINode *otherPHI = cast<PHINode>(I); in isIdenticalToWhenDefined() 612 return !cast<LoadInst>(this)->isUnordered(); in mayWriteToMemory() 662 return cast<StoreInst>(this)->isVolatile(); in isVolatile() [all …]
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinAttributes.cpp | 33 return wrap(unwrap(attr).cast<AffineMapAttr>().getValue()); in mlirAffineMapAttrGetValue() 85 unwrap(attr).cast<DictionaryAttr>().getValue()[pos]; in mlirDictionaryAttrGetElement() 113 return unwrap(attr).cast<FloatAttr>().getValueAsDouble(); in mlirFloatAttrGetValueDouble() 129 return unwrap(attr).cast<IntegerAttr>().getInt(); in mlirIntegerAttrGetValueInt() 133 return unwrap(attr).cast<IntegerAttr>().getSInt(); in mlirIntegerAttrGetValueSInt() 137 return unwrap(attr).cast<IntegerAttr>().getUInt(); in mlirIntegerAttrGetValueUInt() 153 return unwrap(attr).cast<BoolAttr>().getValue(); in mlirBoolAttrGetValue() 274 return wrap(unwrap(attr).cast<TypeAttr>().getValue()); in mlirTypeAttrGetValue() 300 .cast<ElementsAttr>() in mlirElementsAttrGetValue() 306 return unwrap(attr).cast<ElementsAttr>().isValidIndex( in mlirElementsAttrIsValidIndex() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInstr.h | 57 return cast<ConstantInt>(getArgOperand(IndexArg)); in getRawIndex() 121 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise() 134 auto *Inst = cast<Instruction>(Arg); in clearPromise() 173 Result.Resumers = cast<ConstantArray>(Initializer); in getInfo() 312 return cast<GlobalVariable>( in getAsyncFunctionPointer() 333 return cast<GlobalVariable>( in getAsyncFunctionPointer() 425 return cast<AnyCoroIdInst>(getArgOperand(IdArg)); in getId() 542 return cast<Function>( in getAsyncContextProjectionFunction() 547 return cast<CoroAsyncResumeInst>( in getResumeFunction() 552 return cast<Function>( in getMustTailCallFunction() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | phi-pointercasts.ll | 303 %cast.2 = bitcast i8* %cast.1 to i32* 305 %cast.3 = bitcast i32* %cast.2 to i8* 357 %cast.2 = bitcast i8* %cast.1 to i64* 358 %cast.3 = bitcast i64* %cast.2 to i8* 370 %p = phi i8* [ %cast.0, %b0 ], [ %cast.3, %b1 ], [ %cast.4, %b2 ], [ %cast.5, %b3] 419 %cast.2 = bitcast i8* %cast.1 to i64* 420 %cast.3 = bitcast i64* %cast.2 to i8* 432 %p = phi i8* [ %cast.0, %b0 ], [ %cast.3, %b1 ], [ %cast.4, %b2 ], [ %cast.5, %b3] 482 %cast.2 = bitcast i8* %cast.1 to i64* 483 %cast.3 = bitcast i64* %cast.2 to i8* [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-query/ |
| H A D | QueryParserTest.cpp | 78 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 81 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 92 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 95 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 120 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 135 cast<InvalidQuery>(Q)->ErrStr); in TEST_F() 151 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F() 157 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F() 163 EXPECT_EQ("bar", cast<LetQuery>(Q)->Name); in TEST_F() 173 EXPECT_EQ("x", cast<LetQuery>(Q)->Name); in TEST_F() [all …]
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | Quant.cpp | 47 return unwrap(type).cast<quant::QuantizedType>().getFlags(); in mlirQuantizedTypeGetFlags() 51 return unwrap(type).cast<quant::QuantizedType>().isSigned(); in mlirQuantizedTypeIsSigned() 59 return unwrap(type).cast<quant::QuantizedType>().getStorageTypeMin(); in mlirQuantizedTypeGetStorageTypeMin() 63 return unwrap(type).cast<quant::QuantizedType>().getStorageTypeMax(); in mlirQuantizedTypeGetStorageTypeMax() 68 .cast<quant::QuantizedType>() in mlirQuantizedTypeGetStorageTypeIntegralWidth() 90 unwrap(type).cast<quant::QuantizedType>())); in mlirQuantizedTypeCastToStorageType() 144 return unwrap(type).cast<quant::UniformQuantizedType>().getScale(); in mlirUniformQuantizedTypeGetScale() 176 .cast<quant::UniformQuantizedPerAxisType>() in mlirUniformQuantizedPerAxisTypeGetNumDims() 183 .cast<quant::UniformQuantizedPerAxisType>() in mlirUniformQuantizedPerAxisTypeGetScale() 190 .cast<quant::UniformQuantizedPerAxisType>() in mlirUniformQuantizedPerAxisTypeGetZeroPoint() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/ |
| H A D | qualified-auto.rst | 39 const auto Foo = cast<int *>(Baz1); 40 const auto Bar = cast<const int *>(Baz2); 41 volatile auto FooBar = cast<int *>(Baz3); 42 auto BarFoo = cast<int **>(Baz4); 48 auto *const Foo = cast<int *>(Baz1); 51 auto *BarFoo = cast<int **>(Baz4); 64 auto Foo1 = cast<const int *>(Bar1); 65 auto *Foo2 = cast<const int *>(Bar2); 66 auto &Foo3 = cast<const int &>(Bar3); 73 auto *Foo2 = cast<const int *>(Bar2); [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InferAddressSpaces/AMDGPU/ |
| H A D | intrinsics.ll | 6 %cast = addrspacecast i8 addrspace(3)* %group.ptr to i8* 14 %cast = addrspacecast i8 addrspace(3)* %global.ptr to i8* 22 %cast = addrspacecast i32 addrspace(1)* %global.ptr to i32* 30 %cast = addrspacecast i32 addrspace(3)* %group.ptr to i32* 38 %cast = addrspacecast i64 addrspace(1)* %global.ptr to i64* 46 %cast = addrspacecast i64 addrspace(3)* %group.ptr to i64* 54 %cast = addrspacecast i32 addrspace(1)* %global.ptr to i32* 62 %cast = addrspacecast i32 addrspace(3)* %group.ptr to i32* 78 %cast = addrspacecast i64 addrspace(3)* %group.ptr to i64* 87 %cast = addrspacecast i64 addrspace(3)* %group.ptr to i64* [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCFragment.cpp | 275 delete cast<MCAlignFragment>(this); in destroy() 278 delete cast<MCDataFragment>(this); in destroy() 284 delete cast<MCFillFragment>(this); in destroy() 287 delete cast<MCNopsFragment>(this); in destroy() 290 delete cast<MCRelaxableFragment>(this); in destroy() 293 delete cast<MCOrgFragment>(this); in destroy() 302 delete cast<MCLEBFragment>(this); in destroy() 308 delete cast<MCSymbolIdFragment>(this); in destroy() 314 delete cast<MCCVDefRangeFragment>(this); in destroy() 320 delete cast<MCDummyFragment>(this); in destroy() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | IntrinsicInst.h | 121 return isa<CallInst>(V) && classof(cast<CallInst>(V)); in classof() 228 return cast<DIArgList>(getRawLocation())->getArgs().size(); in getNumVariableLocationOps() 259 return cast<DILocalVariable>(getRawVariable()); in getVariable() 263 return cast<DIExpression>(getRawExpression()); in getExpression() 878 return cast<ConstantInt>(getRawElementSizeInBytes()); in getElementSizeInBytesCst() 1014 return cast<ConstantInt>(MemSetInst::getLength()); in getLength() 1073 return cast<ConstantInt>(MemCpyInst::getLength()); in getLength() 1243 return cast<GlobalVariable>( in getName() 1301 return cast<Value>(const_cast<Value *>(getArgOperand(2))); in getTargetValue() 1354 return cast<MDNode>(MV->getMetadata()); in getScopeList() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Vectorize/ |
| H A D | VPlanSlpTest.cpp | 113 auto *CombinedAdd = cast<VPInstruction>(CombinedStore->getOperand(0)); in TEST_F() 116 auto *CombinedLoadA = cast<VPInstruction>(CombinedAdd->getOperand(0)); in TEST_F() 117 auto *CombinedLoadB = cast<VPInstruction>(CombinedAdd->getOperand(1)); in TEST_F() 187 auto *CombinedAdd = cast<VPInstruction>(CombinedStore->getOperand(0)); in TEST_F() 332 cast<VPInstruction>(CombinedStore->getOperand(0)); in checkReorderExample() 336 cast<VPInstruction>(CombinedAdd->getOperand(0)); in checkReorderExample() 338 cast<VPInstruction>(CombinedAdd->getOperand(1)); in checkReorderExample() 342 cast<VPInstruction>(CombinedMulAB->getOperand(0)); in checkReorderExample() 350 cast<VPInstruction>(CombinedMulAB->getOperand(1)); in checkReorderExample() 360 cast<VPInstruction>(CombinedMulCD->getOperand(0)); in checkReorderExample() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 358 const ConstantExpr *LE = cast<ConstantExpr>(L); in cmpConstants() 460 StructType *STyL = cast<StructType>(TyL); in cmpTypes() 461 StructType *STyR = cast<StructType>(TyR); in cmpTypes() 476 FunctionType *FTyL = cast<FunctionType>(TyL); in cmpTypes() 477 FunctionType *FTyR = cast<FunctionType>(TyR); in cmpTypes() 495 auto *STyL = cast<ArrayType>(TyL); in cmpTypes() 496 auto *STyR = cast<ArrayType>(TyR); in cmpTypes() 503 auto *STyL = cast<VectorType>(TyL); in cmpTypes() 504 auto *STyR = cast<VectorType>(TyR); in cmpTypes() 599 auto *CBR = cast<CallBase>(R); in cmpOperations() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ |
| H A D | bitcast-vector-fold.ll | 116 ret float %cast 124 ret double %cast 140 ret <4 x i32> %cast 148 ret <4 x i32> %cast 156 ret <4 x i32> %cast 164 ret <8 x i16> %cast 172 ret <8 x i16> %cast 180 ret <8 x i16> %cast 188 ret <16 x i8> %cast 196 ret <16 x i8> %cast [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | tbi.ll | 11 %cast = inttoptr i64 %and to i32* 12 %load = load i32, i32* %cast 22 %cast = inttoptr i64 %and to i32* 35 %load = load i32, i32* %cast 45 %load = load i64, i64* %cast 55 store i32 %v, i32* %cast 67 %load = load i32, i32* %cast 79 %load = load i32, i32* %cast 91 %load = load i32, i32* %cast 100 %load = load i32, i32* %cast [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | tdc-04.ll | 11 %cast = bitcast float %x to i32 12 %res = icmp slt i32 %cast, 0 21 %cast = bitcast float %x to i32 22 %res = icmp sgt i32 %cast, -1 31 %cast = bitcast double %x to i64 32 %res = icmp slt i64 %cast, 0 42 %res = icmp sgt i64 %cast, -1 52 %res = icmp slt i128 %cast, 0 62 %res = icmp sgt i128 %cast, -1 72 %res = icmp slt i32 %cast, -1 [all …]
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | cast-string.td | 4 // This file tests the !cast bang operator with the result type string. 13 string str2 = !cast<string>(str); 14 string str3 = !cast<string>(str # " here"); 23 string str = !cast<string>(int1) # " " # !cast<string>(int2); 32 string str = !cast<string>(bit1) # ", " # !cast<string>(bit2); 41 string str = !cast<string>(bits1) # " and " # !cast<string>(bits2); 48 string str = !cast<string>(Rec1) # ", " # !cast<string>(Rec2); 56 string str = !cast<string>(IntList);
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ThreadSafetyLogical.cpp | 49 return RNeg ? RightOrOperator(cast<And>(RHS)) in implies() 50 : RightAndOperator(cast<And>(RHS)); in implies() 56 return RNeg ? RightAndOperator(cast<Or>(RHS)) in implies() 57 : RightOrOperator(cast<Or>(RHS)); in implies() 61 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); in implies() 74 return LNeg ? LeftAndOperator(cast<And>(LHS)) in implies() 75 : LeftOrOperator(cast<And>(LHS)); in implies() 81 return LNeg ? LeftOrOperator(cast<Or>(LHS)) in implies() 82 : LeftAndOperator(cast<Or>(LHS)); in implies() 86 return implies(cast<Not>(LHS)->exp(), !LNeg, RHS, RNeg); in implies() [all …]
|
| /llvm-project-15.0.7/openmp/libompd/src/ |
| H A D | omp-icv.cpp | 155 .cast("kmp_base_info_t") in ompd_get_dynamic() 282 .cast("kmp_base_info_t") in ompd_get_nthreads_aux() 288 .cast("kmp_team_p", 1) in ompd_get_nthreads_aux() 390 .cast("int", 1) in ompd_get_nthreads() 437 .cast("char", 1) in ompd_get_affinity_format() 458 .cast("char", 1) in ompd_get_tool_libraries() 482 .cast("kmp_base_info_t") in ompd_get_default_device() 525 .cast("char", 1) in ompd_get_tool_verbose_init() 649 .cast("kmp_desc_t") in ompd_get_thread_num() 928 .cast("int", 1) in ompd_get_proc_bind() [all …]
|
| H A D | omp-debug.cpp | 208 .cast("kmp_info_t", 2) in ompd_get_thread_in_parallel() 347 .cast("kmp_team_p", 1) in ompd_get_enclosing_parallel_handle() 398 .cast("kmp_team_p", 1) in ompd_get_task_parallel_handle() 480 .cast("kmp_base_info_t") in ompd_get_curr_task_handle() 490 .cast("kmp_team_p", 1) in ompd_get_curr_task_handle() 749 th.cast("kmp_base_info_t") in ompd_get_thread_handle() 751 .cast("kmp_desc_t") in ompd_get_thread_handle() 753 .cast("kmp_desc_base_t") in ompd_get_thread_handle() 796 .cast("kmp_desc_t") in ompd_get_thread_id() 800 .cast("kmp_thread_t") in ompd_get_thread_id() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | SVEInstrFormats.td | 5257 (!cast<Instruction>(NAME # "_B") (i32 0), (!cast<SDNodeXForm>("trunc_imm") $imm5b))>; 5259 (!cast<Instruction>(NAME # "_H") (i32 0), (!cast<SDNodeXForm>("trunc_imm") $imm5b))>; 5300 …(!cast<Instruction>(NAME # "_B") (i32 0), (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXForm>("tr… 5302 …(!cast<Instruction>(NAME # "_H") (i32 0), (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXForm>("tr… 5304 (!cast<Instruction>(NAME # "_S") (i32 0), (!cast<Instruction>("MOVi32imm") $imm))>; 5306 (!cast<Instruction>(NAME # "_D") (i64 0), (!cast<Instruction>("MOVi64imm") $imm))>; 5312 …(!cast<Instruction>(NAME # "_B") simm5_8b:$imm5, (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXFo… 5314 …(!cast<Instruction>(NAME # "_H") simm5_16b:$imm5, (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXF… 5402 …(!cast<Instruction>(NAME # "_B") GPR32:$Rn, (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXForm>("… 5404 …(!cast<Instruction>(NAME # "_H") GPR32:$Rn, (!cast<Instruction>("MOVi32imm") (!cast<SDNodeXForm>("… [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | vector-shuffle-masked.ll | 12 %mask.cast = bitcast i8 %mask to <8 x i1> 25 %mask.cast = bitcast i8 %mask to <8 x i1> 39 %mask.cast = bitcast i8 %mask to <8 x i1> 1029 %res = select <8 x i1> %mask.cast, <8 x i32> %shuffle.cast, <8 x i32> %passthru 1042 %res = select <8 x i1> %mask.cast, <8 x i32> %shuffle.cast, <8 x i32> zeroinitializer 1056 %res = select <8 x i1> %mask.cast, <8 x i32> %shuffle.cast, <8 x i32> %passthru 1069 %res = select <8 x i1> %mask.cast, <8 x i32> %shuffle.cast, <8 x i32> zeroinitializer 1082 %res = select <8 x i1> %mask.cast, <8 x float> %shuffle.cast, <8 x float> %passthru 1095 %res = select <8 x i1> %mask.cast, <8 x float> %shuffle.cast, <8 x float> zeroinitializer 1109 %res = select <8 x i1> %mask.cast, <8 x float> %shuffle.cast, <8 x float> %passthru [all …]
|