/llvm-project/clang/include/clang/Basic/ |
H A D | Builtins.td | 88 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 95 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 102 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 109 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 116 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 123 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, 130 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const]; 136 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const]; 142 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, ConstIgnoringErrnoAndExceptions]; 148 let Attributes [all...] |
/llvm-project/flang/test/Lower/CUDA/ |
H A D | cuda-proc-attribute.cuf | 6 attributes(host) subroutine sub_host(); end 7 ! CHECK: func.func @_QPsub_host() attributes {cuf.proc_attr = #cuf.cuda_proc<host>} 9 attributes(device) subroutine sub_device(); end 10 ! CHECK: func.func @_QPsub_device() attributes {cuf.proc_attr = #cuf.cuda_proc<device>} 12 attributes(host) attributes(device) subroutine sub_host_device; end 13 ! CHECK: func.func @_QPsub_host_device() attributes {cuf.proc_attr = #cuf.cuda_proc<host_device>} 15 attributes(device) attributes(host) subroutine sub_device_host; end 16 ! CHECK: func.func @_QPsub_device_host() attributes {cuf.proc_attr = #cuf.cuda_proc<host_device>} 18 attributes(global) subroutine sub_global(); end 19 ! CHECK: func.func @_QPsub_global() attributes {cuf.proc_attr = #cuf.cuda_proc<global>} [all …]
|
/llvm-project/flang/test/Semantics/ |
H A D | cuf01.cuf | 2 ! Test conflicting CUDA subprogram attributes 5 !WARNING: ATTRIBUTES(Host) appears more than once 6 attributes(host,host) subroutine ok1; end 7 !WARNING: ATTRIBUTES(Host) appears more than once 8 attributes(host) attributes(host) subroutine ok2; end 9 attributes(host,device) subroutine ok3; end 10 attributes(device,host) subroutine ok4; end 11 !WARNING: ATTRIBUTES(Host) appears more than once 12 attributes(host,device,host) subroutine ok5; end 13 !WARNING: ATTRIBUTES(Device) appears more than once [all …]
|
H A D | cuf02.cuf | 4 attributes(device) subroutine exts1 8 recursive attributes(device) subroutine s1 ! ok 10 pure attributes(device) subroutine s2 ! ok 12 elemental attributes(device) subroutine s3 ! ok 17 attributes(device) subroutine inner 20 attributes(device) subroutine s5 ! nvfortran crashes on this one 26 attributes(device) subroutine s6 29 !ERROR: A function may not have ATTRIBUTES(GLOBAL) or ATTRIBUTES(GRID_GLOBAL) 30 attributes(global) real function f1 33 recursive attributes(global) subroutine s7 [all …]
|
H A D | cuf03.cuf | 12 !ERROR: Object 'mcl' with ATTRIBUTES(CONSTANT) may not be allocatable, pointer, or target 14 !ERROR: Object 'mcp' with ATTRIBUTES(CONSTANT) may not be allocatable, pointer, or target 16 !ERROR: Object 'mct' with ATTRIBUTES(CONSTANT) may not be allocatable, pointer, or target 23 !ERROR: Object 'ms' with ATTRIBUTES(SHARED) must be declared in a device subprogram 25 !ERROR: Object 'msi' with ATTRIBUTES(SHARED) must be declared in a device subprogram 27 !ERROR: Object 'msl' with ATTRIBUTES(SHARED) may not be allocatable, pointer, or target 29 !ERROR: Object 'msp' with ATTRIBUTES(SHARED) may not be allocatable, pointer, or target 31 !ERROR: Object 'mst' with ATTRIBUTES(SHARED) may not be allocatable, pointer, or target 33 !ERROR: Object 'msa' with ATTRIBUTES(SHARED) must be declared in a device subprogram 38 !ERROR: Object 'mmp' with ATTRIBUTES(MANAGE [all...] |
H A D | modfile55.cuf | 2 ! Sanity check for CUDA Fortran attributes in module files 4 attributes(device) dd 7 attributes(constant) cd 9 attributes(global) subroutine globsub(x,y,z) 14 attributes(host,device) real function foo(x) 17 attributes(host) subroutine hostsub(a) 26 !attributes(device) dd 28 !attributes(managed) md 30 !attributes(pinned) mp 32 !attributes(constan [all...] |
H A D | cuf08.cuf | 4 …ay not have LAUNCH_BOUNDS() or CLUSTER_DIMS() unless it has ATTRIBUTES(GLOBAL) or ATTRIBUTES(GRID_… 6 …ay not have LAUNCH_BOUNDS() or CLUSTER_DIMS() unless it has ATTRIBUTES(GLOBAL) or ATTRIBUTES(GRID_… 8 attributes(global) launch_bounds(1,2) subroutine good1; end 9 attributes(global) launch_bounds(1,2,3) subroutine good2; end 11 attributes(global) launch_bounds(1,2) launch_bounds(3,4) subroutine bad3; end 13 attributes(global) launch_bounds(1) subroutine bad4; end 15 attributes(global) launch_bounds(1,2,3,4) subroutine bad5; end 16 attributes(global) cluster_dims(1,2,3) subroutine good3; end 18 attributes(global) cluster_dims(1,2,3) cluster_dims(4,5,6) subroutine bad6; end 20 attributes(global) cluster_dims(1) subroutine bad7; end [all …]
|
/llvm-project/mlir/test/Dialect/OpenMP/ |
H A D | attr.mlir | 3 // CHECK: module attributes {omp.flags = #omp.flags<>} { 4 module attributes {omp.flags = #omp.flags<debug_kind = 0, assume_teams_oversubscription = false, as… 6 // CHECK: module attributes {omp.flags = #omp.flags<debug_kind = 20>} { 7 module attributes {omp.flags = #omp.flags<debug_kind = 20, assume_teams_oversubscription = false, a… 9 // CHECK: module attributes {omp.flags = #omp.flags<debug_kind = 100, assume_teams_oversubscription… 10 module attributes {omp.flags = #omp.flags<debug_kind = 100, assume_teams_oversubscription = true, a… 12 // CHECK: module attributes {omp.flags = #omp.flags<debug_kind = 200, assume_teams_oversubscription… 13 module attributes {omp.flags = #omp.flags<debug_kind = 200, assume_teams_oversubscription = true, a… 15 // CHECK: module attributes {omp.flags = #omp.flags<debug_kind = 300, assume_teams_oversubscription… 16 module attributes {omp.flags = #omp.flags<debug_kind = 300, assume_teams_oversubscription = true, a… [all …]
|
/llvm-project/llvm/test/Verifier/ |
H A D | sme-attributes.ll | 4 ; CHECK: Attributes 'aarch64_pstate_sm_enabled and aarch64_pstate_sm_compatible' are incompatible! 7 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 10 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 13 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 16 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 19 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 22 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 25 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 28 ; CHECK: Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', 'aarch64_inout_za', 'aarch64_preserves_za' and 'aarch64_za_state_agnostic' are mutually exclusive 31 ; CHECK: Attributes 'aarch64_new_z [all...] |
/llvm-project/llvm/test/Bitcode/ |
H A D | attributes.ll | 570 ; CHECK: attributes #0 = { noreturn } 571 ; CHECK: attributes #1 = { nounwind } 572 ; CHECK: attributes #2 = { memory(none) } 573 ; CHECK: attributes #3 = { memory(read) } 574 ; CHECK: attributes #4 = { noinline } 575 ; CHECK: attributes #5 = { alwaysinline } 576 ; CHECK: attributes #6 = { optsize } 577 ; CHECK: attributes #7 = { ssp } 578 ; CHECK: attributes #8 = { sspreq } 579 ; CHECK: attributes # [all...] |
H A D | attributes-3.3.ll | 4 ; attributes-3.3.ll.bc was generated by passing this file to llvm-as-3.3. 5 ; The test checks that LLVM does not silently misread attributes of 214 ; CHECK: attributes #0 = { noreturn } 215 ; CHECK: attributes #1 = { nounwind } 216 ; CHECK: attributes #2 = { memory(none) } 217 ; CHECK: attributes #3 = { memory(read) } 218 ; CHECK: attributes #4 = { noinline } 219 ; CHECK: attributes #5 = { alwaysinline } 220 ; CHECK: attributes #6 = { optsize } 221 ; CHECK: attributes # [all...] |
/llvm-project/clang/test/Index/ |
H A D | attributes.c | 31 // CHECK: attributes.c:3:32: StructDecl=Test2:3:32 (Definition) Extent=[3:1 - 5:2] 32 // CHECK: attributes.c:3:23: attribute(packed)=packed Extent=[3:23 - 3:29] 33 // CHECK: attributes.c:4:8: FieldDecl=a:4:8 (Definition) Extent=[4:3 - 4:9] [access=public] 35 // CHECK: attributes.c:7:6: FunctionDecl=pure_fn:7:6 Extent=[7:1 - 7:37] 36 // CHECK: attributes.c:7:31: attribute(pure)= Extent=[7:31 - 7:35] 37 // CHECK: attributes.c:8:6: FunctionDecl=const_fn:8:6 Extent=[8:1 - 8:39] 38 // CHECK: attributes.c:8:32: attribute(const)= Extent=[8:32 - 8:37] 39 // CHECK: attributes.c:9:6: FunctionDecl=noduplicate_fn:9:6 Extent=[9:1 - 9:51] 40 // CHECK: attributes.c:9:38: attribute(noduplicate)= Extent=[9:38 - 9:49] 41 // CHECK: attributes.c:11:31: EnumDecl=FlagEnum:11:31 (Definition) Extent=[11:1 - 13:2] [all …]
|
H A D | attributes-cuda.cu | 19 // CHECK: attributes-cuda.cu:5:30: FunctionDecl=f_device:5:30 20 // CHECK-NEXT: attributes-cuda.cu:5:16: attribute(device) 21 // CHECK: attributes-cuda.cu:6:30: FunctionDecl=f_global:6:30 22 // CHECK-NEXT: attributes-cuda.cu:6:16: attribute(global) 23 // CHECK: attributes-cuda.cu:7:32: VarDecl=g_constant:7:32 (Definition) 24 // CHECK-NEXT: attributes-cuda.cu:7:16: attribute(constant) 25 // CHECK: attributes-cuda.cu:8:32: VarDecl=g_shared:8:32 (Definition) 26 // CHECK-NEXT: attributes-cuda.cu:8:16: attribute(shared) 27 // CHECK: attributes-cuda.cu:9:28: FunctionDecl=f_host:9:28 28 // CHECK-NEXT: attributes-cuda.cu:9:16: attribute(host) [all …]
|
/llvm-project/openmp/runtime/src/include/ |
H A D | omp_lib.h.var | 493 !DIR$ attributes known_intrinsic :: omp_init_lock 503 !DIR$ attributes known_intrinsic :: omp_destroy_lock 513 !DIR$ attributes known_intrinsic :: omp_set_lock 523 !DIR$ attributes known_intrinsic :: omp_unset_lock 533 !DIR$ attributes known_intrinsic :: omp_test_lock 544 !DIR$ attributes known_intrinsic :: omp_init_nest_lock 554 !DIR$ attributes known_intrinsic :: omp_destroy_nest_lock 564 !DIR$ attributes known_intrinsic :: omp_set_nest_lock 574 !DIR$ attributes known_intrinsic :: omp_unset_nest_lock 584 !DIR$ attributes known_intrinsi [all...] |
/llvm-project/clang/test/CodeGen/ |
H A D | zero-call-used-regs.c | 24 // CHECK-SKIP-NOT: attributes #[[ATTR_NUM]] = {{.*}} "zero-call-used-regs"= 25 // CHECK-SKIP: attributes #[[ATTR_NUM_SKIP]] = {{.*}} "zero-call-used-regs"="skip" 26 // CHECK-SKIP: attributes #[[ATTR_NUM_USED_GPR_ARG]] = {{.*}} "zero-call-used-regs"="… 27 // CHECK-SKIP: attributes #[[ATTR_NUM_USED_GPR]] = {{.*}} "zero-call-used-regs"="used… 28 // CHECK-SKIP: attributes #[[ATTR_NUM_USED_ARG]] = {{.*}} "zero-call-used-regs"="used… 29 // CHECK-SKIP: attributes #[[ATTR_NUM_USED]] = {{.*}} "zero-call-used-regs"="used" 30 // CHECK-SKIP: attributes #[[ATTR_NUM_ALL_GPR_ARG]] = {{.*}} "zero-call-used-regs"="a… 31 // CHECK-SKIP: attributes #[[ATTR_NUM_ALL_GPR]] = {{.*}} "zero-call-used-regs"="all-g… 32 // CHECK-SKIP: attributes #[[ATTR_NUM_ALL_ARG]] = {{.*}} "zero-call-used-regs"="all-a… 33 // CHECK-SKIP: attributes #[[ATTR_NUM_ALL]] = {{.*}} "zero-call-used-regs"="all" [all …]
|
H A D | stack-protector.c | 33 // NOSSP-NOT: attributes #[[A]] = {{.*}} ssp 34 // SSP: attributes #[[A]] = {{.*}} ssp{{ }} 35 // SSPSTRONG: attributes #[[A]] = {{.*}} sspstrong 36 // SSPREQ: attributes #[[A]] = {{.*}} sspreq 38 // SAFESTACK-NOSSP: attributes #[[A]] = {{.*}} safestack 41 // SAFESTACK-SSP: attributes #[[A]] = {{.*}} safestack ssp{{ }} 42 // SAFESTACK-SSPSTRONG: attributes #[[A]] = {{.*}} safestack sspstrong 43 // SAFESTACK-SSPREQ: attributes #[[A]] = {{.*}} safestack sspreq 45 // NOSSP-NOT: attributes #[[B]] = {{.*}} ssp 46 // SSP-NOT: attributes #[[B]] = {{.*}} ssp{{ }} [all …]
|
/llvm-project/mlir/test/Target/LLVMIR/ |
H A D | fp-math-function-attributes.mlir | 5 llvm.func @unsafe_fp_math_func_true() attributes {unsafe_fp_math = true} { 8 // CHECK: attributes #[[ATTRS]] = { "unsafe-fp-math"="true" } 14 llvm.func @unsafe_fp_math_func_false() attributes {unsafe_fp_math = false} { 17 // CHECK: attributes #[[ATTRS]] = { "unsafe-fp-math"="false" } 23 llvm.func @no_infs_fp_math_func_true() attributes {no_infs_fp_math = true} { 26 // CHECK: attributes #[[ATTRS]] = { "no-infs-fp-math"="true" } 32 llvm.func @no_infs_fp_math_func_false() attributes {no_infs_fp_math = false} { 35 // CHECK: attributes #[[ATTRS]] = { "no-infs-fp-math"="false" } 41 llvm.func @no_nans_fp_math_func_true() attributes {no_nans_fp_math = true} { 44 // CHECK: attributes #[[ATTR [all...] |
/llvm-project/mlir/test/Target/LLVMIR/Import/ |
H A D | function-attributes.ll | 17 ; CHECK-SAME: attributes {dso_local} 25 ; CHECK-SAME: attributes {memory_effects = #llvm.memory_effects<other = none, argMem = none, inaccessibleMem = none>} 32 ; CHECK-SAME: attributes {memory_effects = #llvm.memory_effects<other = none, argMem = none, inaccessibleMem = none>} 34 attributes #0 = { readnone } 162 ; CHECK-SAME: attributes {function_entry_count = 4242 : i64} 172 ; CHECK-SAME: attributes {memory_effects = #llvm.memory_effects<other = readwrite, argMem = none, inaccessibleMem = readwrite>} 181 ; CHECK-SAME: attributes {passthrough = [ 193 ; CHECK-SAME: attributes {passthrough = ["no-enum-attr"]} 216 ; CHECK-SAME: attributes {arm_streaming} 224 ; CHECK-SAME: attributes {arm_locally_streamin [all...] |
/llvm-project/llvm/test/Other/ |
H A D | opt-override-frame-pointer.ll | 31 ; ALL-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="all" } 32 ; ALL-DAG: attributes [[NONE_ATTR]] = { nounwind "frame-pointer"="none" } 33 ; ALL-DAG: attributes [[NONLEAF_ATTR]] = { nounwind "frame-pointer"="non-leaf" } 34 ; ALL-NOT: attributes 36 ; NONE-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="none" } 37 ; NONE-DAG: attributes [[ALL_ATTR]] = { nounwind "frame-pointer"="all" } 38 ; NONE-DAG: attributes [[NONLEAF_ATTR]] = { nounwind "frame-pointer"="non-leaf" } 39 ; NONE-NOT: attributes 41 ; NONLEAF-DAG: attributes [[VARATTR]] = { nounwind "frame-pointer"="non-leaf" } 42 ; NONLEAF-DAG: attributes [[ALL_ATTR]] = { nounwind "frame-pointer"="all" } [all …]
|
/llvm-project/clang/test/OpenMP/ |
H A D | target_parallel_defaultmap_messages.cpp | 56 g++; // expected-error {{variable 'g' must have explicitly specified data sharing attributes, data mapping attributes, or in an is_device_ptr clause}} in tmain() 58 argc = *g; // expected-error {{variable 'g' must have explicitly specified data sharing attributes, data mapping attributes, or in an is_device_ptr clause}} in tmain() 60 argc = *g; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes, data mapping attributes, or in an is_device_ptr clause}} in tmain() 62 argc = *g + arr[1]; // expected-error {{variable 'arr' must have explicitly specified data sharing attributes, data mapping attributes, or in an is_device_ptr clause}} in tmain() 64 bar.a += argc; // expected-error {{variable 'bar' must have explicitly specified data sharing attributes, data mapping attributes, o in tmain() [all...] |
/llvm-project/mlir/test/Conversion/GPUToSPIRV/ |
H A D | reductions.mlir | 3 module attributes { 12 attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} { 23 module attributes { 32 attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} { 43 module attributes { 52 attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} { 63 module attributes { 72 attributes {spirv.entry_point_abi = #spirv.entry_point_abi<workgroup_size = [16, 1, 1]>} { 83 module attributes { 92 attributes {spir [all...] |
/llvm-project/clang/test/SemaObjC/ |
H A D | property-10.m | 6 @property(readonly, readwrite) int p0; // expected-error {{property attributes 'readonly' and 'read… 13 @property(assign, copy) id p3_0; // expected-error {{property attributes 'assign' and 'copy' are mu… 14 @property(assign, retain) id p3_1; // expected-error {{property attributes 'assign' and 'retain' ar… 15 @property(assign, strong) id s3_1; // expected-error {{property attributes 'assign' and 'strong' ar… 16 @property(copy, retain) id p3_2; // expected-error {{property attributes 'copy' and 'retain' are mu… 17 @property(copy, strong) id s3_2; // expected-error {{property attributes 'copy' and 'strong' are mu… 18 … // expected-error {{property attributes 'assign' and 'copy' are mutually exclusive}}, expected-er… 19 … // expected-error {{property attributes 'assign' and 'copy' are mutually exclusive}}, expected-er… 21 @property(unsafe_unretained, copy) id p4_0; // expected-error {{property attributes 'unsafe_unretai… 22 @property(unsafe_unretained, retain) id p4_1; // expected-error {{property attributes 'unsafe_unret… [all …]
|
/llvm-project/llvm/docs/ |
H A D | TransformMetadata.rst | 34 Attributes can be attached to loops as described in :ref:`llvm.loop`. 35 Attributes can describe properties of the loop, disable transformations, 40 metadata), in order to add or remove a loop attributes, a new ``MDNode`` 47 loop attributes, any ``llvm.mem.parallel_loop_access`` reference must be 53 Some attributes describe code transformations (unrolling, vectorizing, 85 After a transformation is applied, follow-up attributes are set on the 86 transformed and/or new loop(s). This allows additional attributes 104 If, and only if, no followup is specified, the pass may add attributes itself. 106 all attributes from the original loop excluding its loop vectorizer 107 attributes. To avoid this, an empty followup attribute can be used, e.g. [all …]
|
/llvm-project/mlir/test/mlir-tblgen/ |
H A D | op-python-bindings.td | 27 // CHECK: attributes = {} 35 // CHECK: attributes=attributes, results=results, operands=operands, 42 // CHECK: self.operation.attributes["operandSegmentSizes"], 0) 50 // CHECK: self.operation.attributes["operandSegmentSizes"], 1) 57 // CHECK: self.operation.attributes["operandSegmentSizes"], 2) 75 // CHECK: attributes = {} 83 // CHECK: attributes=attributes, results=results, operands=operands, 90 // CHECK: self.operation.attributes["resultSegmentSize [all...] |
/llvm-project/mlir/include/mlir/Interfaces/ |
H A D | FunctionInterfaces.h | 32 /// If there are no argument attributes at 'index', a null attribute is 37 /// If there are no result attributes at 'index', a null attribute is 41 /// Return all of the attributes for the argument at 'index'. 44 /// Return all of the attributes for the result at 'index'. 85 /// Set the attributes held by the argument at 'index'. 87 ArrayRef<NamedAttribute> attributes); 89 DictionaryAttr attributes); 96 NamedAttrList attributes(op.getArgAttrDict(index)); in setArgAttr() 97 Attribute oldValue = attributes.set(name, value); in setArgAttr() 101 op.setArgAttrs(index, attributes.getDictionary(value.getContext())); in setArgAttr() [all …]
|