| /llvm-project/llvm/test/MC/RISCV/ |
| H A D | attribute-arch.s | 7 .attribute arch, "rv32i" 8 # CHECK: attribute 5, "rv32i2p1" 10 .attribute arch, "rv32i2p1" 11 # CHECK: attribute 5, "rv32i2p1" 13 .attribute arch, "rv32e" 14 # CHECK: attribute 5, "rv32e2p0" 16 .attribute arch, "rv64e" 17 # CHECK-RV64: attribute 5, "rv64e2p0" 19 .attribute arch, "rv32i2p1_m2" 20 # CHECK: attribute [all...] |
| H A D | attribute.s | 1 ## Test llvm-mc could handle .attribute correctly. 10 .attribute stack_align, 16 11 # CHECK: attribute 4, 16 13 .attribute arch, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0" 14 # CHECK: attribute 5, "rv32i2p1_m2p0_a2p1_c2p0_zmmul1p0_zaamo1p0_zalrsc1p0" 16 .attribute unaligned_access, 0 17 # CHECK: attribute 6, 0 19 .attribute priv_spec, 2 20 # CHECK: attribute 8, 2 22 .attribute priv_spec_mino [all...] |
| H A D | invalid-attribute.s | 2 ## - Unknown attribute name. 3 ## - Feed integer value to string type attribute. 4 ## - Feed string value to integer type attribute. 10 .attribute unknown, "unknown" 11 # CHECK: [[@LINE-1]]:12: error: attribute name not recognised: unknown 13 .attribute arch, "foo" 16 .attribute arch, "rv32i2p1_y2p0" 19 .attribute stack_align, "16" 22 .attribute unaligned_access, "0" 25 .attribute priv_spec, "2" [all …]
|
| /llvm-project/clang/test/Parser/ |
| H A D | pragma-attribute.cpp | 1 // RUN: %clang_cc1 -Wno-pragma-clang-attribute -verify -std=c++11 %s 3 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = function) 7 #pragma clang attribute pop 9 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(is_parameter), function)) 10 #pragma clang attribute pop 12 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = variable(unless(is_parameter))) 13 #pragma clang attribute pop 15 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(unless(is_parameter)))) 16 #pragma clang attribute pop 18 #pragma clang attribute pus [all...] |
| /llvm-project/clang/test/Sema/ |
| H A D | pragma-attribute-strict-subjects.c | 3 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to = any(function, variable)) 5 #pragma clang attribute pop 7 // Check for contradictions in rules for attribute without a strict subject set: 9 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(variable, variable(is_parameter), function(is_member), variable(is_global))) 10 // expected-error@-1 {{redundant attribute subject matcher sub-rule 'variable(is_parameter)'; 'variable' already matches those declarations}} 11 // expected-error@-2 {{redundant attribute subject matcher sub-rule 'variable(is_global)'; 'variable' already matches those declarations}} 13 #pragma clang attribute pop 15 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions2"))), apply_to = any(function(is_member), function)) 16 // expected-error@-1 {{redundant attribute subject matcher sub-rule 'function(is_member)'; 'function' already matches those declarations}} 18 #pragma clang attribute po [all...] |
| H A D | pragma-attribute.c | 3 #pragma clang attribute pop // expected-error {{'#pragma clang attribute pop' with no matching '#pr… 6 #pragma clang attribute push (__attribute__((annotate)), apply_to = function) // expected-warning {… 7 #pragma clang attribute pop // expected-note {{'#pragma clang attribute push' regions ends here}} 10 #pragma clang attribute push (__attribute__((annotate)), apply_to = function) // expected-error 4 {… 15 #pragma clang attribute push (__attribute__((annotate())), apply_to = function) // expected-error 2… 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 29 #pragma clang attribute push (__attribute__((optnone)), apply_to = function) // expected-note 2 {{c… [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… 12 #pragma clang attribute NotMyNamespace.pop // expected-error{{'#pragma clang attribute NotMyNamespa… 14 #pragma clang attribute MyOtherNamespace.push (__attribute__((annotate)), apply_to=function) // exp… 19 #pragma clang attribute MyNamespace.pop 23 #pragma clang attribute MyOtherNamespace.pop 25 #pragma clang attribute Misc. () // expected-error{{namespace can only apply to 'push' or 'pop' dir… 27 #pragma clang attribute Misc push // expected-error{{expected '.' after pragma attribute namespace … 31 #pragma clang attribute Merp.push (__attribute__((annotate)), apply_to=function) // expected-error{… 32 #pragma clang attribute push (__attribute__((annotate)), apply_to=function) // expected-warning {{u… [all …]
|
| /llvm-project/clang/test/Index/ |
| H A D | index-attrs.m | 37 // CHECK: <attribute>: attribute(iboutletcollection)= [IBOutletCollection=ObjCInterface] 39 // CHECK: <attribute>: attribute(annotate)=anno 40 // CHECK: <getter>: kind: objc-instance-method | name: prop | {{.*}} <attribute>: attribute(annotat… 41 // CHECK: <setter>: kind: objc-instance-method | name: setProp: | {{.*}} <attribute>: attribute(ann… 42 // CHECK: <attribute>: attribute(objc_protocol_requires_explicit_implementation)= 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)= [all …]
|
| /llvm-project/clang/lib/AST/ |
| H A D | JSONNodeDumper.cpp | 34 JOS.attribute("id", createPointerRepresentation(A)); in Visit() 35 JOS.attribute("kind", AttrName); in Visit() 42 // various attribute syntaxes, but we don't currently track that information in Visit() 44 //JOS.attribute("spelling", A->getSpelling()); in Visit() 53 JOS.attribute("id", createPointerRepresentation(S)); in Visit() 54 JOS.attribute("kind", S->getStmtClassName()); in Visit() 59 JOS.attribute("type", createQualType(E->getType())); in Visit() 68 JOS.attribute("valueCategory", Category); in Visit() 74 JOS.attribute("id", createPointerRepresentation(T)); in Visit() 79 JOS.attribute("kin in Visit() [all...] |
| /llvm-project/clang/test/FixIt/ |
| H A D | fixit-pragma-attribute.cpp | 3 #pragma clang attribute push (annotate) 6 #pragma clang attribute push (annotate(("test"))) 10 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( enum, function, fun… 14 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable(is_global)… 18 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(va… 22 #pragma clang attribute pop 24 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions2"))), apply_to = any(f… 27 #pragma clang attribute pop 29 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions1"))), apply_to … 31 #pragma clang attribute pop [all …]
|
| /llvm-project/llvm/test/CodeGen/RISCV/ |
| H A D | attributes.ll | 318 ; CHECK: .attribute 4, 16 320 ; RV32M: .attribute 5, "rv32i2p1_m2p0_zmmul1p0" 321 ; RV32ZMMUL: .attribute 5, "rv32i2p1_zmmul1p0" 322 ; RV32MZMMUL: .attribute 5, "rv32i2p1_m2p0_zmmul1p0" 323 ; RV32A: .attribute 5, "rv32i2p1_a2p1_zaamo1p0_zalrsc1p0" 324 ; RV32B: .attribute 5, "rv32i2p1_b1p0_zba1p0_zbb1p0_zbs1p0" 325 ; RV32F: .attribute 5, "rv32i2p1_f2p2_zicsr2p0" 326 ; RV32D: .attribute 5, "rv32i2p1_f2p2_d2p2_zicsr2p0" 327 ; RV32C: .attribute 5, "rv32i2p1_c2p0" 328 ; RV32ZIHINTPAUSE: .attribute [all...] |
| /llvm-project/clang/test/Misc/ |
| H A D | pragma-attribute-strict-subjects.c | 1 // RUN: %clang_cc1 -fsyntax-only -Wno-pragma-clang-attribute -verify %s 4 // Check for contradictions in rules for attribute without a strict subject set: 6 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(variable, variable(is_parameter), function(is_member), variable(is_global))) 7 // expected-error@-1 {{redundant attribute subject matcher sub-rule 'variable(is_parameter)'; 'variable' already matches those declarations}} 8 // expected-error@-2 {{redundant attribute subject matcher sub-rule 'variable(is_global)'; 'variable' already matches those declarations}} 16 #pragma clang attribute pop 18 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions2"))), apply_to = any(variable(unless(is_parameter)), variable(is_thread_local), function, variable(is_global))) 19 // expected-error@-1 {{negated attribute subject matcher sub-rule 'variable(unless(is_parameter))' contradicts sub-rule 'variable(is_global)'}} 32 #pragma clang attribute pop 36 #pragma clang attribute pus [all...] |
| /llvm-project/mlir/test/Dialect/LLVMIR/ |
| H A D | parameter-attrs-invalid.mlir | 5 // expected-error@below {{"llvm.noalias" attribute attached to non-pointer LLVM type}} 10 // expected-error@below {{"llvm.noalias" should be a unit attribute}} 15 // expected-error@below {{"llvm.readonly" attribute attached to non-pointer LLVM type}} 20 // expected-error@below {{"llvm.readonly" should be a unit attribute}} 25 // expected-error@below {{"llvm.nest" attribute attached to non-pointer LLVM type}} 30 // expected-error@below {{"llvm.nest" should be a unit attribute}} 35 // expected-error@below {{"llvm.align" attribute attached to non-pointer LLVM type}} 40 // expected-error@below {{"llvm.align" should be an integer attribute}} 45 // expected-error@below {{"llvm.sret" attribute attached to non-pointer LLVM type}} 50 // expected-error@below {{"llvm.byval" attribute attached to non-pointer LLVM type}} [all …]
|
| /llvm-project/clang/test/CodeGen/ |
| H A D | arm64-mte.c | 8 #define attribute __attribute__((target("mte"))) macro 10 #define attribute macro 14 attribute 22 attribute 30 attribute 39 attribute 46 attribute 53 attribute 62 attribute 69 attribute [all …]
|
| /llvm-project/llvm/test/MC/CSKY/ |
| H A D | attribute.s | 1 ## Test llvm-mc could handle .attribute correctly. 6 # CHECK: attribute 4, "ck810" 9 # CHECK: attribute 5, "ck810" 12 # CHECK: attribute 6, 13119 15 # CHECK: attribute 7, 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 [all …]
|
| /llvm-project/mlir/include/mlir/IR/ |
| H A D | CommonAttrConstraints.td | 25 // Base attribute definition 37 // Format: $_self will be expanded to the attribute. 43 // The call expression to build an attribute from a constant value. 45 // Format: $0 will be expanded to the constant value of the attribute. 51 // Default value for attribute. 55 // The value type of this attribute. This corresponds to the mlir::Type that 56 // this attribute returns via `getType()`. 59 // Whether the attribute is optional. Typically requires a custom 60 // convertFromStorage method to handle the case where the attribute is 67 // This field is used by attribute wrappe [all...] |
| /llvm-project/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. 18 // CHECK: error: format ambiguity caused by `:` literal found after attribute `attr` 23 // Test optional attribute followed by colon. 24 // CHECK: error: format ambiguity caused by `:` literal found after attribute `attr` 29 // Test attribute followed by whitespace and then colon. 30 // CHECK: error: format ambiguity caused by `:` literal found after attribute `attr` 35 // Test attribute followed by optional dictionary and then colon. 36 // CHECK: error: format ambiguity caused by `:` literal found after attribute `attr` 41 // Test attribute followed by optional group and then colon. [all …]
|
| /llvm-project/clang/test/SemaOpenCL/ |
| H A D | invalid-kernel-attrs.cl | 3 kernel __attribute__((vec_type_hint)) void kernel1() {} //expected-error{{'vec_type_hint' attribute… 7 …{a non-vector or non-vectorizable scalar type is an invalid argument to attribute 'vec_type_hint'}} 9 …{a non-vector or non-vectorizable scalar type is an invalid argument to attribute 'vec_type_hint'}} 11 …tribute__((vec_type_hint(float))) void kernel5() {} //expected-warning{{attribute 'vec_type_hint' … 13 …8,16,32,4))) void kernel6() {} //expected-error{{'work_group_size_hint' attribute requires exactly… 15 …_((work_group_size_hint(3,2,1))) void kernel7() {} //expected-warning{{attribute 'work_group_size… 17 __attribute__((reqd_work_group_size(8,16,32))) void kernel8(){} // expected-error {{attribute 'reqd… 19 __attribute__((work_group_size_hint(8,16,32))) void kernel9(){} // expected-error {{attribute 'work… 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 … [all …]
|
| /llvm-project/llvm/lib/Support/ |
| H A D | TimeProfiler.cpp | 234 J.attribute("pid", Pid); in write() 235 J.attribute("tid", int64_t(Tid)); in write() 236 J.attribute("ts", StartUs); in write() 238 J.attribute("cat", E.Name); in write() 239 J.attribute("ph", "b"); in write() 240 J.attribute("id", 0); in write() 242 J.attribute("ph", "X"); in write() 243 J.attribute("dur", DurUs); in write() 247 J.attribute("ph", "i"); in write() 249 J.attribute("nam in write() [all...] |
| /llvm-project/mlir/test/Conversion/PDLToPDLInterp/ |
| H A D | use-constraint-result.mlir | 11 %0 = attribute 14 %3 = attribute = 0 : i32 15 %4 = attribute = 1 : i32 16 …ative_constraint "return_attr_constraint"(%3, %4 : !pdl.attribute, !pdl.attribute) : !pdl.attribute 17 apply_native_constraint "use_attr_constraint"(%0, %5 : !pdl.attribute, !pdl.attribute) 32 … = pdl.apply_native_constraint "return_attr_constraint"(%inputOp : !pdl.operation) : !pdl.attribute 34 rewrite %root with "rewriter"(%attr : !pdl.attribute) 45 %attr = attribute = 10 46 %value = pdl.apply_native_constraint "return_value_constr"(%attr: !pdl.attribute) : !pdl.value 59 %attr = attribute = 10 [all …]
|
| /llvm-project/mlir/utils/tree-sitter-mlir/dialect/ |
| H A D | memref.js | 10 field('attributes', optional($.attribute)), 22 field('attributes', optional($.attribute)), 28 field('attributes', optional($.attribute)), 36 field('attributes', optional($.attribute)), 48 field('attributes', optional($.attribute)), 54 field('attributes', optional($.attribute)), 60 field('attributes', optional($.attribute)), 69 field('attributes', optional($.attribute)), 77 field('attributes', optional($.attribute)), 83 field('attributes', optional($.attribute)), [all …]
|
| H A D | tensor.js | 9 field('attributes', optional($.attribute)), 15 field('attributes', optional($.attribute)), 21 field('attributes', optional($.attribute)), 32 field('attributes', optional($.attribute)), 39 field('attributes', optional($.attribute)), 48 field('attributes', optional($.attribute)), 63 field('attributes', optional($.attribute)), 91 field('attributes', optional($.attribute)), 98 field('attributes', optional($.attribute)), 110 field('attributes', optional($.attribute)), [all …]
|
| H A D | vector.js | 15 field('attributes', optional($.attribute)), 22 field('attributes', optional($.attribute)), 29 field('attributes', optional($.attribute)), 43 field('attributes', optional($.attribute)), 51 field('attributes', optional($.attribute)), 57 field('attributes', optional($.attribute)), 75 field('attributes', optional($.attribute)), 84 field('attributes', optional($.attribute)), 93 field('attributes', optional($.attribute)), 100 field('attributes', optional($.attribute)), [all …]
|
| /llvm-project/mlir/lib/Target/LLVMIR/Dialect/ROCDL/ |
| H A D | ROCDLToLLVMIRTranslation.cpp | 77 NamedAttribute attribute, in convertOperation() 79 auto *dialect = dyn_cast<ROCDL::ROCDLDialect>(attribute.getNameDialect()); 81 if (dialect->getKernelAttrHelper().getName() == attribute.getName()) { in amendOperation() 84 return op->emitOpError(Twine(attribute.getName()) + in amendOperation() 90 // 2. Insert amdgpu-flat-work-group-size(1, 256) attribute unless the user in amendOperation() 110 attribute.getName()) { in amendOperation() 113 return op->emitOpError(Twine(attribute.getName()) + in amendOperation() 115 auto value = dyn_cast<IntegerAttr>(attribute.getValue()); in amendOperation() 117 return op->emitOpError(Twine(attribute.getName()) + in amendOperation() 127 if (dialect->getWavesPerEuAttrHelper().getName() == attribute in amendOperation() 82 amendOperation(Operation * op,ArrayRef<llvm::Instruction * > instructions,NamedAttribute attribute,LLVM::ModuleTranslation & moduleTranslation) const amendOperation() argument [all...] |
| /llvm-project/clang/test/SemaHLSL/ |
| 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}} 15 // 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}} 30 // expected-error@+1 {{'shader' attribute parameters do not match the previous declaration}} 32 // expected-note@+1 {{conflicting attribute is here}} 38 // expected-note@+1 {{conflicting attribute is here}} 42 // expected-error@+1 {{'shader' attribute parameters do not match the previous declaration}} [all …]
|