| /llvm-project-15.0.7/llvm/test/MC/RISCV/ |
| H A D | attribute-arch.s | 6 .attribute arch, "rv32i" 9 .attribute arch, "rv32i2" 12 .attribute arch, "rv32i2p0" 15 .attribute arch, "rv32i2_m2" 18 .attribute arch, "rv32i2_ma" 21 .attribute arch, "rv32g" 24 .attribute arch, "rv32imafdc" 27 .attribute arch, "rv32i2p0_mafdc" 36 .attribute arch, "rv32iv" 39 .attribute arch, "rv32ivzvl32b" [all …]
|
| H A D | attribute.s | 6 .attribute stack_align, 16 7 # CHECK: attribute 4, 16 9 .attribute arch, "rv32i2p0_m2p0_a2p0_c2p0" 12 .attribute unaligned_access, 0 13 # CHECK: attribute 6, 0 15 .attribute priv_spec, 2 16 # CHECK: attribute 8, 2 18 .attribute priv_spec_minor, 0 19 # CHECK: attribute 10, 0 21 .attribute priv_spec_revision, 0 [all …]
|
| H A D | invalid-attribute.s | 2 ## - Feed integer value to string type attribute. 3 ## - Feed string value to integer type attribute. 9 .attribute arch, "foo" 12 .attribute arch, "rv32i2p0_y2p0" 15 .attribute stack_align, "16" 18 .attribute unaligned_access, "0" 21 .attribute priv_spec, "2" 24 .attribute priv_spec_minor, "0" 27 .attribute priv_spec_revision, "0" 30 .attribute arch, 30
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | pragma-attribute.cpp | 7 #pragma clang attribute pop 10 #pragma clang attribute pop 13 #pragma clang attribute pop 16 #pragma clang attribute pop 108 #pragma clang attribute pop 128 #pragma clang attribute pop 136 #pragma clang attribute pop in statementPragmasAndPragmaExpression() 149 #pragma clang attribute pop 152 #pragma clang attribute pop 155 #pragma clang attribute pop [all …]
|
| H A D | objcxx11-attributes.mm | 15 // ... but is interpreted as an attribute where possible. 16 int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions}} 32 // An attribute is OK. 34 [[int(), noreturn]]; // expected-warning {{unknown attribute 'int' ignored}} \ 35 // expected-error {{'noreturn' attribute cannot be applied to a statement}} 37 // expected-warning {{unknown attribute 'class' ignored}} 40 expected-warning {{unknown attribute 'bitand' ignored}} 59 …[[test::foo(bar, baz)...]]; // expected-error {{attribute 'foo' cannot be used as an attribute pac… 60 // expected-warning {{unknown attribute 'foo' ignored}} 62 [[used(x)...]]; // expected-error {{attribute 'used' cannot be used as an attribute pack}} \ [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | pragma-attribute-strict-subjects.c | 5 #pragma clang attribute pop 13 #pragma clang attribute pop 18 #pragma clang attribute pop 23 #pragma clang attribute pop 28 #pragma clang attribute pop 34 #pragma clang attribute pop 40 #pragma clang attribute pop 44 #pragma clang attribute pop 48 #pragma clang attribute pop 52 #pragma clang attribute pop [all …]
|
| H A D | pragma-attribute.c | 7 #pragma clang attribute pop // expected-note {{'#pragma clang attribute push' regions ends here}} 19 #pragma clang attribute push (__attribute__((annotate("hello", "world"))), apply_to = function) 23 #pragma clang attribute pop 24 #pragma clang attribute pop 25 #pragma clang attribute pop 39 #pragma clang attribute pop 46 #pragma clang attribute pop 50 #pragma clang attribute push 57 #pragma clang attribute pop 59 #pragma clang attribute pop [all …]
|
| H A D | pragma-attribute-namespace.c | 7 #pragma clang attribute MyNamespace.push (__attribute__((annotate)), apply_to=function) // expected… 11 #pragma clang attribute pop // expected-error{{'#pragma clang attribute pop' with no matching '#pra… 19 #pragma clang attribute MyNamespace.pop 23 #pragma clang attribute MyOtherNamespace.pop 27 #pragma clang attribute Misc push // expected-error{{expected '.' after pragma attribute namespace … 32 #pragma clang attribute push (__attribute__((annotate)), apply_to=function) // expected-warning {{u… 33 #pragma clang attribute pop // expected-note{{ends here}} 35 #pragma clang attribute Merp.pop 37 #pragma clang attribute push (__attribute__((annotate)), apply_to=function) // expected-warning {{u… 39 #pragma clang attribute pop // expected-note{{ends here}} [all …]
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | index-attrs.m | 39 // CHECK: <attribute>: attribute(annotate)=anno 43 // CHECK: <attribute>: attribute(objc_independent_class)= 44 // CHECK: <attribute>: attribute(objc_precise_lifetime)= 45 // CHECK: <attribute>: attribute(objc_boxable)= 46 // CHECK: <attribute>: attribute(objc_exception)= 47 // CHECK: <attribute>: attribute(objc_root_class)= 49 // CHECK: <attribute>: attribute(objc_runtime_visible)= 50 // CHECK: <attribute>: attribute(ns_returns_retained)= 51 // CHECK: <attribute>: attribute(ns_returns_not_retained)= 53 // CHECK: <attribute>: attribute(ns_consumes_self)= [all …]
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit-pragma-attribute.cpp | 3 #pragma clang attribute push (annotate) 6 #pragma clang attribute push (annotate(("test"))) 22 #pragma clang attribute pop 27 #pragma clang attribute pop 31 #pragma clang attribute pop 35 #pragma clang attribute pop 39 #pragma clang attribute pop 41 #pragma clang attribute push (__attribute__((abi_tag("a")))) 50 #pragma clang attribute push (__attribute__((abi_tag("a"))) 22) 57 #pragma clang attribute push (__attribute__((abi_tag("a"))), ) [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | JSONNodeDumper.cpp | 33 JOS.attribute("kind", AttrName); in Visit() 92 JOS.attribute("kind", "QualType"); in Visit() 112 JOS.attribute("isUsed", true); in Visit() 164 JOS.attribute("baseInit", in Visit() 167 JOS.attribute("delegatingInit", in Visit() 176 JOS.attribute("kind", "Capture"); in Visit() 265 JOS.attribute("tokLen", in writeBareSourceLocation() 798 JOS.attribute("name", Name); in VisitUsingDecl() 1181 JOS.attribute("subscriptKind", in VisitObjCSubscriptRefExpr() 1533 JOS.attribute("isNull", true); in VisitNullTemplateArgument() [all …]
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | pragma-attribute-strict-subjects.c | 16 #pragma clang attribute pop 32 #pragma clang attribute pop 51 #pragma clang attribute pop 73 #pragma clang attribute pop 91 #pragma clang attribute pop 107 #pragma clang attribute pop 123 #pragma clang attribute pop 139 #pragma clang attribute pop 155 #pragma clang attribute pop 171 #pragma clang attribute pop [all …]
|
| H A D | pragma-attribute-cxx.cpp | 10 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to=any(record, field, variab… 30 #pragma clang attribute push (__attribute__((annotate("method"))), apply_to=any(record, field, vari… 34 #pragma clang attribute pop in testMethod1() 83 #pragma clang attribute pop 85 #pragma clang attribute push (__attribute__((require_constant_initialization)), apply_to=variable(i… 92 #pragma clang attribute pop 100 #pragma clang attribute push ([[noreturn]], apply_to = function) 106 #pragma clang attribute pop
|
| /llvm-project-15.0.7/llvm/test/CodeGen/RISCV/ |
| H A D | attributes.ll | 86 ; RV32M: .attribute 5, "rv32i2p0_m2p0" 89 ; RV32A: .attribute 5, "rv32i2p0_a2p0" 90 ; RV32F: .attribute 5, "rv32i2p0_f2p0" 92 ; RV32C: .attribute 5, "rv32i2p0_c2p0" 96 ; RV32ZBA: .attribute 5, "rv32i2p0_zba1p0" 97 ; RV32ZBB: .attribute 5, "rv32i2p0_zbb1p0" 98 ; RV32ZBC: .attribute 5, "rv32i2p0_zbc1p0" 128 ; RV64M: .attribute 5, "rv64i2p0_m2p0" 131 ; RV64A: .attribute 5, "rv64i2p0_a2p0" 132 ; RV64F: .attribute 5, "rv64i2p0_f2p0" [all …]
|
| /llvm-project-15.0.7/llvm/test/MC/CSKY/ |
| H A D | attribute.s | 6 # CHECK: attribute 4, "ck810" 9 # CHECK: attribute 5, "ck810" 12 # CHECK: attribute 6, 13119 18 # CHECK: attribute 8, 1 21 # CHECK: attribute 9, 1 24 # CHECK: attribute 16, 1 27 # CHECK: attribute 17, 1 30 # CHECK: attribute 18, 1 33 # CHECK: attribute 19, 1 36 # CHECK: attribute 20, 1 [all …]
|
| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | op-format-verify.td | 14 // Format ambiguity caused by attribute followed by colon literal 17 // Test attribute followed by a colon. 23 // Test optional attribute followed by colon. 29 // Test attribute followed by whitespace and then colon. 35 // Test attribute followed by optional dictionary and then colon. 41 // Test attribute followed by optional group and then colon. 53 // Test attribute followed by optional group with else group. 59 // Test attribute followed by optional group with colon. 71 // Test attribute followed by two optional groups and then a colon. 117 // Test attribute followed by optional attribute, operand, successor, region, [all …]
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | invalid-kernel-attrs.cl | 3 kernel __attribute__((vec_type_hint)) void kernel1() {} //expected-error{{'vec_type_hint' attribute… 13 …8,16,32,4))) void kernel6() {} //expected-error{{'work_group_size_hint' attribute requires exactly… 21 __attribute__((vec_type_hint(char))) void kernel10(){} // expected-error {{attribute 'vec_type_hint… 23 …k_group_size(8,16,32))) = 0; // expected-error {{'reqd_work_group_size' attribute only applies to … 25 …up_size_hint(8,16,32))) = 0; // expected-error {{'work_group_size_hint' attribute only applies to … 27 …ibute__((vec_type_hint(char))) = 0; // expected-error {{'vec_type_hint' attribute only applies to … 29 void f_kernel_image2d_t( kernel image2d_t image ) { // expected-error {{'kernel' attribute only app… 30 int __kernel x; // expected-error {{'__kernel' attribute only applies to functions}} 33 …e(1,2,0))) void kernel11(){} // expected-error {{'reqd_work_group_size' attribute must be greater … 34 …e(1,0,2))) void kernel12(){} // expected-error {{'reqd_work_group_size' attribute must be greater … [all …]
|
| H A D | amdgpu-attrs.cl | 7 …truct struct_waves_per_eu_2 { // expected-error {{'amdgpu_waves_per_eu' attribute only applies to … 11 …uct struct_waves_per_eu_2_4 { // expected-error {{'amdgpu_waves_per_eu' attribute only applies to … 15 …32))) struct struct_num_sgpr_32 { // expected-error {{'amdgpu_num_sgpr' attribute only applies to … 19 …64))) struct struct_num_vgpr_64 { // expected-error {{'amdgpu_num_vgpr' attribute only applies to … 25 …void func_waves_per_eu_2() {} // expected-error {{'amdgpu_waves_per_eu' attribute only applies to … 26 …id func_waves_per_eu_2_4() {} // expected-error {{'amdgpu_waves_per_eu' attribute only applies to … 27 …(32))) void func_num_sgpr_32() {} // expected-error {{'amdgpu_num_sgpr' attribute only applies to … 28 …(64))) void func_num_vgpr_64() {} // expected-error {{'amdgpu_num_vgpr' attribute only applies to … 36 …nel void kernel_num_sgpr_ABC() {} // expected-error {{'amdgpu_num_sgpr' attribute requires an inte… 37 …nel void kernel_num_vgpr_ABC() {} // expected-error {{'amdgpu_num_vgpr' attribute requires an inte… [all …]
|
| /llvm-project-15.0.7/clang/test/SemaHLSL/ |
| H A D | num_threads.hlsl | 16 // expected-warning@+1 {{'numthreads' attribute only applies to global functions}} 40 // expected-note@+1 {{conflicting attribute is here}} 46 // expected-note@+1 {{conflicting attribute is here}} 57 // expected-error@+1 {{'numthreads' attribute requires exactly 3 arguments}} 59 // expected-error@+1 {{'numthreads' attribute requires exactly 3 arguments}} 61 // expected-error@+1 {{'numthreads' attribute requires exactly 3 arguments}} 63 // expected-error@+1 {{'numthreads' attribute requires an integer constant}} 65 // expected-error@+1 {{argument 'X' to numthreads attribute cannot exceed 1024}} 67 // expected-error@+1 {{argument 'Y' to numthreads attribute cannot exceed 1024}} 74 // expected-error@+1 {{argument 'Z' to numthreads attribute cannot exceed 64}} [all …]
|
| H A D | shader_type_attr.hlsl | 5 // verify test make sure validation on shader type attribute works as expected. 9 // expected-warning@+1 {{'shader' attribute only applies to global functions}} 12 // expected-warning@+1 {{'shader' attribute only applies to global functions}} 20 // expected-warning@+1 {{'shader' attribute only applies to global functions}} 25 // expected-warning@+1 {{'shader' attribute only applies to global functions}} 32 // expected-note@+1 {{conflicting attribute is here}} 38 // expected-note@+1 {{conflicting attribute is here}} 48 // expected-error@+1 {{'shader' attribute takes one argument}} 50 // expected-error@+1 {{'shader' attribute takes one argument}} 52 // expected-error@+1 {{'shader' attribute requires a string}} [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | TimeProfiler.cpp | 145 J.attribute("pid", Pid); in write() 147 J.attribute("ph", "X"); in write() 149 J.attribute("dur", DurUs); in write() 201 J.attribute("pid", Pid); in write() 203 J.attribute("ph", "X"); in write() 204 J.attribute("ts", 0); in write() 205 J.attribute("dur", DurUs); in write() 219 J.attribute("cat", ""); in write() 220 J.attribute("pid", Pid); in write() 222 J.attribute("ts", 0); in write() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | attr-swift_name.m | 62 // expected-warning@-1 {{'__swift_name__' attribute has invalid identifier for the base name}} 64 // expected-warning@-1 {{'__swift_name__' attribute has invalid identifier for the parameter name}} 105 // expected-warning@-1 {{'__swift_name__' attribute for getter must not have any parameters besides… 114 // expected-warning@-1 {{'__swift_name__' attribute for setter must have one parameter for new valu… 126 // expected-warning@-1 {{'__swift_name__' attribute for 'subscript' must be a getter or setter}} 138 // expected-warning@-1 {{'__swift_name__' attribute for 'subscript' must have a 'self:' parameter}} 141 // expected-warning@-1 {{'__swift_name__' attribute for 'subscript' must have at least one paramete… 156 // expected-warning@-1 {{'__swift_name__' attribute only applies to non-K&R-style functions}} 171 // expected-note@-1 {{conflicting attribute is here}} 193 // expected-error@+1 {{'__swift_async_name__' attribute takes one argument}} [all …]
|
| H A D | attr-cf_returns.m | 13 int x CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only applies to fun… 14 int y CF_RETURNS_NOT_RETAINED; // expected-warning{{'cf_returns_not_retained' attribute only applie… 18 int invalid1(void) CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only a… 19 void invalid2(void) CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only … 25 - (int)invalid1 CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only appl… 26 - (void)invalid2 CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only app… 31 …idProp1 CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only applies to … 38 void invalidParam(int a CF_RETURNS_RETAINED, // expected-warning{{'cf_returns_retained' attribute o… 39 …int *b CF_RETURNS_RETAINED, // expected-warning{{'cf_returns_retained' attribute only applies to p… 40 …id c CF_RETURNS_RETAINED, // expected-warning{{'cf_returns_retained' attribute only applies to poi… [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/ |
| H A D | JSON.cpp | 267 JOS.attribute("MinSamples", BO.MinSamples); in serialize() 269 JOS.attribute("Epsilon", BO.Epsilon); in serialize() 271 JOS.attribute("Log", serialize(BO.Log)); in serialize() 275 JOS.attribute("Type", CI.Type); in serialize() 276 JOS.attribute("Level", CI.Level); in serialize() 277 JOS.attribute("Size", CI.Size); in serialize() 282 JOS.attribute("Function", SC.Function); in serialize() 283 JOS.attribute("NumTrials", SC.NumTrials); in serialize() 287 JOS.attribute("AccessAlignment", in serialize() 293 JOS.attribute("CpuName", HS.CpuName); in serialize() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinAttributes.td | 82 array-attribute ::= `[` (attribute-value (`,` attribute-value)*)? `]` 85 An array attribute is an attribute that represents a collection of attribute 150 A dense array attribute is an attribute that represents a dense array of 366 dense-string-elements-attribute ::= `dense` `<` attribute-value `>` `:` 370 A dense string elements attribute is an elements attribute containing a 434 dictionary-attribute ::= `{` (attribute-entry (`,` attribute-entry)*)? `}` 599 An integer attribute is a literal attribute that represents an integral 813 sparse-elements-attribute ::= `sparse` `<` attribute-value `,` 818 A sparse elements attribute is an elements attribute that represents a 903 /// Get a zero attribute for the given sparse attribute. [all …]
|