Home
last modified time | relevance | path

Searched refs:code (Results 26 – 50 of 3813) sorted by relevance

12345678910>>...153

/llvm-project-15.0.7/clang/test/Driver/
H A Dhip-code-object-version.hip3 // Check bundle ID for code object v2.
6 // RUN: -mno-code-object-v3 \
16 // V2: "-mllvm" "--amdhsa-code-object-version=2"
19 // Check bundle ID for code object v3.
38 // V3: "-mllvm" "--amdhsa-code-object-version=3"
41 // Check bundle ID for code object version 4.
49 // V4: "-mllvm" "--amdhsa-code-object-version=4"
52 // Check bundle ID for code object version 5.
60 // V5: "-mllvm" "--amdhsa-code-object-version=5"
71 // Check invalid code object version option.
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dargument-comment.rst11 .. code-block:: c++
42 .. code-block:: c++
50 .. code-block:: c++
63 .. code-block:: c++
71 .. code-block:: c++
84 .. code-block:: c++
92 .. code-block:: c++
105 .. code-block:: c++
115 .. code-block:: c++
130 .. code-block:: c++
[all …]
H A Dsuspicious-semicolon.rst7 the code. More specifically, it looks for ``if``, ``while``, ``for`` and
9 context of the code (e.g. indentation) in an attempt to determine whether that
12 .. code-block:: c++
23 .. code-block:: c++
28 As a result of this code, `processLine()` will only be called once, when the
30 the code indicates the intention of the programmer.
33 .. code-block:: c++
40 a loop). So this check issues a warning for the code above.
46 .. code-block:: c++
57 .. code-block:: c++
[all …]
/llvm-project-15.0.7/llvm/test/MachineVerifier/
H A Dtest_g_constant.mir13 ; CHECK: Bad machine code: Instruction cannot use a vector result type
14 ; CHECK: Bad machine code: inconsistent constant size
17 ; CHECK: Bad machine code: Too few operands
21 ; CHECK: Bad machine code: G_CONSTANT operand must be cimm
25 ; CHECK: Bad machine code: G_CONSTANT operand must be cimm
29 ; CHECK: Bad machine code: inconsistent constant size
33 ; CHECK: Bad machine code: inconsistent constant size
36 ; CHECK: Bad machine code: inconsistent constant size
39 ; CHECK: Bad machine code: inconsistent constant size
H A Dtest_g_inttoptr.mir19 ; CHECK: Bad machine code: Too few operands
22 ; CHECK: Bad machine code: Too few operands
23 ; CHECK: Bad machine code: Explicit definition marked as use
26 ; CHECK: Bad machine code: inttoptr result type must be a pointer
29 ; CHECK: Bad machine code: inttoptr result type must be a pointer
32 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar
35 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar
38 ; CHECK: Bad machine code: operand types must preserve number of vector elements
41 ; CHECK: Bad machine code: operand types must preserve number of vector elements
H A Dtest_g_build_vector.mir11 ; CHECK: Bad machine code: G_BUILD_VECTOR must produce a vector from scalar operands
16 ; CHECK: Bad machine code: G_BUILD_VECTOR must produce a vector from scalar operands
19 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
22 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
23 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
28 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
29 ; CHECK: Bad machine code: G_BUILD_VECTOR must have an operand for each elemement
34 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
39 ; CHECK: Bad machine code: G_BUILD_VECTOR result element type must match source type
H A Dtest_g_ptrtoint.mir19 ; CHECK: Bad machine code: Too few operands
22 ; CHECK: Bad machine code: Too few operands
23 ; CHECK: Bad machine code: Explicit definition marked as use
26 ; CHECK: Bad machine code: ptrtoint result type must not be a pointer
29 ; CHECK: Bad machine code: ptrtoint result type must not be a pointer
32 ; CHECK: Bad machine code: ptrtoint source type must be a pointer
35 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar
38 ; CHECK: Bad machine code: operand types must preserve number of vector elements
41 ; CHECK: Bad machine code: operand types must preserve number of vector elements
H A Dtest_g_add.mir17 ; CHECK: Bad machine code: Too few operands
20 ; CHECK: Bad machine code: Too few operands
24 ; CHECK: Bad machine code: Too few operands
25 ; CHECK: Bad machine code: Explicit definition marked as use
28 ; CHECK: Bad machine code: generic instruction must use register operands
33 ; CHECK: Bad machine code: Type mismatch in generic instruction
34 ; CHECK: Bad machine code: Generic virtual register does not allow subregister index
/llvm-project-15.0.7/clang/test/Index/
H A Dcomplete-natural.m11 // RUN: c-index-test -code-completion-at=%s:4:32 %s > %t
17 // RUN: c-index-test -code-completion-at=%s:5:18 %s > %t
20 // RUN: c-index-test -code-completion-at=%s:6:7 %s > %t
23 // RUN: c-index-test -code-completion-at=%s:7:7 %s > %t
26 // RUN: c-index-test -code-completion-at=%s:8:10 %s > %t
29 // RUN: c-index-test -code-completion-at=%s:9:9 %s > %t
32 // RUN: c-index-test -code-completion-at=%s:10:19 %s > %t
37 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%…
40 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%…
43 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%…
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Ddwarfdump-str-offsets.s99 .byte 0x01 # Abbrev code
112 .byte 0x02 # Abbrev code
121 .byte 0x03 # Abbrev code
128 .byte 0x04 # Abbrev code
135 .byte 0x05 # Abbrev code
144 .byte 0x06 # Abbrev code
153 .byte 0x07 # Abbrev code
162 .byte 0x08 # Abbrev code
169 .byte 0x09 # Abbrev code
178 .byte 0x01 # Abbrev code
[all …]
/llvm-project-15.0.7/libcxx/test/std/re/re.grammar/
H A Dexcessive_brace_min_max.pass.cpp28 assert(e.code() == std::regex_constants::error_badbrace); in main()
29 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
39 assert(e.code() == std::regex_constants::error_badbrace); in main()
40 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
51 assert(e.code() == std::regex_constants::error_badbrace); in main()
52 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
62 assert(e.code() == std::regex_constants::error_badbrace); in main()
63 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
/llvm-project-15.0.7/lldb/source/Interpreter/
H A Dembedded_interpreter.py6 import code
86 code.interact(
96 code.interact(
102 code.interact(
109 if e.code:
110 print('Script exited with code %s' % e.code)
117 repl = code.InteractiveConsole(local_dict)
129 if e.code:
130 print('Script exited with code %s' % e.code)
/llvm-project-15.0.7/clang/docs/
H A DClangFormatStyleOptions.rst41 .. code-block:: yaml
64 .. code-block:: yaml
92 .. code-block:: console
99 .. code-block:: console
113 .. code-block:: c++
278 .. code-block:: c++
298 .. code-block:: c++
401 .. code-block:: c++
421 .. code-block:: c++
524 .. code-block:: c++
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_lzw.h109 auto copy = [&code_to_substr, &dict_len1](LzwCodeType code, ItOut out) { in LzwDecode()
110 if (code < dict_len1.size()) { in LzwDecode()
111 *out = dict_len1[code]; in LzwDecode()
115 const auto& s = code_to_substr[code - dict_len1.size()]; in LzwDecode()
122 auto code_to_len = [&code_to_substr, &dict_len1](LzwCodeType code) -> uptr { in LzwDecode()
123 if (code < dict_len1.size()) in LzwDecode()
125 const auto& s = code_to_substr[code - dict_len1.size()]; in LzwDecode()
134 LzwCodeType code = *it; in LzwDecode() local
136 if (code == dict_len1.size() + code_to_substr.size()) { in LzwDecode()
145 out = copy(code, out); in LzwDecode()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Ddirective-amdgcn-target.ll1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=gfx600 < %s | FileCheck …
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=tahiti < %s | FileCheck …
3 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=gfx601 < %s | FileCheck …
4 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=pitcairn < %s | FileChec…
5 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=verde < %s | FileCheck -…
6 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=gfx602 < %s | FileCheck …
7 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=hainan < %s | FileCheck …
8 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=oland < %s | FileCheck -…
9 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=gfx700 < %s | FileCheck …
10 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=3 -mcpu=kaveri < %s | FileCheck …
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/
H A Dverify-liveness-at-def.mir38 # CHECK-SUB-NOT: Bad machine code
40 # CHECK-SUB: Bad machine code: Live range continues after dead def flag
45 # CHECK-SUB-NOT: Bad machine code
47 # CHECK-SUB: Bad machine code: Live range continues after dead def flag
52 # CHECK-SUB-NOT: Bad machine code
54 # CHECK-SUB: Bad machine code: Live range continues after dead def flag
59 # CHECK-SUB: Bad machine code: Live range continues after dead def flag
63 # CHECK-SUB-NOT: Bad machine code
68 # CHECK-NOSUB-NOT: Bad machine code
70 # CHECK-NOSUB: Bad machine code: Live range continues after dead def flag
[all …]
/llvm-project-15.0.7/llvm/docs/
H A DFAQ.rst49 .. code-block:: llvm
186 the code through the LLVM optimizers, so if your code doesn't actually do
201 .. code-block:: c
214 example, this code:
216 .. code-block:: llvm
228 .. code-block:: llvm
249 .. code-block:: llvm
275 .. code-block:: llvm
299 .. code-block:: llvm
318 code to be well-defined, but no amount of dead code elimination will be able
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DDiagnosticsTests.cpp271 TU.Code = std::string(Test.code()); in TEST()
370 TU.HeaderCode = Header.code().str(); in TEST()
674 TU.Code = std::string(Source.code()); in TEST()
996 MainLSP.code = "undeclared_var_use"; in TEST()
1356 TU.Code = std::string(Test.code()); in TEST()
1383 TU.Code = std::string(Test.code()); in TEST()
1747 TU.Code = Code.code().str(); in TEST()
1766 TU.Code = Code.code().str(); in TEST()
1783 TU.Code = Test.code().str(); in TEST()
1807 TU.Code = Test.code().str(); in TEST()
[all …]
H A DXRefsTests.cpp129 auto TU = TestTU::withCode(T.code()); in TEST()
266 auto TU = TestTU::withCode(T.code()); in TEST()
1013 TU.Code = std::string(T.code()); in TEST()
1118 TU.Code = std::string(T.code()); in TEST()
1169 TU.Code = std::string(T.code()); in TEST()
1194 auto TU = TestTU::withCode(T.code()); in TEST()
1866 TU.Code = A.code().str(); in TEST()
1881 TU.Code = A.code().str(); in TEST()
2282 TU.Code = std::string(Main.code()); in TEST()
2324 TU.Code = std::string(Main.code()); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dtls-models.ll22 ; Non-PIC code can use initial-exec, PIC code has to use general dynamic.
33 ; Non-PIC code can use local exec, PIC code can use local dynamic.
47 ; Non-PIC code can use initial exec, PIC should use local dynamic.
58 ; Non-PIC code can use local exec, PIC code can use local dynamic.
72 ; Non-PIC and PIC code will use initial exec as specified.
83 ; Non-PIC code can use local exec, PIC code use initial exec as specified.
97 ; Non-PIC and PIC code will use local exec as specified.
108 ; Non-PIC and PIC code will use local exec as specified.
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Dnan.inc6 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE nan(__CLC_XCONCAT(ulong, __CLC_VECSIZE) code)
8 return __CLC_AS_GENTYPE(code | 0x7ff0000000000000ul);
11 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE nan(__CLC_XCONCAT(uint, __CLC_VECSIZE) code)
13 return __CLC_AS_GENTYPE(code | 0x7fc00000);
16 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE nan(__CLC_XCONCAT(ushort, __CLC_VECSIZE) code)
19 const __CLC_XCONCAT(ushort, __CLC_VECSIZE) res = code | mask;
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/
H A DMCJITMemoryManagerTest.cpp85 uint8_t* code[10000]; in TEST() local
91 code[i] = MemMgr->allocateCodeSection(32, 0, 1, ""); in TEST()
95 code[i][j] = 1 + (i % 254); in TEST()
99 EXPECT_NE((uint8_t *)nullptr, code[i]); in TEST()
108 EXPECT_EQ(ExpectedCode, code[i][j]); in TEST()
120 uint8_t* code[10000]; in TEST() local
130 code[i] = MemMgr->allocateCodeSection(CodeSize, Align, i, ""); in TEST()
135 code[i][j] = 1 + (i % 254); in TEST()
142 EXPECT_NE((uint8_t *)nullptr, code[i]); in TEST()
145 uintptr_t CodeAlign = Align ? (uintptr_t)code[i] % Align : 0; in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A Dregerror.c55 int code; member
95 for (r = rerrs; r->code != 0; r++) in llvm_regerror()
96 if (r->code == target) in llvm_regerror()
100 if (r->code != 0) { in llvm_regerror()
127 for (r = rerrs; r->code != 0; r++) in regatoi()
130 if (r->code == 0) in regatoi()
133 (void)snprintf(localbuf, localbufsize, "%d", r->code); in regatoi()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dtiny_supported.ll1 ; RUN: llc -verify-machineinstrs -o - -mtriple=aarch64-none-linux-gnu -code-model=tiny < %s 2>&1 | …
2 ; RUN: llc -verify-machineinstrs -o - -mtriple=aarch64-none-eabi -code-model=tiny < %s 2>&1 | FileC…
3 ; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=arm64-apple-darwin -code-model=tiny < %s…
4 ; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=arm64-apple-ios -code-model=tiny < %s 2>…
5 ; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=aarch64-unknown-windows-msvc -code-model…
7 ; CHECK-NOT: tiny code model is only supported on ELF
9 ; NOTINY: tiny code model is only supported on ELF
/llvm-project-15.0.7/bolt/docs/
H A DRuntimeLibrary.md3 A high-level view on the simple linker used to insert auxiliary/library code into the final binary …
5 ## Several levels of code injection
7 …code in this binary. Throughout BOLT's pipeline of code transformations, there are plenty of situa…
9 …code changes inside a basic block, we typically defer this work to MCPlusBuilder. This is our targ…
11 … of code, especially if this code is frozen and never changes. In these situations, it is more con…
15 Currently, our runtime library is written in C++ and contains code that helps us instrument a binar…
18 Our library is not written with regular C++ code as it is not linked against any other libraries (t…
20 …s is a big improvement in comparison with programmatically generating the code in assembly languag…
25 * No dependencies on foreign code: self sufficient

12345678910>>...153