Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 81) sorted by relevance

1234

/llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/taco/
H A Dunit_test_tensor_io.py42 file_name = os.path.join(test_dir, "data.mtx")
43 with open(file_name, "w") as file:
45 a = mlir_pytaco_io.read(file_name, _FORMAT)
62 file_name = os.path.join(test_dir, "data.mtx")
63 with open(file_name, "w") as file:
65 a = mlir_pytaco_io.read(file_name, _FORMAT)
94 with open(file_name, "w") as file:
96 a = mlir_pytaco_io.read(file_name, _FORMAT)
119 mlir_pytaco_io.write(file_name, a)
137 mlir_pytaco_io.write(file_name, b)
[all …]
H A Dunit_test_tensor_utils.py72 file_name = os.path.join(test_dir, "data.tns")
73 with open(file_name, "w") as file:
78 file_name, sparsity_codes, "f64")
/llvm-project-15.0.7/clang/tools/scan-build-py/tests/unit/
H A Dtest_report.py16 file_name = os.path.join(tmpdir, 'test.html')
17 with open(file_name, 'w') as handle:
19 for bug in sut.parse_bug_html(file_name):
25 file_name = os.path.join(tmpdir, preproc + '.info.txt')
26 with open(file_name, 'w') as handle:
28 return sut.parse_crash(file_name)
363 file_name = os.path.join(tmpdir, 'results-{}.sarif'.format(idx))
364 with open(file_name, 'w') as handle:
520 file_name = os.path.join(tmpdir, 'results-{}.sarif'.format(idx))
521 with open(file_name, 'w') as handle:
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/process/attach/attach_denied/
H A Dmain.cpp24 bool writePid (const char* file_name, const pid_t pid) in writePid() argument
26 char *tmp_file_name = (char *)malloc(strlen(file_name) + 16); in writePid()
27 strcpy(tmp_file_name, file_name); in writePid()
47 if (rename (tmp_file_name, file_name) == -1) in writePid()
49 fprintf (stderr, "rename(%s, %s) failed: %s\n", tmp_file_name, file_name, strerror (errno)); in writePid()
/llvm-project-15.0.7/compiler-rt/lib/asan/scripts/
H A Dasan_symbolize.py42 def fix_filename(file_name): argument
45 file_name = re.sub('.*' + path_to_cut, '', file_name)
46 file_name = re.sub('.*asan_[a-z_]*.(cc|cpp):[0-9]*', '_asan_rtl_', file_name)
47 file_name = re.sub('.*crtstuff.c:0', '???:0', file_name)
48 return file_name
124 file_name = fix_filename(file_name)
126 not file_name.startswith('??')):
195 assert file_name == '??:0', file_name
199 assert not file_name, file_name
205 file_name = '??:0'
[all …]
/llvm-project-15.0.7/lldb/source/Interpreter/
H A DOptionValueFileColonLine.cpp87 llvm::StringRef file_name; in SetValueFromString() local
90 std::tie(file_name, middle_piece) = left_of_last_piece.rsplit(':'); in SetValueFromString()
96 file_name = left_of_last_piece; in SetValueFromString()
115 m_file_spec.SetFile(file_name, FileSpec::Style::native); in SetValueFromString()
/llvm-project-15.0.7/llvm/utils/llvm-locstats/
H A Dllvm-locstats.py37 def __init__(self, file_name, variables_total, variables_total_locstats, argument
40 self.file_name = file_name
120 label='variables of {}'.format(self.file_name))
149 label='variables of {}'.format(self.file_name))
153 label='variables of {}'.format(locstats_to_compare.file_name))
160 format(self.file_name, pc_ranges_covered),
165 format(locstats_to_compare.file_name,
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/PECOFF/
H A DWindowsMiniDump.cpp31 const std::string file_name = outfile.GetCString(); in SaveMiniDump() local
33 wide_name.resize(file_name.size() + 1); in SaveMiniDump()
36 if (!llvm::ConvertUTF8toWide(sizeof(wchar_t), file_name, result_ptr, in SaveMiniDump()
/llvm-project-15.0.7/compiler-rt/test/profile/ContinuousSyncMode/
H A Dset-file-object.c54 char *file_name = argv[2]; in main() local
55 FILE *file = fopen(file_name, "a+b"); in main()
62 char *const child_argv[] = {argv[0], "set", file_name, NULL}; in main()
/llvm-project-15.0.7/lldb/test/API/functionalities/breakpoint/breakpoint_command/
H A DTestRegexpBreakCommand.py39 file_name='main.c',
48 file_name='main.c',
59 file_name='main.c',
/llvm-project-15.0.7/clang/utils/analyzer/
H A DSATestUtils.py41 def has_no_extension(file_name: str) -> bool:
42 root, ext = os.path.splitext(file_name)
46 def is_valid_single_input_file(file_name: str) -> bool:
47 root, ext = os.path.splitext(file_name)
/llvm-project-15.0.7/compiler-rt/lib/hwasan/scripts/
H A Dhwasan_symbolize170 def __process_source_path(self, file_name): argument
172 file_name = re.sub(".*" + path_to_cut, "", file_name)
173 file_name = re.sub(".*hwasan_[a-z_]*.(cc|h):[0-9]*", "[hwasan_rtl]", file_name)
174 file_name = re.sub(".*asan_[a-z_]*.(cc|h):[0-9]*", "[asan_rtl]", file_name)
175 file_name = re.sub(".*crtstuff.c:0", "???:0", file_name)
176 return file_name
/llvm-project-15.0.7/lldb/scripts/android/
H A Dhost_art_bt.py184 file_name = frame.EvaluateExpression(
186 file_name_data = file_name.GetValueAsUnsigned()
188 """(size_t)strlen(""" + file_name.GetName() + """)""").GetValueAsUnsigned()
190 file_name = process.ReadCStringFromMemory(
198 'file': file_name,
/llvm-project-15.0.7/mlir/test/python/
H A Ddeveloment_files.py16 for file_name in all_libs:
17 if expected_lib_name in file_name: found_lib = True
/llvm-project-15.0.7/mlir/utils/spirv/
H A Ddefine_inst.sh22 file_name=$1
45 ${current_dir}/../../include/mlir/Dialect/SPIRV/IR/${file_name} \
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/
H A DCompileUnitIndex.cpp227 StringIdRecord file_name; in GetMainSourceFile() local
233 TypeDeserializer::deserializeAs<StringIdRecord>(file_cvt, file_name)); in GetMainSourceFile()
238 if (llvm::sys::path::is_absolute(file_name.String, style)) in GetMainSourceFile()
239 return file_name.String; in GetMainSourceFile()
242 llvm::sys::path::append(absolute_path, file_name.String); in GetMainSourceFile()
/llvm-project-15.0.7/lldb/test/API/functionalities/pre_run_dylibs/
H A DTestPreRunDylibs.py24 file_name = module.GetFileSpec().GetFilename()
25 if file_name.find("unlikely_name") != -1:
/llvm-project-15.0.7/lldb/source/Commands/
H A DCommandObjectSource.cpp68 file_name = std::string(option_arg); in SetOptionValue()
91 file_name.clear(); in OptionParsingStarting()
106 std::string file_name; member in CommandObjectSourceInfo::CommandOptions
491 FileSpec file_spec(m_options.file_name); in DumpLinesForFile()
591 } else if (!m_options.file_name.empty()) { in DoExecute()
641 file_name = std::string(option_arg); in SetOptionValue()
671 file_name = value.GetFileSpec().GetPath(); in SetOptionValue()
687 file_name.clear(); in OptionParsingStarting()
703 std::string file_name; member in CommandObjectSourceList::CommandOptions
1098 } else if (m_options.file_name.empty()) { in DoExecute()
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/object-file/
H A DTestImageListMultiArchitecture.py33 file_name = os.path.abspath(
40 self.runCmd("file {}".format(file_name))
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/
H A DProcessWindows.cpp52 std::vector<wchar_t> file_name; in GetProcessExecutableName() local
57 file_name.resize(file_name_size); in GetProcessExecutableName()
58 copied = ::GetModuleFileNameExW(process_handle, NULL, file_name.data(), in GetProcessExecutableName()
61 file_name.resize(copied); in GetProcessExecutableName()
63 llvm::convertWideToUTF8(file_name.data(), result); in GetProcessExecutableName()
68 std::string file_name; in GetProcessExecutableName() local
72 file_name = GetProcessExecutableName(process_handle); in GetProcessExecutableName()
75 return file_name; in GetProcessExecutableName()
660 const std::string file_name = GetProcessExecutableName(pid); in OnDebuggerConnected() local
661 if (file_name.empty()) { in OnDebuggerConnected()
[all …]
/llvm-project-15.0.7/lldb/utils/lui/
H A Dlldbutil.py323 file_name, argument
337 if file_name is None:
340 command = 'breakpoint set -f "%s" -l %d' % (file_name, line_number)
355 file_name=file_name,
540 file_name=None, argument
560 if file_name:
565 file_name == out_file_name,
567 (file_name,
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_file.cpp127 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
142 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer()
171 bool ReadFileToVector(const char *file_name, in ReadFileToVector() argument
178 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToVector()
/llvm-project-15.0.7/openmp/runtime/test/env/
H A Domp_thread_limit.c17 void verify(const char* file_name, int line_number, int team_size) { in verify() argument
23 snprintf(label, sizeof(label), "%s:%d", file_name, line_number); in verify()
/llvm-project-15.0.7/llvm/test/tools/llvm-lipo/
H A Dreplace-invalid-input.test6 # MISSING_ARG: error: replace is missing an argument: expects -replace arch_type file_name
24 # ARCH_NOT_IN_INPUT: error: -replace arm64 <file_name> specified but fat file: {{.*}} does not cont…
30 # ARCH_DUPLICATE: error: -replace i386 <file_name> specified multiple times:
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/tools/clang_opt_bisect/
H A DTool.py201 file_name = '-'.join(
209 file_name = ''.join(
210 c for c in file_name
215 '{}.txt'.format(file_name))
223 '{}.dextIR'.format(file_name))

1234