| /llvm-project-15.0.7/flang/runtime/ |
| H A D | pointer.cpp | 30 pointer.Establish( in RTNAME() 57 pointer = mold; in RTNAME() 63 pointer.set_base_addr(target); in RTNAME() 67 pointer = target; in RTNAME() 73 pointer = target; in RTNAME() 75 int rank{pointer.rank()}; in RTNAME() 90 pointer = target; in RTNAME() 92 int rank{pointer.rank()}; in RTNAME() 119 if (!pointer.IsPointer()) { in RTNAME() 138 if (!pointer.IsPointer()) { in RTNAME() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | os_smart_ptr.h | 13 if (pointer) { in smart_ptr() 14 _retain(pointer); in smart_ptr() 18 smart_ptr(smart_ptr const &rhs) : pointer(rhs.pointer) { in smart_ptr() 19 if (pointer) { in smart_ptr() 20 _retain(pointer); in smart_ptr() 35 if (pointer) { in ~smart_ptr() 45 return pointer; in get() 50 return &pointer; in get_for_out_param() 54 return pointer; 65 pointer = p.pointer; in swap() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | comptypes-7.m | 24 /* The incompatible pointer types should all generate warnings, while the 25 incompatible integer to/from pointer conversions default to an error. */ 27 …obj = i; // expected-error {{incompatible integer to pointer conversion assigning to 'id' from 'in… 28 obj = j; // expected-warning {{incompatible pointer types assigning to 'id' from 'int *'}} 31 …obj_p = j; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'in… 34 …obj_c = j; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'int *'}} 37 obj_C = j; // expected-warning {{incompatible pointer types assigning to 'Class' from 'int *'}} 44 j = obj; // expected-warning {{incompatible pointer types assigning to 'int *' from 'id'}} 46 …j = obj_c; // expected-warning {{incompatible pointer types assigning to 'int *' from 'MyClass *'}} 47 j = obj_C; // expected-warning {{incompatible pointer types assigning to 'int *' from 'Class'}} [all …]
|
| H A D | arc-non-pod-memaccess.m | 25 // expected-note{{explicitly cast the pointer to silence this warning}} 27 // expected-note{{explicitly cast the pointer to silence this warning}} 29 // expected-note{{explicitly cast the pointer to silence this warning}} 33 // expected-note{{explicitly cast the pointer to silence this warning}} 35 // expected-note{{explicitly cast the pointer to silence this warning}} 37 // expected-note{{explicitly cast the pointer to silence this warning}} 41 // expected-note{{explicitly cast the pointer to silence this warning}} 43 // expected-note{{explicitly cast the pointer to silence this warning}} 45 // expected-note{{explicitly cast the pointer to silence this warning}} 49 // expected-note{{explicitly cast the pointer to silence this warning}} [all …]
|
| H A D | attr-cf_returns.m | 18 …expected-warning{{'cf_returns_retained' attribute only applies to functions that return a pointer}} 19 …expected-warning{{'cf_returns_retained' attribute only applies to functions that return a pointer}} 25 …/ expected-warning{{'cf_returns_retained' attribute only applies to methods that return a pointer}} 26 …/ expected-warning{{'cf_returns_retained' attribute only applies to methods that return a pointer}} 31 …xpected-warning{{'cf_returns_retained' attribute only applies to properties that return a pointer}} 32 …xpected-warning{{'cf_returns_retained' attribute only applies to properties that return a pointer}} 38 …expected-warning{{'cf_returns_retained' attribute only applies to pointer-to-CF-pointer parameters… 39 …expected-warning{{'cf_returns_retained' attribute only applies to pointer-to-CF-pointer parameters… 40 …expected-warning{{'cf_returns_retained' attribute only applies to pointer-to-CF-pointer parameters… 41 …expected-warning{{'cf_returns_retained' attribute only applies to pointer-to-CF-pointer parameters… [all …]
|
| H A D | arc-type-conversion.m | 1 …fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -verify -fblocks -Wno-incompatible-pointer-types %s 10 …(void)(int*)arg; // expected-error {{cast of an Objective-C pointer to 'int *' is disallowed with … 18 …cvt((void*)arg); // expected-error {{cast of Objective-C pointer type 'id' to C pointer type 'void… 19 …// expected-error {{implicit conversion of C pointer type 'void *' to Objective-C pointer type 'id… 25 …return arg; // expected-error {{implicit conversion of Objective-C pointer type 'id' to C pointer … 86 (void)(id)&lv; // expected-error {{cast of an indirect pointer to an Objective-C pointer to 'id'}} 87 (void)(id*)lv; // expected-error {{cast of an Objective-C pointer to '__strong id *'}} 88 …(void)(NSString*)&lv; // expected-error {{cast of an indirect pointer to an Objective-C pointer to… 90 …(void)(Block)&lv; // expected-error {{cast of an indirect pointer to an Objective-C pointer to 'Bl… 91 (void)(Block*)lv; // expected-error {{cast of an Objective-C pointer to '__strong Block *'}} [all …]
|
| H A D | aarch64-sve-types.m | 7 @property(nullable) __SVInt8_t s8; // expected-error {{cannot be applied to non-pointer type}} 8 @property(nullable) __SVInt16_t s16; // expected-error {{cannot be applied to non-pointer type}} 9 @property(nullable) __SVInt32_t s32; // expected-error {{cannot be applied to non-pointer type}} 10 @property(nullable) __SVInt64_t s64; // expected-error {{cannot be applied to non-pointer type}} 12 @property(nullable) __SVUint8_t u8; // expected-error {{cannot be applied to non-pointer type}} 13 @property(nullable) __SVUint16_t u16; // expected-error {{cannot be applied to non-pointer type}} 14 @property(nullable) __SVUint32_t u32; // expected-error {{cannot be applied to non-pointer type}} 15 @property(nullable) __SVUint64_t u64; // expected-error {{cannot be applied to non-pointer type}} 17 @property(nullable) __SVFloat16_t f16; // expected-error {{cannot be applied to non-pointer type}} 18 @property(nullable) __SVFloat32_t f32; // expected-error {{cannot be applied to non-pointer type}} [all …]
|
| H A D | comptypes-1.m | 40 …obj_c = obj_cp; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'My… 41 …obj_c = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl… 42 …obj_c = obj_CP; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl… 51 …obj_p = obj_C; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' fro… 58 …obj_cp = obj_c; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' fr… 60 …obj_cp = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' fr… 64 …obj_C = obj_p; // expected-warning {{incompatible pointer types assigning to 'Class' from 'id<My… 65 …obj_C = obj_c; // expected-warning {{incompatible pointer types assigning to 'Class' from 'MyCla… 66 …obj_C = obj_cp; // expected-warning {{incompatible pointer types assigning to 'Class' from 'MyOth… 95 …if (obj_c == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *… [all …]
|
| H A D | objcbridge-attribute-arc.m | 46 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka 'struct __CFError *') to Objective-… 75 … *)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErrorRef *') to O… 78 …r*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErrorRef *') to O… 85 …d)(CFErrorRef)ns; // expected-error {{cast of Objective-C pointer type 'NSError *' to C pointer ty… 93 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErrorRef *') to Objectiv… 97 …// expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '… 104 …id)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka 'struct __CFErrorRef *') to Ob… 117 …)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct __CFMyErrorRef *') to … 136 …(void)(CFErrorRef)ID; // expected-error {{cast of Objective-C pointer type 'id' to C pointer type … 234 …ror *)obj; // expected-error {{cast of C pointer type 'CFFooRef' (aka 'struct __CFFoo *') to Objec… [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | comptypes-7.mm | 26 …obj = i; // expected-error {{incompatible integer to pointer conversion assigning to 'id' from 'in… 27 obj = j; // expected-error {{incompatible pointer types assigning to 'id' from 'int *'}} 30 …obj_p = j; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from 'int … 33 obj_c = j; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'int *'}} 36 obj_C = j; // expected-error {{incompatible pointer types assigning to 'Class' from 'int *'}} 43 j = obj; // expected-error {{incompatible pointer types assigning to 'int *' from 'id'}} 45 j = obj_c; // expected-error {{incompatible pointer types assigning to 'int *' from 'MyClass *'}} 46 j = obj_C; // expected-error {{incompatible pointer types assigning to 'int *' from 'Class'}} 48 …if (obj == i) foo() ; // expected-error {{comparison between pointer and integer ('id' and 'int')}} 49 …if (i == obj) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'id')}} [all …]
|
| H A D | objcbridge-attribute-arc.mm | 31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point… 57 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C poi… 60 …ror *)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objec… 63 …rror*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objec… 70 …d)(CFErrorRef)ns; // expected-error {{cast of Objective-C pointer type 'NSError *' to C pointer ty… 78 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C poi… 82 …// expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '… 89 …id)(id)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objec… 92 …1, P2>)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objec… 102 …)(id)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka '__CFMyErrorRef *') to Obj… [all …]
|
| H A D | objcbridge-attribute.mm | 31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point… 57 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C poi… 60 …ror *)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objec… 63 …rror*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objec… 70 …d)(CFErrorRef)ns; // expected-error {{cast of Objective-C pointer type 'NSError *' to C pointer ty… 78 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka '__CFErrorRef *') to Objective-C poi… 82 …// expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '… 89 …id)(id)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objec… 92 …1, P2>)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka '__CFErrorRef *') to Objec… 102 …)(id)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka '__CFMyErrorRef *') to Obj… [all …]
|
| H A D | comptypes-1.mm | 40 …obj_c = obj_cp; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'MyOt… 41 …obj_c = obj_C; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas… 42 …obj_c = obj_CP; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas… 51 …obj_p = obj_C; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from … 58 …obj_cp = obj_c; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from… 60 …obj_cp = obj_C; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from… 64 …obj_C = obj_p; // expected-error {{incompatible pointer types assigning to 'Class' from 'id<MyPr… 65 …obj_C = obj_c; // expected-error {{incompatible pointer types assigning to 'Class' from 'MyClass… 66 …obj_C = obj_cp; // expected-error {{incompatible pointer types assigning to 'Class' from 'MyOther… 95 …if (obj_c == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *… [all …]
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | upgrade-frame-pointer.ll | 3 ;; "frame-pointer". 8 define void @all0() "no-frame-pointer-elim"="true" { ret void } 18 define void @none() "no-frame-pointer-elim"="false" { ret void } 20 ;; Don't add "frame-pointer" if neither "no-frame-pointer-elim" nor 21 ;; "no-frame-pointer-elim-non-leaf" is present. 25 attributes #0 = { readnone "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" } 26 attributes #1 = { readnone "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" } 29 ; CHECK: attributes #0 = { "frame-pointer"="all" } 30 ; CHECK: attributes #1 = { readnone "frame-pointer"="all" } 31 ; CHECK: attributes #2 = { "frame-pointer"="non-leaf" } [all …]
|
| /llvm-project-15.0.7/mlir/test/python/ |
| H A D | execution_engine.py | 175 ctypes.pointer(ctypes.pointer(get_unranked_memref_descriptor(inp_arr))), 186 ctypes.pointer( 226 ctypes.pointer(ctypes.pointer(get_ranked_memref_descriptor(inp_arr)))) 251 arg1_memref_ptr = ctypes.pointer( 253 arg2_memref_ptr = ctypes.pointer( 255 res_memref_ptr = ctypes.pointer( 290 arg1_memref_ptr = ctypes.pointer( 292 arg2_memref_ptr = ctypes.pointer( 294 arg3_memref_ptr = ctypes.pointer( 334 arg1_memref_ptr = ctypes.pointer( [all …]
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | opt-override-frame-pointer.ll | 5 ; Check behavior of -frame-pointer flag and frame-pointer atttribute. 31 ; ALL-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="all" } 32 ; ALL-DAG: attributes [[NONE_ATTR]] = { nounwind "frame-pointer"="none" } 36 ; NONE-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="none" } 37 ; NONE-DAG: attributes [[ALL_ATTR]] = { nounwind "frame-pointer"="all" } 41 ; NONLEAF-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="non-leaf" } 42 ; NONLEAF-DAG: attributes [[ALL_ATTR]] = { nounwind "frame-pointer"="all" } 43 ; NONLEAF-DAG: attributes [[NONE_ATTR]] = { nounwind "frame-pointer"="none" } 48 attributes #1 = { nounwind "frame-pointer"="all" } 49 attributes #2 = { nounwind "frame-pointer"="none" } [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | nonnull.c | 94 int evil_nonnull_func(int* pointer, void * pv) in evil_nonnull_func() argument 99 return *pointer; in evil_nonnull_func() 102 pointer = pv; in evil_nonnull_func() 103 if (!pointer) in evil_nonnull_func() 106 return *pointer; in evil_nonnull_func() 117 return *pointer; in another_evil_nonnull_func() 120 set_param_to_null(&pointer); in another_evil_nonnull_func() 121 if (!pointer) in another_evil_nonnull_func() 124 return *pointer; in another_evil_nonnull_func() 135 void yet_another_evil_nonnull_func(int* pointer) in yet_another_evil_nonnull_func() argument [all …]
|
| /llvm-project-15.0.7/llvm/utils/gdb-scripts/ |
| H A D | prettyprinters.py | 376 return (pointer, value) 382 self.pointer = pointer 406 def __init__(self, pointer): argument 407 self.pointer = pointer 440 def cast_pointer(pointer): argument 442 pointer = pointer.cast(impl_type.pointer()) 444 return pointer 445 return pointer.cast(derived_type.pointer()) 472 pointer = self.sentinel 474 pointer = pointer['Next'].cast(pointer.type) [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/MachO/ |
| H A D | rebase.test | 8 # CHECK-NEXT:__DATA __data 0x00001010 pointer 9 # CHECK-NEXT:__DATA __data 0x00001028 pointer 10 # CHECK-NEXT:__DATA __data 0x00001030 pointer 11 # CHECK-NEXT:__DATA __data 0x00001038 pointer 12 # CHECK-NEXT:__DATA __data 0x00001040 pointer 13 # CHECK-NEXT:__DATA __data 0x00001258 pointer 14 # CHECK-NEXT:__DATA __mystuff 0x00001278 pointer 15 # CHECK-NEXT:__DATA __mystuff 0x00001288 pointer 16 # CHECK-NEXT:__DATA __mystuff 0x00001298 pointer 17 # CHECK-NEXT:__DATA __mystuff 0x000012A8 pointer
|
| /llvm-project-15.0.7/lldb/examples/summaries/ |
| H A D | unicode_strings.py | 17 pointer = value.GetChildMemberWithName("first").GetValueAsUnsigned(0) 19 if pointer == 0: 24 string_data = value.process.ReadMemory(pointer, length, error) 29 pointer = value.GetChildMemberWithName("first").GetValueAsUnsigned(0) 32 if pointer == 0: 37 string_data = value.process.ReadMemory(pointer, length, error) 43 pointer = value.GetChildMemberWithName("first").GetValueAsUnsigned(0) 46 if pointer == 0: 51 string_data = value.process.ReadMemory(pointer, length, error)
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | address-spaces.cl | 32 …ted-error@-4 {{assigning '__constant int *' to '__generic int *' changes address space of pointer}} 40 …cted-error@-2 {{casting '__local int *' to type '__global int *' changes address space of pointer}} 46 …d-error@-2 {{casting '__constant int *' to type '__global int *' changes address space of pointer}} 58 …ed-error@-2 {{casting '__private int *' to type '__global int *' changes address space of pointer}} 64 …cted-error@-2 {{casting '__global int *' to type '__local int *' changes address space of pointer}} 70 …ed-error@-2 {{casting '__constant int *' to type '__local int *' changes address space of pointer}} 82 …ted-error@-2 {{casting '__private int *' to type '__local int *' changes address space of pointer}} 88 …d-error@-2 {{casting '__global int *' to type '__constant int *' changes address space of pointer}} 94 …ed-error@-2 {{casting '__local int *' to type '__constant int *' changes address space of pointer}} 106 …ed-error@-2 {{casting '__global int *' to type '__private int *' changes address space of pointer}} [all …]
|
| /llvm-project-15.0.7/llvm/docs/PDB/ |
| H A D | CodeViewTypes.rst | 58 **Usage:** Describes a pointer to another type. 87 Near16 = 0x00, // 16 bit pointer 88 Far16 = 0x01, // 16:16 far pointer 97 Near32 = 0x0a, // 32 bit pointer 98 Far32 = 0x0b, // 16:32 pointer 99 Near64 = 0x0c // 64 bit pointer 110 Flat32 = 0x01, // "flat" pointer 117 WinRTSmartPointer = 0x01, // pointer is a WinRT smart pointer 118 …LValueRefThisPointer = 0x02, // pointer is a 'this' pointer of a member function with ref quali… 119 …RValueRefThisPointer = 0x04 // pointer is a 'this' pointer of a member function with ref quali… [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/ |
| H A D | no-int-to-ptr.rst | 6 Diagnoses every integer to pointer cast. 8 While casting an (integral) pointer to an integer is obvious - you just get 9 the integral value of the pointer, casting an integer to an (integral) pointer 10 is deceivingly different. While you will get a pointer with that integral value, 11 if you got that integral value via a pointer-to-integer cast originally, 12 the new pointer will lack the provenance information from the original pointer. 14 So while (integral) pointer to integer casts are effectively no-ops, 15 and are transparent to the optimizer, integer to (integral) pointer casts 19 let's take a look at a routine to align the pointer up to the multiple of 16: 28 …return (char*)aligned_intptr; // warning: avoid integer to pointer casts [performance-no-int-to-pt… [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/ |
| H A D | frame-pointer.ll | 5 ; Leaf function, no frame so no need for a frame pointer. 16 ; so don't create a frame pointer. 17 define void @leaf_nofpelim() "frame-pointer"="all" { 27 ; need to use a frame pointer. 28 define void @leaf_lowreg_nofpelim() "frame-pointer"="all" { 41 define void @leaf_highreg_nofpelim() "frame-pointer"="all" { 63 ; Has a call, but still no need for a frame pointer. 74 ; Has a call, and frame pointer requested. 75 define void @call_nofpelim() "frame-pointer"="all" { 96 ; Has a high register clobbered, no need for a frame pointer. [all …]
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | LowLevelTypeTest.cpp | 127 LLT::fixed_vector(2, LLT::pointer(1, 32)), in TEST() 132 const LLT P0 = LLT::pointer(0, 32); in TEST() 133 const LLT P1 = LLT::pointer(1, 64); in TEST() 180 const LLT P0 = LLT::pointer(0, 32); in TEST() 225 const LLT P0 = LLT::pointer(0, 32); in TEST() 316 EXPECT_EQ(LLT::pointer(1, 64), in TEST() 318 EXPECT_EQ(LLT::fixed_vector(2, LLT::pointer(1, 64)), in TEST() 336 EXPECT_EQ(LLT::fixed_vector(2, LLT::pointer(0, 32)), in TEST() 337 LLT::pointer(0, 32).multiplyElements(2)); in TEST() 339 LLT::pointer(1, 32).multiplyElements(3)); in TEST() [all …]
|