/llvm-project/lldb/test/API/tools/lldb-dap/launch/ |
H A D | TestDAP_launch.py | 25 output = self.get_stdout() 26 self.assertTrue(output and len(output) > 0, "expect program output") 27 lines = output.splitlines() 77 output = self.get_stdout() 78 self.assertTrue(output and len(output) > 0, "expect program output") 79 lines = output [all...] |
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | dn_expand.cpp | 14 char output[1024]; in testWrite() local 16 int res = dn_expand(input, input + sizeof(input), input + 23, output, in testWrite() 17 sizeof(output)); in testWrite() 20 assert(strcmp(output, "google\\.com") == 0); in testWrite() 21 check_mem_is_good(output, strlen(output) + 1); in testWrite() 29 char output[1024]; in testWriteZeroLength() local 31 int res = dn_expand(input, input + sizeof(input), input + 23, output, in testWriteZeroLength() 32 sizeof(output)); in testWriteZeroLength() 35 assert(strcmp(output, "") == 0); in testWriteZeroLength() 36 check_mem_is_good(output, strlen(output) + 1); in testWriteZeroLength() [all …]
|
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/ |
H A D | relative.pass.cpp | 33 const fs::path output = fs::weakly_canonical(p); in test_signature_0() local 34 assert(output == fs::path::string_type(fs::current_path())); in test_signature_0() 39 const fs::path output = fs::weakly_canonical(p); in test_signature_1() local 40 assert(output == fs::path::string_type(fs::current_path())); in test_signature_1() 46 const fs::path output = fs::weakly_canonical(p); in test_signature_2() local 47 assert(output == fs::path::string_type(static_env.File)); in test_signature_2() 53 const fs::path output = fs::weakly_canonical(p); in test_signature_3() local 54 assert(output == fs::path::string_type(static_env.Dir)); in test_signature_3() 60 const fs::path output = fs::weakly_canonical(p); in test_signature_4() local 61 assert(output == fs::path::string_type(static_env.Dir)); in test_signature_4() [all …]
|
/llvm-project/lldb/test/API/python_api/sbstructureddata/ |
H A D | TestStructuredDataAPI.py | 53 self.fail("FAILED: could not find key_float in description output") 180 output = string_struct.GetStringValue(25) 181 if not "STRING" in output: 182 self.fail("wrong output: " + output) 186 output = string_struct.GetIntegerValue() 187 if output: 189 "Valid integer value " + str(output) + " returned for a string object" 206 output = uint_struct.GetUnsignedIntegerValue() 207 if not output [all...] |
/llvm-project/clang/test/CodeGenOpenCL/ |
H A D | kernels-have-spir-cc-by-default.cl | 27 kernel void test_single(int_single input, global int* output) { 31 // CHECK: ptr noundef writeonly align 4 captures(none) initializes((0, 4)) %output 32 output[0] = input.a; 35 kernel void test_pair(int_pair input, global int* output) { 39 // CHECK: ptr noundef writeonly align 4 captures(none) initializes((0, 8)) %output 40 output[0] = (int)input.a; 41 output[1] = (int)input.b; 44 kernel void test_kernel(test_struct input, global int* output) { 48 // CHECK: ptr noundef writeonly align 4 captures(none) initializes((0, 32)) %output 49 output[ [all...] |
/llvm-project/llvm/test/tools/llvm-reduce/ |
H A D | file-output-type.test | 4 # RUN: llvm-as -o test-output-format.bc %p/Inputs/test-output-format.ll 6 # A .ll input file should default to text output in reduced.ll 7 …instructions --test FileCheck --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.ll 8 # RUN: llvm-as -disable-output reduced.ll 11 # A .bc input file should default to bitcode output, in reduced.bc (with bitcode intermediates) 13 …m-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc 14 # RUN: llvm-dis -disable-output reduced.bc 17 # A .bc input file with a requested .bc output should produce bitcode 18 …m-dis-and-filecheck.py --test-arg llvm-dis --test-arg FileCheck --test-arg %s test-output-format.bc 19 # RUN: llvm-dis -disable-output %t.0.bc [all …]
|
/llvm-project/llvm/unittests/Frontend/ |
H A D | OpenMPDecompositionTest.cpp | 328 ASSERT_EQ(Dec.output.size(), 2u); in TEST_F() 330 std::string Dir0 = stringify(Dec.output[0]); in TEST_F() 331 std::string Dir1 = stringify(Dec.output[1]); in TEST_F() 345 ASSERT_EQ(Dec.output.size(), 2u); in TEST_F() 347 std::string Dir0 = stringify(Dec.output[0]); in TEST_F() 348 std::string Dir1 = stringify(Dec.output[1]); in TEST_F() 392 ASSERT_EQ(Dec.output.size(), 2u); in TEST_F() 394 std::string Dir0 = stringify(Dec.output[0]); in TEST_F() 395 std::string Dir1 = stringify(Dec.output[1]); in TEST_F() 409 ASSERT_EQ(Dec.output in TEST_F() [all...] |
/llvm-project/clang/utils/ABITest/ |
H A D | ABITestGen.py | 18 output, argument 25 self.output = output 38 self.output, 47 print("#include <stdio.h>\n", file=self.output) 54 for f in (self.output, self.outputTests, self.outputDriver): 67 print("int main(int argc, char **argv) {", file=self.output) 68 print(" int index = -1;", file=self.output) 69 print(" if (argc > 1) index = atoi(argv[1]);", file=self.output) 71 print(" if (index == -1 || index == %d)" % i, file=self.output) 72 print(" %s();" % f, file=self.output) [all …]
|
/llvm-project/offload/utils/ |
H A D | generate_microtask_cases.py | 17 output = "" 19 output += "case %d:\n" % (i) 20 output += "((void (*)(kmp_int32 *, kmp_int32 *\n" 22 output += ", void *" 24 output += "\n" 25 output += "))fn)(&global_tid, &bound_tid\n" 27 output += ", args[%d]" % (j) 29 output += "\n" 30 output += ");\n" 31 output += "break;\n" [all …]
|
/llvm-project/lldb/test/API/tools/lldb-server/ |
H A D | TestGdbRemoteForkNonStop.py | 151 output = self._server.get_raw_output_packet() 152 while not output_test(output): 154 output += self._server.get_raw_output_packet() 155 return output 188 output = self.get_all_output_via_vStdio( 189 lambda output: output.count(b"PID: ") >= 2 191 self.assertEqual(output.count(b"PID: "), 2) 192 self.assertIn("PID: {}".format(int(parent_pid, 16)).encode(), output) 193 self.assertIn("PID: {}".format(int(child_pid, 16)).encode(), output) 222 output = self.get_all_output_via_vStdio( [all …]
|
/llvm-project/offload/test/offloading/ |
H A D | schedule.c | 21 double *output = (double *)malloc(size * sizeof(double)); in ordered_example() local 23 #pragma omp target teams map(from : output[0 : size]) num_teams(nteams) \ in ordered_example() 28 { output[(i - lb) / stride] = omp_get_wtime(); } in ordered_example() 34 if (output[j] > output[jj]) { in ordered_example() 36 free(output); in ordered_example() 42 free(output); in ordered_example() 52 double *output = (double *)malloc(size * sizeof(double)); in NO_order_example() local 54 #pragma omp target teams map(from : output[0 : size]) num_teams(nteams) \ in NO_order_example() 58 output[( in NO_order_example() [all...] |
/llvm-project/clang/test/Driver/ |
H A D | hip-binding.hip | 7 // NRDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[OBJ1:.*… 8 // NRDCS: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ1]]"], output: "[[IMG1:.*]]" 9 // NRDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[OBJ2:.*… 10 // NRDCS: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ2]]"], output: "[[IMG2:.*]]" 11 // NRDCS: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[IMG1]]", "[[IMG2]]"], output: "[[FA… 12 // NRDCS: # "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[IN]]", "[[FATBIN]]"], output: "{{.*}}" 17 // RDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[BC1:.*bc… 18 // RDCS: # "amdgcn-amd-amdhsa" - "clang", inputs: ["[[IN:.*hip-binding.hip]]"], output: "[[BC2:.*bc… 19 // RDCS: # "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[IN]]"], output: "[[HOSTOBJ:.*o]]" 20 …own-linux-gnu" - "offload bundler", inputs: ["[[BC1]]", "[[BC2]]", "[[HOSTOBJ]]"], output: "{{.*}}" [all …]
|
H A D | module-output.cppm | 5 // On AIX, the default output for `-c` may be `.s` instead of `.o`, 14 // output and the name of the .pcm file should be the same with the input file. 15 // RUN: %clang -std=c++20 %t/Hello.cppm -fmodule-output -c -o %t/output/Hello.o \ 18 // Tests that the output file will be generated in the input directory if the output 20 // RUN: %clang -std=c++20 %t/Hello.cppm %t/AnotherModule.cppm -fmodule-output -o \ 21 // RUN: %t/output/a.out -### 2>&1 | FileCheck %t/AnotherModule.cppm 23 // Tests that clang will reject the command line if it specifies -fmodule-output with 25 // RUN: not %clang %t/Hello.cppm -fmodule-output [all...] |
/llvm-project/llvm/test/Bitcode/ |
H A D | invalid.test | 2 RUN: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 | \ 4 RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \ 6 RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \ 8 RUN: not llvm-dis -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \ 10 RUN: not llvm-dis -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \ 12 RUN: not llvm-dis -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \ 14 RUN: not llvm-dis -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \ 16 RUN: not llvm-dis -disable-output %p/Inputs/invalid-align.bc 2>&1 | \ 18 RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \ 20 RUN: not llvm-dis -disable-output [all...] |
/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stacktrace_libcdep.cpp | 26 InternalScopedString *output, in StackTraceTextPrinter() argument 30 output_(output), in StackTraceTextPrinter() 94 void StackTrace::PrintTo(InternalScopedString *output) const { in PrintTo() 95 CHECK(output); in PrintTo() 99 output, &dedup_token); in PrintTo() 102 output->Append(" <empty stack>\n\n"); in PrintTo() 114 output->Append("\n"); in PrintTo() 118 output->AppendF("DEDUP_TOKEN: %s\n", dedup_token.data()); in PrintTo() 124 InternalScopedString output; in PrintTo() local 125 PrintTo(&output); in PrintTo() [all …]
|
/llvm-project/llvm/lib/Demangle/ |
H A D | MicrosoftDemangleNodes.cpp | 122 this->output(OB, Flags); in toString() 158 void NodeArrayNode::output(OutputBuffer &OB, OutputFlags Flags) const { in output() 159 output(OB, Flags, ", "); 162 void NodeArrayNode::output(OutputBuffer &OB, OutputFlags Flags, in output() 167 Nodes[0]->output(OB, Flags); in output() 170 Nodes[I]->output(OB, Flags); in output() 174 void EncodedStringLiteralNode::output(OutputBuffer &OB, in output() 195 void IntegerLiteralNode::output(OutputBuffer &OB, OutputFlags Flags) const { in output() 201 void TemplateParameterReferenceNode::output(OutputBuffer &OB, in output() 209 Symbol->output(O in output() 156 void NodeArrayNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in NodeArrayNode 160 void NodeArrayNode::output(OutputBuffer &OB, OutputFlags Flags, output() function in NodeArrayNode 172 void EncodedStringLiteralNode::output(OutputBuffer &OB, output() function in EncodedStringLiteralNode 193 void IntegerLiteralNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in IntegerLiteralNode 199 void TemplateParameterReferenceNode::output(OutputBuffer &OB, output() function in TemplateParameterReferenceNode 230 void DynamicStructorIdentifierNode::output(OutputBuffer &OB, output() function in DynamicStructorIdentifierNode 248 void NamedIdentifierNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in NamedIdentifierNode 253 void IntrinsicFunctionIdentifierNode::output(OutputBuffer &OB, output() function in IntrinsicFunctionIdentifierNode 354 void LocalStaticGuardIdentifierNode::output(OutputBuffer &OB, output() function in LocalStaticGuardIdentifierNode 364 void ConversionOperatorIdentifierNode::output(OutputBuffer &OB, output() function in ConversionOperatorIdentifierNode 372 void StructorIdentifierNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in StructorIdentifierNode 379 void LiteralOperatorIdentifierNode::output(OutputBuffer &OB, output() function in LiteralOperatorIdentifierNode 581 void SymbolNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in SymbolNode 585 void FunctionSymbolNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in FunctionSymbolNode 592 void VariableSymbolNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in VariableSymbolNode 628 void QualifiedNameNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in QualifiedNameNode 632 void RttiBaseClassDescriptorNode::output(OutputBuffer &OB, output() function in RttiBaseClassDescriptorNode 640 void LocalStaticGuardVariableNode::output(OutputBuffer &OB, output() function in LocalStaticGuardVariableNode 645 void VcallThunkIdentifierNode::output(OutputBuffer &OB, output() function in VcallThunkIdentifierNode 650 void SpecialTableSymbolNode::output(OutputBuffer &OB, OutputFlags Flags) const { output() function in SpecialTableSymbolNode [all...] |
/llvm-project/libc/src/__support/ |
H A D | str_to_float.h | 192 ExpandedFloat<T> output; 193 output.mantissa = final_mantissa; 194 output.exponent = exp2; 195 return output; 317 ExpandedFloat<long double> output; 318 output.mantissa = static_cast<StorageType>(final_mantissa); 319 output.exponent = exp2; 320 return output; 349 FloatConvertReturn<T> output; 352 output 173 ExpandedFloat<T> output; global() variable 295 ExpandedFloat<long double> output; global() variable 326 FloatConvertReturn<T> output; global() variable 593 ExpandedFloat<T> output; global() variable 654 FloatConvertReturn<T> output; global() variable 731 FloatConvertReturn<T> output; binary_exp_to_float() local [all...] |
/llvm-project/llvm/test/tools/llvm-profdata/ |
H A D | profile-symbol-list.test | 1 …prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output 2 …prof-sym-list=%S/Inputs/profile-symbol-list-2.text %S/Inputs/sample-profile.proftext -o %t.2.output 3 ; RUN: llvm-profdata merge -sample -extbinary %t.1.output %t.2.output -o %t.3.output 4 ; RUN: llvm-profdata show -sample -show-prof-sym-list %t.3.output > %t.4.output 5 ; RUN: diff -b %S/Inputs/profile-symbol-list.expected %t.4.output 6 …profdata merge -sample -extbinary --drop-profile-symbol-list %t.1.output %t.2.output -o %t.5.output 7 ; RUN: llvm-profdata show -sample -show-sec-info-only %t.5.output | FileCheck %s -check-prefix=NOS…
|
/llvm-project/llvm/lib/Support/ |
H A D | YAMLTraits.cpp | 511 output(" "); in mapTag() 513 output(Tag); in mapTag() 534 output("{}"); in endMapping() 575 output("{ "); in beginFlowMapping() 597 output("\n...\n"); in endDocuments() 612 output("[]"); in endSequence() 637 output("[ "); in beginFlowSequence() 649 output(", "); in preflightFlowElement() 651 output("\n"); in preflightFlowElement() 653 output(" "); in preflightFlowElement() 767 void Output::output(StringRef s) { output() function in Output 772 void Output::output(StringRef S, QuotingType MustQuote) { output() function in Output 909 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 921 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, output() function in ScalarTraits 932 void ScalarTraits<std::string>::output(const std::string &Val, void *, output() function in ScalarTraits::string 943 void ScalarTraits<uint8_t>::output(const uint8_t &Val, void *, output() function in ScalarTraits 960 void ScalarTraits<uint16_t>::output(const uint16_t &Val, void *, output() function in ScalarTraits 976 void ScalarTraits<uint32_t>::output(const uint32_t &Val, void *, output() function in ScalarTraits 992 void ScalarTraits<uint64_t>::output(const uint64_t &Val, void *, output() function in ScalarTraits 1006 void ScalarTraits<int8_t>::output(const int8_t &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1022 void ScalarTraits<int16_t>::output(const int16_t &Val, void *, output() function in ScalarTraits 1037 void ScalarTraits<int32_t>::output(const int32_t &Val, void *, output() function in ScalarTraits 1052 void ScalarTraits<int64_t>::output(const int64_t &Val, void *, output() function in ScalarTraits 1065 void ScalarTraits<double>::output(const double &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1075 void ScalarTraits<float>::output(const float &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1085 void ScalarTraits<Hex8>::output(const Hex8 &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1099 void ScalarTraits<Hex16>::output(const Hex16 &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1113 void ScalarTraits<Hex32>::output(const Hex32 &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1127 void ScalarTraits<Hex64>::output(const Hex64 &Val, void *, raw_ostream &Out) { output() function in ScalarTraits 1139 void ScalarTraits<VersionTuple>::output(const VersionTuple &Val, void *, output() function in ScalarTraits [all...] |
/llvm-project/llvm/tools/llvm-ifs/ |
H A D | Opts.td | 17 …t : Eq<"hint-ifs-target", "When --output-format is 'IFS', this flag will hint the expected target … 20 defm output : Eq<"output", "Output file **DEPRECATED**">; 21 def : Separate<["-"], "o">, HelpText<"Alias for --output">, Alias<output_EQ>; 22 defm output_elf : Eq<"output-elf", "Output path for ELF file">; 23 defm output_format : Eq<"output-format", "Specify the output file format **DEPRECATED**">; 24 defm output_ifs : Eq<"output-ifs", "Output path for IFS file">; 25 defm output_tbd : Eq<"output-tbd", "Output path for TBD file">; 27 …trip_ifs_arch : FF<"strip-ifs-arch", "Strip target architecture information away from IFS output">; 28 …ifs_bitwidth : FF<"strip-ifs-bitwidth", "Strip target bit width information away from IFS output">; 29 …ndianness : FF<"strip-ifs-endianness", "Strip target endianness information away from IFS output">; [all …]
|
/llvm-project/lldb/test/API/commands/target/dump-separate-debug-info/dwo/ |
H A D | TestDumpDwo.py | 19 output = json.loads(self.res.GetOutput()) 20 for symfile_entry in output: 49 output = self.get_dwos_from_json_output() 50 self.assertTrue(output[exe]["a.out-main.dwo"]["loaded"]) 51 self.assertTrue(output[exe]["a.out-foo.dwo"]["loaded"]) 68 output = self.get_dwos_from_json_output() 69 self.assertFalse(output[exe]["a.out-main.dwo"]["loaded"]) 70 self.assertIn("error", output[exe]["a.out-main.dwo"]) 71 self.assertTrue(output[exe]["a.out-foo.dwo"]["loaded"]) 72 self.assertNotIn("error", output[exe]["a.out-foo.dwo"]) [all …]
|
/llvm-project/libc/src/__support/time/linux/ |
H A D | clock_conversion.h | 24 timespec output; in convert_clock() 27 output.tv_sec = input.tv_sec - from_time.tv_sec + to_time.tv_sec; in convert_clock() 28 output.tv_nsec = input.tv_nsec - from_time.tv_nsec + to_time.tv_nsec; in convert_clock() 30 if (output.tv_nsec > 1_s_ns) { in convert_clock() 31 output.tv_sec++; in convert_clock() 32 output.tv_nsec -= 1_s_ns; in convert_clock() 33 } else if (output.tv_nsec < 0) { in convert_clock() 34 output.tv_sec--; in convert_clock() 35 output.tv_nsec += 1_s_ns; in convert_clock() 37 return output; in convert_clock() 23 timespec output; convert_clock() local [all...] |
/llvm-project/llvm/docs/CommandGuide/ |
H A D | llvm-as.rst | 16 into a file or to standard output. 21 If an output file is not specified with the **-o** option, then 22 **llvm-as** sends its output to a file or standard output by following 25 * If the input is standard input, then the output is standard output. 27 * If the input is a file that ends with ``.ll``, then the output file is of the 31 output file has the same name as the input file, except that the ``.bc`` 38 Enable binary output on terminals. Normally, **llvm-as** will refuse to 39 write raw bitcode output if the output stream is a terminal. With this option, 40 **llvm-as** will write raw bitcode regardless of the output device. 46 Specify the output file name. If *filename* is ``-``, then **llvm-as** [all …]
|
/llvm-project/llvm/utils/gn/build/toolchain/ |
H A D | BUILD.gn | 3 unix_copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 28 depfile = "{{output}}.d" 29 command = "$cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}" 31 description = "CC {{output}}" 36 depfile = "{{output}}.d" 37 command = "$cxx -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}" 39 description = "CXX {{output}}" 44 depfile = "{{output}} [all...] |
/llvm-project/llvm/utils/rsp_bisect_test/ |
H A D | test.py | 62 output = run_bisect(True, test1) variable 63 assert "./foo" in output 69 output = run_bisect(True, test1) variable 70 assert "./foo" in output 76 output = run_bisect(True, test1) variable 77 assert "./foo" in output 82 output = run_bisect(True, test1) variable 83 assert "./foo" in output 88 output = run_bisect(True, test1) variable 89 assert "./foo" in output [all …]
|