/llvm-project/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/ |
H A D | pr-incorrect-logical-instructions.test | 45 ; ONE-NEXT: [003] {Code} 'pushq %rbp' 46 ; ONE-NEXT: [003] {Code} 'movq %rsp, %rbp' 47 ; ONE-NEXT: [003] {Code} 'movl %edi, -0x4(%rbp)' 49 ; ONE-NEXT: [003] {Code} 'movl -0x4(%rbp), %eax' 51 ; ONE-NEXT: [003] {Code} 'imull $0xf423f, -0x4(%rbp), %ecx' 53 ; ONE-NEXT: [003] {Code} 'addl %ecx, %eax' 55 ; ONE-NEXT: [003] {Code} 'subl $0x42, %eax' 57 ; ONE-NEXT: [003] {Code} 'popq %rbp' 58 ; ONE-NEXT: [003] {Code} 'retq' 61 ; ONE-NEXT: [003] {Code} 'pushq %rbp' [all …]
|
/llvm-project/llvm/test/tools/llvm-debuginfo-analyzer/WebAssembly/ |
H A D | 01-wasm-print-basic-details.test | 47 ; ONE-NEXT: [004] {Code} 'i32.const 7' 48 ; ONE-NEXT: [004] {Code} 'local.set 10' 49 ; ONE-NEXT: [004] {Code} 'local.get 5' 50 ; ONE-NEXT: [004] {Code} 'local.get 10' 51 ; ONE-NEXT: [004] {Code} 'i32.store 12' 53 ; ONE-NEXT: [004] {Code} 'i32.const 7' 54 ; ONE-NEXT: [004] {Code} 'local.set 11' 55 ; ONE-NEXT: [004] {Code} 'local.get 5' 56 ; ONE-NEXT: [004] {Code} 'local.get 11' 57 ; ONE-NEXT: [004] {Code} 'i32.store 28' [all …]
|
H A D | 02-wasm-logical-lines.test | 16 ; allowing to compare the code generated by the different toolchains. 33 ; ONE-NEXT: [003] {Code} 'nop' 34 ; ONE-NEXT: [003] {Code} 'rethrow 127' 35 ; ONE-NEXT: [003] {Code} 'global.get 0' 36 ; ONE-NEXT: [003] {Code} 'local.set 0' 37 ; ONE-NEXT: [003] {Code} 'i32.const 16' 38 ; ONE-NEXT: [003] {Code} 'local.set 1' 39 ; ONE-NEXT: [003] {Code} 'local.get 0' 40 ; ONE-NEXT: [003] {Code} 'local.get 1' 41 ; ONE-NEXT: [003] {Code} 'i32.sub' [all …]
|
H A D | 06-wasm-full-logical-view.test | 54 ; ONE-NEXT: [0x000000004c][004] {Code} 'i32.const 7' 55 ; ONE-NEXT: [0x000000004e][004] {Code} 'local.set 10' 56 ; ONE-NEXT: [0x0000000050][004] {Code} 'local.get 5' 57 ; ONE-NEXT: [0x0000000052][004] {Code} 'local.get 10' 58 ; ONE-NEXT: [0x0000000054][004] {Code} 'i32.store 12' 60 ; ONE-NEXT: [0x0000000057][004] {Code} 'i32.const 7' 61 ; ONE-NEXT: [0x0000000059][004] {Code} 'local.set 11' 62 ; ONE-NEXT: [0x000000005b][004] {Code} 'local.get 5' 63 ; ONE-NEXT: [0x000000005d][004] {Code} 'local.get 11' 64 ; ONE-NEXT: [0x000000005f][004] {Code} 'i32.store 28' [all …]
|
/llvm-project/clang/include/clang/AST/ |
H A D | StmtDataCollectors.td | 2 code Code = [{ 4 // This ensures that non-macro-generated code isn't identical to 5 // macro-generated code. 12 code Code = [{ 19 code Code = [{ 24 code Code [all...] |
/llvm-project/llvm/include/llvm/Option/ |
H A D | OptParser.td | 112 code ValuesCode = ?; 118 code MacroPrefix = ""; 119 code KeyPath = ?; 120 code DefaultValue = ?; 121 code ImpliedValue = ?; 122 code ImpliedCheck = "false"; 123 code ShouldParse = "true"; 125 code NormalizerRetTy = ?; 126 code NormalizedValuesScope = ""; 127 code Normalizer = ""; [all …]
|
/llvm-project/llvm/test/MC/Mips/ |
H A D | module-directive-bad.s | 6 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 10 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 14 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 18 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 22 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 26 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 30 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 34 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 38 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 42 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code [all …]
|
/llvm-project/polly/lib/External/isl/imath/tests/gmp-compat-test/ |
H A D | genctest.py | 73 code = "\t" 75 code += self.api_call_prefix(ty) + "init(" + var + ");\n\t" 76 code += ( 83 code += ";\n\t" 84 code += self.api_call_prefix(ty) + "canonicalize(" + var + ")" 86 code += var + "=" + param 87 return code 90 code = "" 93 code += "\t" 94 code += self.test_var_type(p) + " " [all …]
|
/llvm-project/clang/unittests/Format/ |
H A D | CleanupTest.cpp | 1 //===- unittest/Format/CleanupTest.cpp - Code cleanup unit tests ----------===// 25 std::string cleanup(StringRef Code, const std::vector<tooling::Range> &Ranges, in cleanup() argument 27 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup() 29 auto Result = applyAllReplacements(Code, Replaces); in cleanup() 34 // Returns code after cleanup around \p Offsets. 35 std::string cleanupAroundOffsets(ArrayRef<unsigned> Offsets, StringRef Code, in cleanupAroundOffsets() argument 40 return cleanup(Code, Ranges, Style); in cleanupAroundOffsets() 45 std::string Code = "namespace A {\n" in TEST_F() local 56 EXPECT_EQ(Expected, cleanupAroundOffsets({28, 91, 132}, Code)); in TEST_F() 60 std::string Code = "namespace A {\n" in TEST_F() local [all …]
|
H A D | FormatTestBase.h | 34 virtual std::string messUp(StringRef Code) const { in messUp() argument 35 return test::messUp(Code); in messUp() 38 std::string format(StringRef Code, 43 LLVM_DEBUG(llvm::errs() << Code << "\n\n"); 47 : std::vector<tooling::Range>{1, tooling::Range(0, Code.size())}; 51 reformat(UsedStyle, Code, NonEmptyRanges, "<stdin>", &Status); 55 << Code << "\n\n"; 58 auto Result = applyAllReplacements(Code, Replaces); 84 StringRef Code, 87 testing::ScopedTrace t(File, Line, testing::Message() << Code 157 verifyGoogleFormat(Code) global() argument [all...] |
/llvm-project/clang/unittests/Tooling/ |
H A D | HeaderIncludesTest.cpp | 23 std::string insert(llvm::StringRef Code, llvm::StringRef Header, in insert() argument 25 HeaderIncludes Includes(FileName, Code, Style); in insert() 30 return std::string(Code); in insert() 31 auto Result = applyAllReplacements(Code, Replacements(*R)); in insert() 36 std::string remove(llvm::StringRef Code, llvm::StringRef Header) { in remove() argument 37 HeaderIncludes Includes(FileName, Code, Style); in remove() 41 auto Result = applyAllReplacements(Code, Replaces); in remove() 51 std::string Code = "int main() {}"; in TEST_F() local 54 EXPECT_EQ(Expected, insert(Code, "\"a.h\"")); in TEST_F() 58 std::string Code; in TEST_F() local [all …]
|
H A D | RangeSelectorTest.cpp | 42 template <typename M> TestMatch matchCode(StringRef Code, M Matcher) { in matchCode() argument 43 auto ASTUnit = tooling::buildASTFromCode(Code); in matchCode() 83 // Applies \p Selector to code containing assorted node types, where the match 88 StringRef Code = R"cc( in selectFromAssorted() local 108 return Selector(matchCode(Code, Matcher).Result); in selectFromAssorted() 131 StringRef Code = R"cc( in TEST() local 139 TestMatch Match = matchCode(Code, M); in TEST() 150 StringRef Code = R"cc( in TEST() local 159 TestMatch Match = matchCode(Code, M); in TEST() 170 StringRef Code = R"cc( in TEST() local [all …]
|
/llvm-project/llvm/docs/ |
H A D | BitCodeFormat.rst | 231 Data records consist of a record code and a number of (up to) 64-bit integer 232 values. The interpretation of the code and values is application specific and 235 there is a record which encodes the target triple of a module. The code is 245 [UNABBREV_RECORD, code\ :sub:`vbr6`, numops\ :sub:`vbr6`, op0\ :sub:`vbr6`, op1\ :sub:`vbr6`, ...] 250 record by emitting the code and operands as VBRs. 254 ``MODULE_CODE_TRIPLE`` code, a vbr6 for the length of the string, which is equal 274 The record code, which is the first field of an abbreviated record, may be 327 are just emitted as their code. 331 have extra data are emitted as their code, followed by the extra data. 335 * Fixed (code [all...] |
/llvm-project/llvm/test/Analysis/CostModel/AArch64/ |
H A D | vector-select.ll | 3 ; RUN: llc < %s -mtriple=aarch64--linux-gnu -mattr=+fullfp16 | FileCheck %s --check-prefix=CODE 11 ; CODE-LABEL: v8i8_select_eq 12 ; CODE: bb.0 13 ; CODE-NEXT: cmeq v{{.+}}.8b, v{{.+}}.8b, v{{.+}}.8b 14 ; CODE-NEXT: bif v{{.+}}.8b, v{{.+}}.8b, v{{.+}}.8b 15 ; CODE-NEXT: ret 27 ; CODE-LABEL: v16i8_select_sgt 28 ; CODE: bb.0 29 ; CODE-NEXT: cmgt v{{.+}}.16b, v{{.+}}.16b, v{{.+}}.16b 30 ; CODE-NEXT: bif v{{.+}}.16b, v{{.+}}.16b, v{{.+}}.16b [all …]
|
H A D | free-widening-casts.ll | 2 ; RUN: llc < %s -mtriple=aarch64--linux-gnu | FileCheck %s --check-prefix=CODE 9 ; CODE-LABEL: uaddl_8h 10 ; CODE: uaddl v0.8h, v0.8b, v1.8b 21 ; CODE-LABEL: uaddl_4s 22 ; CODE: uaddl v0.4s, v0.4h, v1.4h 33 ; CODE-LABEL: uaddl_2d 34 ; CODE: uaddl v0.2d, v0.2s, v1.2s 45 ; CODE-LABEL: uaddl2_8h 46 ; CODE: uaddl2 v2.8h, v0.16b, v1.16b 47 ; CODE-NEXT: uaddl v0.8h, v0.8b, v1.8b [all …]
|
/llvm-project/offload/test/ompt/ |
H A D | veccopy_emi.c | 58 /// CHECK-NOT: code=(nil) 59 /// CHECK: code=[[CODE1:.*]] 61 /// CHECK: code=[[CODE1]] 64 /// CHECK: code=[[CODE1]] 66 /// CHECK: code=[[CODE1]] 68 /// CHECK: code=[[CODE1]] 70 /// CHECK: code=[[CODE1]] 73 /// CHECK: code=[[CODE1]] 75 /// CHECK: code=[[CODE1]] 77 /// CHECK: code=[[CODE1]] [all …]
|
H A D | veccopy_data.c | 82 /// CHECK-NOT: code=(nil) 83 /// CHECK: code=[[CODE1:.*]] 85 /// CHECK: code=[[CODE1]] 88 /// CHECK: code=[[CODE1]] 90 /// CHECK: code=[[CODE1]] 92 /// CHECK: code=[[CODE1]] 95 /// CHECK: code=[[CODE1]] 98 /// CHECK-NOT: code=(nil) 99 /// CHECK: code=[[CODE2:.*]] 101 /// CHECK: code=[[CODE2]] [all …]
|
/llvm-project/clang/unittests/Sema/ |
H A D | CodeCompleteTest.cpp | 1 //=== unittests/Sema/CodeCompleteTest.cpp - Code Complete tests ==============// 137 // 1-based code complete position <Line, Col>; 142 ParsedSourceLocation offsetToPosition(llvm::StringRef Code, size_t Offset) { in offsetToPosition() argument 143 Offset = std::min(Code.size(), Offset); in offsetToPosition() 144 StringRef Before = Code.substr(0, Offset); in offsetToPosition() 152 CompletionContext runCompletion(StringRef Code, size_t Offset) { in runCompletion() argument 155 std::make_unique<CodeCompleteAction>(offsetToPosition(Code, Offset), in runCompletion() 157 Code, {"-std=c++11"}, TestCCName); in runCompletion() 163 return runCompletion(A.code(), A.point()); in runCodeCompleteOnCode() 172 auto Results = runCompletion(A.code(), Point); in collectPreferredTypes() [all …]
|
/llvm-project/lldb/docs/use/ |
H A D | map.rst | 24 .. code-block:: shell 29 .. code-block:: shell 38 .. code-block:: shell 44 .. code-block:: shell 53 .. code-block:: shell 61 .. code-block:: shell 73 .. code-block:: shell 81 .. code-block:: shell 92 .. code-block:: shell 100 .. code [all...] |
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | InsertionPointTests.cpp | 26 Annotations Code(R"cpp( in TEST() local 46 auto AST = TestTU::withCode(Code.code()).build(); in TEST() 54 EXPECT_EQ(Point("a", Anchor::Above), Code.point("a")); in TEST() 55 EXPECT_EQ(Point("a", Anchor::Below), Code.point("b")); in TEST() 56 EXPECT_EQ(Point("b", Anchor::Above), Code.point("b")); in TEST() 57 EXPECT_EQ(Point("b", Anchor::Below), Code.point("c")); in TEST() 58 EXPECT_EQ(Point("c", Anchor::Above), Code.point("c")); in TEST() 59 EXPECT_EQ(Point("c", Anchor::Below), Code.point("a2")); in TEST() 60 EXPECT_EQ(Point("", Anchor::Above), Code.point("a")); in TEST() 61 EXPECT_EQ(Point("", Anchor::Below), Code.point("end")); in TEST() [all …]
|
H A D | PreambleTests.cpp | 74 TU.Code = ModifiedContents.str(); in collectPatchedIncludes() 144 const auto Code = Test.code(); in TEST() local 145 SCOPED_TRACE(Code); in TEST() 148 collectPatchedIncludes(Code, /*BaselineContents=*/"").MainFileIncludes; in TEST() 200 TU.Code = R"cpp( in TEST() 233 TU.Code = Modified.str(); in TEST() 323 EXPECT_THAT(getPreamblePatch("", Modified.code()), in TEST() 326 auto AST = createPatchedAST("", Modified.code()); in TEST() 353 EXPECT_THAT(getPreamblePatch(Baseline, Modified.code()), in TEST() 356 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST() [all …]
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | arm64-opt-remarks-lazy-bfi.ll | 22 ; HOTNESS: Executing Pass 'Spill Code Placement Analysis' 35 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 36 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 39 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 40 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 43 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 44 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 47 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' on Function 'empty_func'... 48 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code' on Function 'empty_func'... 51 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code' [all …]
|
/llvm-project/llvm/docs/CommandGuide/ |
H A D | llvm-debuginfo-analyzer.rst | 18 of the original user source code. Supported object file formats include 27 same original source code. 128 .. code-block:: text 139 .. code-block:: text 148 user source code, where the elements are declared or defined; functions 150 elements to their user code location, for cross references purposes. 152 .. code-block:: text 166 .. code-block:: text 180 gaps within the location layout; ranges determining the code sections 184 .. code [all...] |
/llvm-project/clang/test/CodeCompletion/ |
H A D | desig-init.cpp | 12 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-1):10 %s … in foo() 13 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-2):18 %s … in foo() 19 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-8):20 %s … in foo() 27 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-5):14 %s … in foo() 28 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-4):7 %s -… in foo() 29 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-4):11 %s … in foo() 30 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-4):13 %s … in foo() 34 …// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:%(line-1):8 %s -… in foo() 40 …// RUN: %clang_cc1 -code-completion-at=%s:%(line-3):17 -fsyntax-only -code-completion-patterns %s … in foo() 41 …// RUN: %clang_cc1 -code-completion-at=%s:%(line-3):14 -fsyntax-only -code-completion-patterns %s … in foo() [all …]
|
/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | IntegerDivision.h | 25 /// Generate code to calculate the remainder of two integers, replacing Rem 26 /// with the generated code. This currently generates code using the udiv 27 /// expansion, but future work includes generating more specialized code, 31 /// Replace Rem with generated code. 34 /// Generate code to divide two integers, replacing Div with the generated 35 /// code. This currently generates code similarly to compiler-rt's 36 /// implementations, but future work includes generating more specialized code 40 /// Replace Div with generated code. 43 /// Generate code to calculate the remainder of two integers, replacing Rem 44 /// with the generated code. Uses ExpandReminder with a 32bit Rem which [all …]
|