/llvm-project/clang/include/clang/Basic/ |
H A D | BuiltinsVEVL.gen.def | 1 BUILTIN(__builtin_ve_vl_vld_vssl, "V256dLUivC*Ui", "n") 2 BUILTIN(__builtin_ve_vl_vld_vssvl, "V256dLUivC*V256dUi", "n") 3 BUILTIN(__builtin_ve_vl_vldnc_vssl, "V256dLUivC*Ui", "n") 4 BUILTIN(__builtin_ve_vl_vldnc_vssvl, "V256dLUivC*V256dUi", "n") 5 BUILTIN(__builtin_ve_vl_vldu_vssl, "V256dLUivC*Ui", "n") 6 BUILTIN(__builtin_ve_vl_vldu_vssvl, "V256dLUivC*V256dUi", "n") 7 BUILTIN(__builtin_ve_vl_vldunc_vssl, "V256dLUivC*Ui", "n") 8 BUILTIN(__builtin_ve_vl_vldunc_vssvl, "V256dLUivC*V256dUi", "n") 9 BUILTIN(__builtin_ve_vl_vldlsx_vssl, "V256dLUivC*Ui", "n") 10 BUILTIN(__builtin_ve_vl_vldlsx_vssvl, "V256dLUivC*V256dUi", "n") [all …]
|
/llvm-project/clang-tools-extra/unittests/clang-change-namespace/ |
H A D | ChangeNamespaceTests.cpp | 73 std::string Code = "namespace na {\n" in TEST_F() 74 "namespace nx {\n" in TEST_F() 75 "class A {};\n" in TEST_F() 76 "} // namespace nx\n" in TEST_F() 77 "} // namespace na\n"; in TEST_F() 78 std::string Expected = "namespace na {\n" in TEST_F() 79 "namespace nx {\n" in TEST_F() 80 "class A {};\n" in TEST_F() 81 "} // namespace nx\n" in TEST_F() 82 "} // namespace na\n"; in TEST_F() [all …]
|
/llvm-project/clang/unittests/Format/ |
H A D | BracesRemoverTest.cpp | 30 verifyFormat("if (isa<FunctionDecl>(D))\n" in TEST_F() 31 " handleFunctionDecl(D);\n" in TEST_F() 32 "else if (isa<VarDecl>(D))\n" in TEST_F() 34 "if (isa<FunctionDecl>(D)) {\n" in TEST_F() 35 " handleFunctionDecl(D);\n" in TEST_F() 36 "} else if (isa<VarDecl>(D)) {\n" in TEST_F() 37 " handleVarDecl(D);\n" in TEST_F() 42 verifyFormat("if (isa<VarDecl>(D)) {\n" in TEST_F() 43 " // It is necessary that we explain the situation with this\n" in TEST_F() 44 " // surprisingly long comment, so it would be unclear\n" in TEST_F() [all …]
|
H A D | FormatTestComments.cpp | 28 verifyFormat("// line 1\n" in TEST_F() 29 "// line 2\n" in TEST_F() 35 EXPECT_EQ("// comment\n" in TEST_F() 37 format("//comment\n" in TEST_F() 40 verifyFormat("void f() {\n" in TEST_F() 41 " // Doesn't do anything\n" in TEST_F() 43 verifyFormat("SomeObject\n" in TEST_F() 44 " // Calling someFunction on SomeObject\n" in TEST_F() 46 verifyFormat("auto result = SomeObject\n" in TEST_F() 47 " // Calling someFunction on SomeObject\n" in TEST_F() [all...] |
H A D | NamespaceEndCommentsFixerTest.cpp | 26 LLVM_DEBUG(llvm::errs() << "---\n"); in fixNamespaceEndComments() 27 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in fixNamespaceEndComments() 32 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in fixNamespaceEndComments() 57 EXPECT_EQ("namespace {\n" in TEST_F() 58 "int i;\n" in TEST_F() 59 "int j;\n" in TEST_F() 61 fixNamespaceEndComments("namespace {\n" in TEST_F() 62 "int i;\n" in TEST_F() 63 "int j;\n" in TEST_F() 66 EXPECT_EQ("namespace {\n" in TEST_F() [all …]
|
H A D | FormatTestProto.cpp | 23 LLVM_DEBUG(llvm::errs() << "---\n"); in format() 24 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in format() 29 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in format() 46 verifyFormat("message SomeMessage {\n" in TEST_F() 47 " required int32 field1 = 1;\n" in TEST_F() 49 verifyFormat("message SomeMessage {\n" in TEST_F() 50 " required .absolute.Reference field1 = 1;\n" in TEST_F() [all...] |
H A D | DefinitionBlockSeparatorTest.cpp | 27 LLVM_DEBUG(llvm::errs() << "---\n"); in separateDefinitionBlocks() 28 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in separateDefinitionBlocks() 32 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in separateDefinitionBlocks() 69 EXPECT_EQ(ExpectedCode, Result) << "Test failed. Formatted:\n" << Result; in _verifyFormat() 77 if ((Char == '\n' && LastChar == '\n') || in removeEmptyLines() 78 (Char == '\r' && (LastChar == '\r' || LastChar == '\n'))) { in removeEmptyLines() 93 verifyFormat("int foo(int i, int j) {\n" in TEST_F() 94 " int r = i + j;\n" in TEST_F() 95 " return r;\n" in TEST_F() 96 "}\n" in TEST_F() [all …]
|
H A D | FormatTestTextProto.cpp | 36 verifyFormat("msg_field: {\n" in TEST_F() 37 " field_a: 1\n" in TEST_F() 38 " field_b: OK\n" in TEST_F() 39 " field_c: \"OK\"\n" in TEST_F() 40 " field_d: 123\n" in TEST_F() 41 " field_e: 23\n" in TEST_F() 50 verifyFormat("msg_field {\n" in TEST_F() 51 " field_a: 1\n" in TEST_F() 52 " field_b: OK\n" in TEST_F() 53 " field_c: \"OK\"\n" in TEST_F() [all...] |
H A D | FormatTestSelective.cpp | 23 LLVM_DEBUG(llvm::errs() << "---\n"); in format() 24 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in format() 29 EXPECT_TRUE(Status.FormatComplete) << Code << "\n\n"; in format() 32 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in format() 42 EXPECT_EQ("int a;\n", format("int a; \n \ in TEST_F() [all...] |
H A D | FormatTest.cpp | 23 EXPECT_EQ("a\n//b\nc", messUp("a\n//b\nc")); in TEST_F() 24 EXPECT_EQ("a\n#b\nc", messUp("a\n#b\nc")); in TEST_F() 25 EXPECT_EQ("a\n#b c d\ne", messUp("a\n#b\\\nc\\\nd\ne")); in TEST_F() 45 verifyFormat("\nint i;", " \n\t \v \f int i;"); in TEST_F() 47 verifyFormat("int i;\nint j;", " int i;\n int j;"); in TEST_F() 51 verifyFormat("int i;", " \n\t \v \f int i;", Style); in TEST_F() 59 verifyFormat("{\n" in TEST_F() [all...] |
H A D | UsingDeclarationsSorterTest.cpp | 25 LLVM_DEBUG(llvm::errs() << "---\n"); in sortUsingDeclarations() 26 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in sortUsingDeclarations() 31 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in sortUsingDeclarations() 46 EXPECT_EQ("using a;\n" in TEST_F() 48 sortUsingDeclarations("using a;\n" in TEST_F() 51 EXPECT_EQ("using a;\n" in TEST_F() 53 sortUsingDeclarations("using aa;\n" in TEST_F() 56 EXPECT_EQ("using a;\n" in TEST_F() 58 sortUsingDeclarations("using a;\n" in TEST_F() 62 EXPECT_EQ("using a::bcd;\n" in TEST_F() [all …]
|
H A D | SortIncludesTest.cpp | 56 verifyFormat("#include \"a.h\"\n" in TEST_F() 57 "#include \"b.h\"\n" in TEST_F() 59 sort("#include \"a.h\"\n" in TEST_F() 60 "#include \"c.h\"\n" in TEST_F() 63 verifyFormat("// comment\n" in TEST_F() 64 "#include <a>\n" in TEST_F() 66 sort("// comment\n" in TEST_F() 67 "#include <b>\n" in TEST_F() 73 verifyFormat("#include \"a.h\"\n" in TEST_F() 74 "#include \"b.h\" /* long\n" in TEST_F() [all...] |
H A D | FormatTestJS.cpp | 23 LLVM_DEBUG(llvm::errs() << "---\n"); in format() 24 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); in format() 32 LLVM_DEBUG(llvm::errs() << "\n" << *Result << "\n\n"); in format() 53 EXPECT_EQ(Code.str(), Result) << "Formatted:\n" << Result; in verifyFormat() 62 EXPECT_EQ(Expected.str(), Result) << "Formatted:\n" << Result; in verifyFormat() 67 verifyFormat("/* aaaaaaaaaaaaa */ aaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" in TEST_F() 70 EXPECT_EQ("aaaaa = bbbb.ccccccccccccccc(\n" in TEST_F() [all...] |
H A D | FormatTestJava.cpp | 41 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" in TEST_F() 45 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n" in TEST_F() 48 verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n" in TEST_F() 53 verifyFormat("class SomeClass {\n" in TEST_F() 54 " void f() {}\n" in TEST_F() 55 " int g() {\n" in TEST_F() 56 " return 0;\n" in TEST_F() 57 " }\n" in TEST_F() 58 " void h() {\n" in TEST_F() 59 " while (true) f();\n" in TEST_F() [all …]
|
H A D | SortImportsTestJS.cpp | 40 EXPECT_EQ(Expected.str(), Result) << "Expected:\n" in _verifySort() 41 << Expected << "\nActual:\n" in _verifySort() 51 verifySort("import {sym} from 'a';\n" in TEST_F() 52 "import {sym} from 'b';\n" in TEST_F() 53 "import {sym} from 'c';\n" in TEST_F() 54 "\n" in TEST_F() 56 "import {sym} from 'a';\n" in TEST_F() 57 "import {sym} from 'b';\n" in TEST_F() 58 "import {sym} from 'c';\n" in TEST_F() 59 "\n" in TEST_F() [all …]
|
H A D | SortImportsTestJava.cpp | 40 EXPECT_EQ("import static org.b;\n" in TEST_F() 41 "\n" in TEST_F() 43 sort("import org.a;\n" in TEST_F() 48 EXPECT_EQ("import org.Test;\n" in TEST_F() 49 "import org.a.Test;\n" in TEST_F() 51 sort("import org.a.Test;\n" in TEST_F() 52 "import org.Test;\n" in TEST_F() 57 EXPECT_EQ("import static com.test.a;\n" in TEST_F() 58 "\n" in TEST_F() 59 "import static org.a;\n" in TEST_F() [all …]
|
H A D | BracesInserterTest.cpp | 24 verifyFormat("// clang-format off\n" in TEST_F() 25 "// comment\n" in TEST_F() 26 "if (a) f();\n" in TEST_F() 27 "// clang-format on\n" in TEST_F() 28 "if (b) {\n" in TEST_F() 29 " g();\n" in TEST_F() 31 "// clang-format off\n" in TEST_F() 32 "// comment\n" in TEST_F() 33 "if (a) f();\n" in TEST_F() 34 "// clang-format on\n" in TEST_F() [all …]
|
H A D | FormatTestVerilog.cpp | 30 verifyFormat("x <= x;\n" in TEST_F() 31 "sfdbddfbdfbb <= x;\n" in TEST_F() 34 verifyFormat("x = x;\n" in TEST_F() 35 "sfdbddfbdfbb = x;\n" in TEST_F() 40 verifyFormat("x <= x;\n" in TEST_F() 43 verifyFormat("x += x;\n" in TEST_F() 46 verifyFormat("x <<= x;\n" in TEST_F() 49 verifyFormat("x <<<= x;\n" in TEST_F() 52 verifyFormat("x >>= x;\n" in TEST_F() 55 verifyFormat("x >>>= x;\n" in TEST_F() [all...] |
H A D | FormatTestObjC.cpp | 36 "@interface\n" in TEST() 44 "@interface\n" in TEST() 50 "@interface\n" in TEST() 56 "@interface\n" in TEST() 57 "@end\n" in TEST() 63 "@interface\n" in TEST() 73 Style = getStyle("{}", "a.h", "none", "@interface Foo\n@end"); in TEST() 82 Style = getStyle("{}", "a.h", "none", "@protocol Foo\n@end"); in TEST() 170 "static const char *names[] = {[0] = \"foo\",\n" in TEST() 176 "static const char *names[] = {[0] EQ \"foo\",\n" in TEST() [all...] |
/llvm-project/llvm/utils/TableGen/jupyter/ |
H A D | sql_query_backend.ipynb | 16 "This tutorial is going to walk through creating a TableGen backend using Python.\n", 17 "\n", 18 … here will still apply and you could port this tutorial to any language that has a JSON parser.\n", 19 "\n", 20 "This is the process in LLVM, using a C++ backend:\n", 21 "```\n", 22 "TableGen source -> llvm-tblgen -> backend (within llvm-tblgen) -> results\n", 23 "```\n", 24 "This is what we will be doing:\n", 25 "```\n", [all …]
|
/llvm-project/clang-tools-extra/unittests/clang-tidy/ |
H A D | ReadabilityModuleTest.cpp | 16 EXPECT_EQ("namespace i {\n} // namespace i", in TEST() 17 runCheckOnCode<NamespaceCommentCheck>("namespace i {\n}")); in TEST() 18 EXPECT_EQ("namespace {\n} // namespace", in TEST() 19 runCheckOnCode<NamespaceCommentCheck>("namespace {\n}")); in TEST() 20 EXPECT_EQ("namespace i { namespace j {\n} // namespace j\n } // namespace i", in TEST() 22 "namespace i { namespace j {\n} }")); in TEST() 32 EXPECT_EQ("namespace i { namespace j {\n" in TEST() 33 "} /* namespace j */ } // namespace i\n" in TEST() 36 "namespace i { namespace j {\n" in TEST() [all...] |
/llvm-project/clang/unittests/Tooling/ |
H A D | HeaderIncludesTest.cpp | 52 std::string Expected = "#include \"a.h\"\n" in TEST_F() 60 Code += "#include \"a.h\"\n"; in TEST_F() 62 std::string Expected = Code + "#include \"a2.h\"\n"; in TEST_F() 67 std::string Code = "#include \"a.h\"\n"; in TEST_F() 68 std::string Expected = Code + "#import \"a.h\"\n"; in TEST_F() 73 std::string Code = "#import \"a.h\"\n"; in TEST_F() 86 std::string Code = "#ifndef A_H\n" in TEST_F() 87 "#define A_H\n" in TEST_F() 88 "class A {};\n" in TEST_F() 89 "#define MMM 123\n" in TEST_F() [all …]
|
/llvm-project/llvm/unittests/Analysis/ |
H A D | TargetLibraryInfoTest.cpp | 62 parseAssembly("%foo = type opaque\n"); in TEST_F() 87 "target datalayout = \"p:64:64:64\"\n" in TEST_F() 88 ";; Invalid additional params \n" in TEST_F() 89 "declare {i8*, i64} @__size_returning_new(i64, i64)\n" in TEST_F() 90 ";; Invalid params types \n" in TEST_F() 91 "declare {i8*, i64} @__size_returning_new_hot_cold(i64, i32)\n" in TEST_F() 92 ";; Invalid return struct types \n" in TEST_F() 93 "declare {i8*, i8} @__size_returning_new_aligned(i64, i64)\n" in TEST_F() 94 ";; Invalid return type \n" in TEST_F() 95 "declare i8* @__size_returning_new_aligned_hot_cold(i64, i64, i8)\n"); in TEST_F() [all...] |
H A D | CFGTest.cpp | 137 "define void @test() {\n" in TEST_F() 138 "entry:\n" in TEST_F() 139 " bitcast i8 undef to i8\n" in TEST_F() 140 " %B = bitcast i8 undef to i8\n" in TEST_F() 141 " bitcast i8 undef to i8\n" in TEST_F() 142 " bitcast i8 undef to i8\n" in TEST_F() 143 " %A = bitcast i8 undef to i8\n" in TEST_F() 144 " ret void\n" in TEST_F() 145 "}\n"); in TEST_F() 151 "define void @test() {\n" in TEST_F() [all...] |
/llvm-project/clang-tools-extra/unittests/clang-move/ |
H A D | ClangMoveTests.cpp | 27 const char TestHeader[] = "namespace a {\n" 28 "class C1; // test\n" 29 "template <typename T> class C2;\n" 30 "namespace b {\n" 31 "// This is a Foo class\n" 32 "// which is used in\n" 33 "// test.\n" 34 "class Foo {\n" 35 "public:\n" 36 " void f();\n" [all …]
|