| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | eh.cpp | 185 void opaque(); 194 opaque(); in A() 206 opaque(); 212 void opaque(); 223 opaque(); in foo() 249 void opaque(); 255 opaque(); in foo() 276 opaque(); in bar() 359 void opaque(); 365 opaque(); in foo() [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/EmitC/ |
| H A D | types.mlir | 7 // CHECK-NEXT: !emitc.opaque<"int"> 8 emitc.call "f"() {template_args = [!emitc<opaque<"int">>]} : () -> () 9 // CHECK-NEXT: !emitc.opaque<"byte"> 10 emitc.call "f"() {template_args = [!emitc<opaque<"byte">>]} : () -> () 11 // CHECK-NEXT: !emitc.opaque<"unsigned"> 12 emitc.call "f"() {template_args = [!emitc<opaque<"unsigned">>]} : () -> () 13 // CHECK-NEXT: !emitc.opaque<"status_t"> 14 emitc.call "f"() {template_args = [!emitc<opaque<"status_t">>]} : () -> () 15 // CHECK-NEXT: !emitc.opaque<"std::vector<std::string>"> 17 // CHECK-NEXT: !emitc.opaque<"SmallVector<int*, 4>"> [all …]
|
| H A D | invalid_types.mlir | 4 // expected-error @+1 {{expected non empty string in !emitc.opaque type}} 5 %1 = "emitc.variable"(){value = "42" : !emitc.opaque<"">} : () -> !emitc.opaque<"mytype"> 11 …// expected-error @+1 {{pointer not allowed as outer type with !emitc.opaque, use !emitc.ptr inste… 12 …%1 = "emitc.variable"(){value = "nullptr" : !emitc.opaque<"int32_t*">} : () -> !emitc.opaque<"int3…
|
| /llvm-project-15.0.7/clang/test/CodeGenObjCXX/ |
| H A D | personality.mm | 1 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 5 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 9 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 13 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 18 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 19 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 23 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 41 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… 45 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… 49 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InferFunctionAttrs/ |
| H A D | annotate.ll | 16 ; Use an opaque pointer type for all the (possibly opaque) structs. 17 %opaque = type opaque 396 declare i32 @fclose(%opaque*) 402 declare i32 @feof(%opaque*) 422 declare i32 @fgetc(%opaque*) 539 declare i64 @ftell(%opaque*) 557 declare i32 @getc(%opaque*) 836 declare i32 @setitimer(i32, %opaque*, %opaque*) 1007 declare %opaque* @tmpfile() 1046 declare i32 @vfprintf(%opaque*, i8*, %opaque*) [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCL/ |
| H A D | intel-subgroups-avc-ext-types.cl | 3 // CHECK: %opencl.intel_sub_group_avc_mce_payload_t = type opaque 4 // CHECK: %opencl.intel_sub_group_avc_ime_payload_t = type opaque 5 // CHECK: %opencl.intel_sub_group_avc_ref_payload_t = type opaque 6 // CHECK: %opencl.intel_sub_group_avc_sic_payload_t = type opaque 8 // CHECK: %opencl.intel_sub_group_avc_mce_result_t = type opaque 9 // CHECK: %opencl.intel_sub_group_avc_ime_result_t = type opaque 10 // CHECK: %opencl.intel_sub_group_avc_ref_result_t = type opaque 11 // CHECK: %opencl.intel_sub_group_avc_sic_result_t = type opaque 14 // CHECK: %opencl.intel_sub_group_avc_ime_result_dual_reference_streamout_t = type opaque 15 // CHECK: %opencl.intel_sub_group_avc_ime_single_reference_streamin_t = type opaque [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | personality.m | 1 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 2 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 3 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 4 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 6 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 7 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 10 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-linux-gnu -fexceptions -fobjc-exception… 27 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… 28 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… 29 // RUN: %clang_cc1 -no-opaque-pointers -triple i686-unknown-windows-gnu -fexceptions -fobjc-excepti… [all …]
|
| H A D | availability-cf-link-guard.m | 1 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macosx10.11 -emit-llvm -o - %s | FileCh… 2 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macosx10.11 -emit-llvm -o - -D USE_BUIL… 3 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macosx10.11 -emit-llvm -o - -D DEF_CF %… 4 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macosx10.12 -emit-llvm -o - %s | FileCh… 5 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux -emit-llvm -o - %s | FileCheck … 6 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macos10.15 -DCHECK_OS="macos 10.15.1" -… 7 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-ios13.0 -DCHECK_OS="ios 14" -emit-llvm -… 8 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-tvos13.0 -DCHECK_OS="tvos 14" -emit-llvm… 9 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-watchos6.0 -DCHECK_OS="watchos 7" -emit-… 10 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-ios12.0 -DCHECK_OS="ios 13" -emit-llvm -… [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | hsa-metadata-images.ll | 5 %opencl.image1d_t = type opaque 6 %opencl.image1d_array_t = type opaque 7 %opencl.image1d_buffer_t = type opaque 8 %opencl.image2d_t = type opaque 9 %opencl.image2d_array_t = type opaque 10 %opencl.image2d_array_depth_t = type opaque 11 %opencl.image2d_array_msaa_t = type opaque 13 %opencl.image2d_depth_t = type opaque 14 %opencl.image2d_msaa_t = type opaque 15 %opencl.image2d_msaa_depth_t = type opaque [all …]
|
| H A D | hsa-metadata-images-v3.ll | 5 %opencl.image1d_t = type opaque 6 %opencl.image1d_array_t = type opaque 7 %opencl.image1d_buffer_t = type opaque 8 %opencl.image2d_t = type opaque 9 %opencl.image2d_array_t = type opaque 10 %opencl.image2d_array_depth_t = type opaque 11 %opencl.image2d_array_msaa_t = type opaque 13 %opencl.image2d_depth_t = type opaque 14 %opencl.image2d_msaa_t = type opaque 15 %opencl.image2d_msaa_depth_t = type opaque [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/Coroutines/ |
| H A D | coro-debug-dbg.addr-swift.ll | 41 %swift.opaque = type opaque 67 store %swift.opaque* %0, %swift.opaque** %t.debug, align 8, !dbg !52 91 store %swift.opaque* %0, %swift.opaque** %t.debug, align 8, !dbg !60 126 store %swift.opaque* %0, %swift.opaque** %t.debug, align 8, !dbg !76 157 store %swift.opaque* %1, %swift.opaque** %msg.debug, align 8, !dbg !84 168 store %swift.opaque* %1, %swift.opaque** %msg.debug, align 8, !dbg !84 173 …%initializeWithCopy = bitcast i8* %25 to %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.ty… 174 …%26 = call %swift.opaque* %initializeWithCopy(%swift.opaque* noalias %16, %swift.opaque* noalias %… 207 store %swift.opaque* %1, %swift.opaque** %msg.debug, align 8, !dbg !84 215 …%51 = call %swift.opaque* %initializeWithCopy(%swift.opaque* noalias %16, %swift.opaque* noalias %… [all …]
|
| H A D | coro-async-remat.ll | 8 %swift.error = type opaque 9 %swift.opaque = type opaque 32 %5 = bitcast i8* undef to %swift.opaque* 42 …%initializeWithTake35 = bitcast i8* undef to %swift.opaque* (%swift.opaque*, %swift.opaque*, %swif… 43 …%9 = call %swift.opaque* %initializeWithTake35(%swift.opaque* noalias %5, %swift.opaque* noalias u… 46 …t*, %swift.opaque*, %swift.type*, i8**)* @__swift_suspend_dispatch_5.23 to i8*), i8* undef, %Tsq* … 123 …swift_suspend_dispatch_5.23(i8* %0, %Tsq* %1, %swift.context* %2, %swift.opaque* %3, %swift.type* …
|
| H A D | coro-async-end-bug.ll | 6 %swift.opaque = type opaque 9 %swift.error = type opaque 11 … i32 trunc (i64 sub (i64 ptrtoint (void (%swift.context*, %swift.opaque*, %swift.opaque*, i8*, %sw… 19 …ailcc void @repo(%swift.context* swiftasync %0, %swift.opaque* noalias nocapture %1, %swift.opaque… 26 %9 = bitcast i8* %3 to i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)* 27 …%10 = call swiftcc i1 %9(%swift.opaque* noalias nocapture %1, %swift.opaque* noalias nocapture %2,…
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | opaque.ll | 4 %swift.opaque = type opaque 8 …%Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8 }>, %Si, %SQ, %SQ, %Si, %swift.opaque }> 18 define %swift.opaque* @_TwTkV([24 x i8]* %dest, %swift.opaque* %src, 21 %0 = bitcast %swift.opaque* %src to %V* 29 %6 = bitcast %V* %3 to %swift.opaque* 30 ret %swift.opaque* %6
|
| H A D | object-size-opaque.ll | 2 %opaque = type opaque 5 define void @foo(%opaque* sret(%opaque) %in, i64* %sizeptr) { 6 %ptr = bitcast %opaque* %in to i8*
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/EmitC/IR/ |
| H A D | EmitCAttributes.td | 28 def EmitC_OpaqueAttr : EmitC_Attr<"Opaque", "opaque"> { 29 let summary = "An opaque attribute"; 32 An opaque attribute of which the value gets emitted as is. 37 #emitc.opaque<""> 38 #emitc.opaque<"NULL"> 39 #emitc.opaque<"nullptr"> 43 let parameters = (ins StringRefParameter<"the opaque value">:$value);
|
| H A D | EmitCTypes.td | 29 def EmitC_OpaqueType : EmitC_Type<"Opaque", "opaque"> { 30 let summary = "An opaque type"; 33 An opaque data type of which the value gets emitted as is. 38 !emitc.opaque<"int"> 39 !emitc.opaque<"mytype"> 40 !emitc.opaque<"std::vector<std::string>"> 44 let parameters = (ins StringRefParameter<"the opaque value">:$value); 62 !emitc.ptr<!emitc.opaque<"int">>
|
| /llvm-project-15.0.7/mlir/test/Target/Cpp/ |
| H A D | common-cpp.mlir | 75 func.func @opaque_types(%arg0: !emitc.opaque<"bool">, %arg1: !emitc.opaque<"char">) -> !emitc.opaqu… 77 …%0 = emitc.call "a"(%arg0, %arg1) : (!emitc.opaque<"bool">, !emitc.opaque<"char">) -> (!emitc.opaq… 79 %1 = emitc.call "b"(%0): (!emitc.opaque<"int">) -> (!emitc.opaque<"char">) 81 …%2 = emitc.call "c"(%0, %1): (!emitc.opaque<"int">, !emitc.opaque<"char">) -> (!emitc.opaque<"stat… 82 return %2 : !emitc.opaque<"status_t">
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | OpaquePointers.rst | 108 In opaque pointers mode (the default), all pointers are opaque. The opaque 109 pointer mode can be disabled using ``-opaque-pointers=0`` in 117 opaque pointers. 162 opaque pointers, ``Type::isOpaquePointerTy()`` and 177 meaningless once all pointers are opaque. 183 with typed an opaque pointers: 220 opaque pointer transition:: 244 and opaque pointers are enabled by default in LLVM and Clang. 261 ``-opaque-pointers=0``. 263 The next steps for the opaque pointer migration are: [all …]
|
| /llvm-project-15.0.7/llvm/test/LTO/X86/ |
| H A D | mix-opaque-typed.ll | 1 ; RUN: llvm-as -opaque-pointers=0 %s -o %t-typed.bc 2 ; RUN: llvm-as -opaque-pointers=1 %S/Inputs/opaque-pointers.ll -o %t-opaque.bc 3 ; RUN: llvm-lto2 run -o %t-lto.bc %t-typed.bc %t-opaque.bc -save-temps \ 4 ; RUN: -lto-opaque-pointers \ 6 ; RUN: -r %t-opaque.bc,foo,px
|
| /llvm-project-15.0.7/llvm/test/Transforms/ArgumentPromotion/ |
| H A D | bitcasts.ll | 6 %opaque = type opaque 38 define internal i32 @callee_opaque(%opaque* %p) { 44 %p.32 = bitcast %opaque* %p to i32* 52 define void @caller_opaque(%opaque* %p) { 54 ; CHECK-SAME: (%opaque* [[P:%.*]]) { 55 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast %opaque* [[P]] to i32* 57 ; CHECK-NEXT: [[TMP2:%.*]] = bitcast %opaque* [[P]] to i8* 64 call i32 @callee_opaque(%opaque* %p)
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-nm/ |
| H A D | opaque-pointers.ll | 1 ; RUN: llvm-as -opaque-pointers=0 < %s > %t.typed.bc 2 ; RUN: llvm-as -opaque-pointers=1 < %s > %t.opaque.bc 3 ; RUN: llvm-ar cr %t.a %t.typed.bc %t.opaque.bc 8 ; CHECK-LABEL: opaque.bc:
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | 2006-09-01-CycleInDAG.ll | 8 %struct.__sFILEX = type opaque 24 %struct.die_struct = type opaque 29 %struct.eh_status = type opaque 30 %struct.elt_list = type opaque 32 %struct.et_node = type opaque 37 %struct.lang_decl = type opaque 38 %struct.lang_type = type opaque 41 %struct.loop = type opaque 53 %struct.rtvec_def = type opaque 54 %struct.rtx_def = type opaque [all …]
|
| /llvm-project-15.0.7/llvm/test/Linker/ |
| H A D | 2003-08-23-GlobalVarLinking.ll | 2 ; RUN: echo "%%T1 = type opaque %%T2 = type opaque @S = external global { i32, %%T1* } declare void… 5 ; CHECK-NOT: opaque 7 ; After linking this testcase, there should be no opaque types left. The two 8 ; S's should cause the opaque type to be resolved to 'int'.
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | trapv.c | 28 extern void opaque(int); in test1() 29 opaque(i++); in test1() 42 extern void opaque(int); in test2() 43 opaque(++i); in test2()
|