/llvm-project/lldb/unittests/ObjectFile/Breakpad/ |
H A D | BreakpadRecordsTest.cpp | 38 TEST(ModuleRecord, parse) { in TEST() argument 41 ModuleRecord::parse( in TEST() 44 EXPECT_EQ(std::nullopt, ModuleRecord::parse("MODULE")); in TEST() 45 EXPECT_EQ(std::nullopt, ModuleRecord::parse("MODULE Linux")); in TEST() 46 EXPECT_EQ(std::nullopt, ModuleRecord::parse("MODULE Linux x86_64")); in TEST() 48 ModuleRecord::parse("MODULE Linux x86_64 deadbeefbaadf00d")); in TEST() 51 TEST(InfoRecord, parse) { in TEST() argument 53 InfoRecord::parse("INFO CODE_ID 404142434445464748494a4b4c4d4e4f")); in TEST() 54 EXPECT_EQ(InfoRecord(UUID()), InfoRecord::parse("INFO CODE_ID 47 a.exe")); in TEST() 56 EXPECT_EQ(std::nullopt, InfoRecord::parse("INFO")); in TEST() [all …]
|
/llvm-project/clang-tools-extra/unittests/clang-query/ |
H A D | QueryParserTest.cpp | 21 QueryRef parse(StringRef Code) { return QueryParser::parse(Code, QS); } in parse() function in QueryParserTest 27 QueryRef Q = parse(""); in TEST_F() 30 Q = parse("\n"); in TEST_F() 35 QueryRef Q = parse("foo"); in TEST_F() 41 QueryRef Q = parse("help"); in TEST_F() 44 Q = parse("help me"); in TEST_F() 50 QueryRef Q = parse("quit"); in TEST_F() 53 Q = parse("q"); in TEST_F() 56 Q = parse("quit me"); in TEST_F() 63 QueryRef Q = parse("set"); in TEST_F() [all …]
|
/llvm-project/mlir/test/python/ir/ |
H A D | attributes.py | 20 t = Attribute.parse('"hello"') 35 t = Attribute.parse("BAD_ATTR_DOES_NOT_EXIST") 38 # CHECK: Unable to parse attribute: 50 a1 = Attribute.parse('"attr1"') 51 a2 = Attribute.parse('"attr2"') 52 a3 = Attribute.parse('"attr1"') 67 a1 = Attribute.parse('"attr1"') 68 a2 = Attribute.parse('"attr2"') 69 a3 = Attribute.parse('"attr1"') 85 a1 = Attribute.parse('"attr [all...] |
H A D | builtin_types.py | 21 t = Type.parse("i32", ctx) 36 t = Type.parse("BAD_TYPE_DOES_NOT_EXIST", ctx) 39 # CHECK: Unable to parse type: 51 t1 = Type.parse("i32", ctx) 52 t2 = Type.parse("f32", ctx) 53 t3 = Type.parse("i32", ctx) 68 t1 = Type.parse("i32", ctx) 69 t2 = Type.parse("f32", ctx) 70 t3 = Type.parse("i32", ctx) 87 t1 = Type.parse("i3 [all...] |
H A D | operation.py | 34 module = Module.parse( 98 module = Module.parse( 141 module = Module.parse( 164 module = Module.parse( 224 module = Module.parse( 247 module = Module.parse( 305 module = Module.parse( 360 module = Module.parse( 418 module = Module.parse( 441 module = Module.parse( [all …]
|
H A D | module.py | 21 module = Module.parse(r"""module @successfulParse {}""", ctx) 40 module = Module.parse(r"""}SYNTAX ERROR{""", ctx) 70 module = Module.parse( 88 module = Module.parse( 95 module = Module.parse(binary_asm) 104 module = Module.parse(r"""module @successfulParse {}""", ctx) 148 module = Module.parse(r"""module @successfulParse {}""", ctx)
|
H A D | insertion_point.py | 19 module = Module.parse( 44 module = Module.parse( 71 module = Module.parse( 105 module = Module.parse( 131 module = Module.parse( 155 module = Module.parse( 179 module = Module.parse(
|
/llvm-project/llvm/utils/lit/tests/unit/ |
H A D | ShUtil.py | 34 def parse(self, str): member in TestShParse 35 return ShParser(str).parse() 39 self.parse("echo hello"), Pipeline([Command(["echo", "hello"], [])], False) 42 self.parse('echo ""'), Pipeline([Command(["echo", ""], [])], False) 45 self.parse("""echo -DFOO='a'"""), 49 self.parse('echo -DFOO="a"'), 55 self.parse("echo hello > c"), 59 self.parse("echo hello > c >> d"), 65 self.parse("a 2>&1"), Pipeline([Command(["a"], [((">&", 2), "1")])], False) 70 self.parse("a | b"), [all …]
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | ConfigYAML.cpp | 58 // Tries to parse N into F, returning false if it failed and we couldn't 60 bool parse(Fragment &F, Node &N) { 62 Dict.handle("If", [&](Node &N) { parse(F.If, N); }); in parse() 63 Dict.handle("CompileFlags", [&](Node &N) { parse(F.CompileFlags, N); }); in parse() 64 Dict.handle("Index", [&](Node &N) { parse(F.Index, N); }); in parse() 65 Dict.handle("Style", [&](Node &N) { parse(F.Style, N); }); in parse() 66 Dict.handle("Diagnostics", [&](Node &N) { parse(F.Diagnostics, N); }); in parse() 67 Dict.handle("Completion", [&](Node &N) { parse(F.Completion, N); }); in parse() 68 Dict.handle("Hover", [&](Node &N) { parse(F.Hover, N); }); in parse() 69 Dict.handle("InlayHints", [&](Node &N) { parse( in parse() 61 bool parse(Fragment &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 77 void parse(Fragment::IfBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 94 void parse(Fragment::CompileFlagsBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 114 void parse(Fragment::StyleBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 123 void parse(Fragment::DiagnosticsBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 140 void parse(Fragment::DiagnosticsBlock::ClangTidyBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 166 void parse(Fragment::DiagnosticsBlock::IncludesBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 179 void parse(Fragment::IndexBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 206 void parse(Fragment::IndexBlock::ExternalBlock &F, parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 217 void parse(Fragment::IndexBlock::ExternalBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 227 void parse(Fragment::CompletionBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 236 void parse(Fragment::HoverBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 245 void parse(Fragment::InlayHintsBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 274 void parse(Fragment::SemanticTokensBlock &F, Node &N) { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser 319 void parse(Node &N) const { parse() function in clang::clangd::config::__anon5a4e72b70111::Parser::DictParser [all...] |
/llvm-project/mlir/test/python/dialects/ |
H A D | transform_interpreter.py | 24 m = ir.Module.parse(print_root_module.replace("from interpreter", "print_self")) 36 transform = ir.Module.parse( 39 payload = ir.Module.parse("module attributes { this.is.payload } {}") 53 m = ir.Module.parse( 56 payload = ir.Module.parse("module attributes { this.is.payload } {}") 65 payload = ir.Module.parse("module attributes { this.is.payload } {}") 108 main = ir.Module.parse(print_root_via_include_module) 109 callee1 = ir.Module.parse(callee1_definition) 110 callee2 = ir.Module.parse(callee2_definition) 128 main = ir.Module.parse(print_root_via_include_module) [all …]
|
H A D | quant.py | 18 any = Type.parse("!quant.any<i8<-8:7>:f32>") 19 uniform = Type.parse("!quant.uniform<i8<-8:7>:f32, 0.99872:127>") 20 per_axis = Type.parse("!quant.uniform<i8:f32:1, {2.0e+2,0.99872:120}>") 21 calibrated = Type.parse("!quant.calibrated<f32<-0.998:1.2321>>") 66 assert any == Type.parse("!quant.any<i8<-8:7>:f32>") 87 assert uniform == Type.parse("!quant.uniform<i8<-8:7>:f32, 0.99872:127>") 121 assert per_axis == Type.parse("!quant.uniform<i8:f32:1, {2.0e+2,0.99872:120}>") 137 assert calibrated == Type.parse("!quant.calibrated<f32<-0.998:1.2321>>")
|
/llvm-project/mlir/test/python/ |
H A D | pass_manager.py | 55 # An unregistered pass should not parse. 57 pm = PassManager.parse( 66 # A registered pass should parse successfully. 67 pm = PassManager.parse("builtin.module(func.func(print-op-stats{json=false}))") 79 # A registered pass should parse successfully even if has extras spaces for readability 80 pm = PassManager.parse( 97 pm = PassManager.parse("any(unknown-pass)") 131 pm = PassManager.parse("func.func(normalize-memrefs)") 146 pm = PassManager.parse("any(print-op-stats{json=false})") 147 func = FuncOp.parse( [all...] |
H A D | execution_engine.py | 42 module = Module.parse( 67 module = Module.parse( 83 pm = PassManager.parse( 94 module = Module.parse( 113 module = Module.parse( 146 module = Module.parse( 185 module = Module.parse( 238 module = Module.parse( 279 module = Module.parse( 318 module = Module.parse( [all...] |
/llvm-project/llvm/lib/Support/ |
H A D | regcomp.c | 189 * parse structure, passed up and down to avoid global variables and 192 struct parse { struct 206 static void p_ere(struct parse *, int); argument 207 static void p_ere_exp(struct parse *); 208 static void p_str(struct parse *); 209 static void p_bre(struct parse *, int, int); 210 static int p_simp_re(struct parse *, int); 211 static int p_count(struct parse *); 212 static void p_bracket(struct parse *); 213 static void p_b_term(struct parse *, cse [all...] |
/llvm-project/mlir/test/Dialect/Quant/ |
H A D | parse-uniform.mlir | 8 func.func @parse() -> !qalias { 17 func.func @parse() -> !qalias { 27 func.func @parse() -> !qalias { 36 func.func @parse() -> !qalias { 45 func.func @parse() -> !qalias { 54 func.func @parse() -> !qalias { 63 func.func @parse() -> !qalias { 72 func.func @parse() -> !qalias { 81 func.func @parse() -> !qalias { 90 func.func @parse() -> !qalias { [all …]
|
/llvm-project/llvm/test/TableGen/GlobalISelCombinerEmitter/ |
H A D | patfrag-errors.td | 49 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Could not parse GICombinePatFrag 'OutMustBeRoot' 56 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(OutMustBeRoot ?:$bar, ?:$foo)' 65 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Could not parse GICombinePatFrag 'BadOutType' 72 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(BadOutType ?:$bar, ?:$foo)' 95 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Could not parse GICombinePatFrag 'WipMatchOpcodePatFrag' 102 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(WipMatchOpcodePatFrag)' 110 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Could not parse GICombinePatFrag 'NestingPatFrag' 117 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(NestingPatFrag)' 124 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Could not parse GICombinePatFrag 'DupParamIn' 131 // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Failed to parse pattern: '(DupParamIn ?:$dst, ?:$bar)' [all …]
|
/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | attr-unparseable.ll | 3 ; CHECK: cannot parse integer attribute amdgpu-num-sgpr 10 ; CHECK: cannot parse integer attribute amdgpu-num-sgpr 17 ; CHECK: cannot parse integer attribute amdgpu-num-sgpr 24 ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size 31 ; CHECK: can't parse first integer attribute amdgpu-flat-work-group-size 38 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size 45 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size 52 ; CHECK: can't parse second integer attribute amdgpu-flat-work-group-size
|
H A D | attr-amdgpu-num-workgroups_error_check.ll | 3 ; ERROR: error: can't parse integer attribute -1 in amdgpu-max-num-workgroups 10 ; ERROR: error: can't parse integer attribute -2 in amdgpu-max-num-workgroups 17 ; ERROR: error: can't parse integer attribute -3 in amdgpu-max-num-workgroups 24 ; ERROR: error: can't parse integer attribute 1.0 in amdgpu-max-num-workgroups 31 ; ERROR: error: can't parse integer attribute 2.0 in amdgpu-max-num-workgroups 38 ; ERROR: error: can't parse integer attribute 3.0 in amdgpu-max-num-workgroups 45 ; ERROR: error: can't parse integer attribute 10000000000 in amdgpu-max-num-workgroups
|
/llvm-project/llvm/test/Assembler/ |
H A D | inrange-errors.ll | 2 ; RUN: not llvm-as < %t/parse-error-1.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-1… 3 ; RUN: not llvm-as < %t/parse-error-2.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-2… 4 ; RUN: not llvm-as < %t/parse-error-3.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-3… 5 ; RUN: not llvm-as < %t/parse-error-4.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-4… 8 ;--- parse-error-1.ll 16 ;--- parse-error-2.ll 24 ;--- parse-error-3.ll 32 ;--- parse-error-4.ll
|
/llvm-project/clang/unittests/Analysis/FlowSensitive/ |
H A D | SimplifyConstraintsTest.cpp | 25 llvm::SetVector<const Formula *> parse(StringRef Lines) { in parse() function in __anonf242c8620111::SimplifyConstraintsTest 34 llvm::SetVector<const Formula *> Constraints = parse(Lines); in simplify() 81 EqualsConstraints(parse(""))); in TEST_F() 94 EqualsConstraints(parse("false"))); in TEST_F() 108 EqualsConstraints(parse("false"))); in TEST_F() 122 EqualsConstraints(parse("(V0 | V1)"))); in TEST_F() 138 EqualsConstraints(parse(R"( in TEST_F() 155 EqualsConstraints(parse(""))); in TEST_F() 168 EqualsConstraints(parse(R"( in TEST_F()
|
/llvm-project/mlir/lib/Dialect/SPIRV/IR/ |
H A D | GroupOps.cpp | 227 ParseResult GroupNonUniformFAddOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformFAddOp 245 ParseResult GroupNonUniformFMaxOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformFMaxOp 263 ParseResult GroupNonUniformFMinOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformFMinOp 281 ParseResult GroupNonUniformFMulOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformFMulOp 299 ParseResult GroupNonUniformIAddOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformIAddOp 317 ParseResult GroupNonUniformIMulOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformIMulOp 335 ParseResult GroupNonUniformSMaxOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformSMaxOp 353 ParseResult GroupNonUniformSMinOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformSMinOp 371 ParseResult GroupNonUniformUMaxOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformUMaxOp 389 ParseResult GroupNonUniformUMinOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformUMinOp 407 ParseResult GroupNonUniformBitwiseAndOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformBitwiseAndOp 425 ParseResult GroupNonUniformBitwiseOrOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformBitwiseOrOp 443 ParseResult GroupNonUniformBitwiseXorOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformBitwiseXorOp 461 ParseResult GroupNonUniformLogicalAndOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformLogicalAndOp 479 ParseResult GroupNonUniformLogicalOrOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformLogicalOrOp 497 ParseResult GroupNonUniformLogicalXorOp::parse(OpAsmParser &parser, parse() function in mlir::spirv::GroupNonUniformLogicalXorOp
|
/llvm-project/mlir/include/mlir/IR/ |
H A D | DialectImplementation.h | 71 /// parsers. Auto-generated parsers generate calls to `FieldParser<T>::parse`, 72 /// where `T` is the parameter storage type, to parse custom types. 81 static FailureOr<AttributeT> parse(AsmParser &parser) { 96 static FailureOr<TypeT> parse(AsmParser &parser) { 108 static FailureOr<IntT> parse(AsmParser &parser) { 119 static FailureOr<std::string> parse(AsmParser &parser) { 133 static FailureOr<std::optional<AttributeT>> parse(AsmParser &parser) { 153 static FailureOr<std::optional<IntT>> parse(AsmParser &parser) { 178 static FailureOr<ContainerT> parse(AsmParser &parser) { 181 auto element = FieldParser<ElementT>::parse(parse [all...] |
/llvm-project/mlir/test/mlir-tblgen/ |
H A D | attr-or-type-format.td | 43 // ATTR: ::mlir::Attribute TestAAttr::parse(::mlir::AsmParser &odsParser, 51 // ATTR: _result_value = ::mlir::FieldParser<IntegerAttr>::parse(odsParser); 89 // ATTR: ::mlir::Attribute TestBAttr::parse(::mlir::AsmParser &odsParser, 145 // ATTR: ::mlir::Attribute TestFAttr::parse(::mlir::AsmParser &odsParser, 149 // ATTR: _result_v0 = ::mlir::FieldParser<int>::parse(odsParser); 154 // ATTR: _result_v1 = ::mlir::FieldParser<int>::parse(odsParser); 171 // ATTR-LABEL: Attribute TestGAttr::parse 186 // ATTR-LABEL: Attribute TestHAttr::parse 208 // ATTR-LABEL: TestEnumAttr::parse 221 // TYPE: ::mlir::Type TestCType::parse( [all...] |
H A D | op-format.td | 21 // CHECK-LABEL: CustomStringLiteralA::parse 29 // CHECK-LABEL: CustomStringLiteralB::parse 37 // CHECK-LABEL: CustomStringLiteralC::parse 45 // CHECK-LABEL: CustomStringLiteralD::parse 57 // CHECK-LABEL: OptionalGroupA::parse 70 // CHECK-LABEL: OptionalGroupB::parse 85 // CHECK-LABEL: OptionalGroupC::parse 95 // CHECK-LABEL: OptionalGroupD::parse
|
/llvm-project/clang/unittests/ASTMatchers/Dynamic/ |
H A D | ParserTest.cpp | 46 void parse(StringRef Code) { in parse() function in clang::ast_matchers::dynamic::__anon417b69980111::MockSema 90 Sema.parse("true"); in TEST() 91 Sema.parse("false"); in TEST() 99 Sema.parse("1.0"); in TEST() 100 Sema.parse("2.0f"); in TEST() 101 Sema.parse("34.56e-78"); in TEST() 102 Sema.parse("4.E+6"); in TEST() 103 Sema.parse("1"); in TEST() 114 Sema.parse("0"); in TEST() 115 Sema.parse("123"); in TEST() [all …]
|