Revert "[sanitizer_common][test-only] Specify full path for sort executable in popen.cpp" (#171706)
Reverts llvm/llvm-project#171622
Co-authored-by: Andrew Haberlandt <ndrewh at users.noreply.github.com>
[flang-rt][device] Enable MapException on the device with error message (#171705)
As it is done in `flang-rt/lib/runtime/edit-input.cpp`, emit a runtime
error message when trying to raise IEEE exception on the device.
`MapException` and `feraiseexcept` are used in the lowering of the
nearest intrinsic even on the device.
[LoopPeel] Ignore assume intrinsics for the mayWriteToMemory check in peelToTurnInvariantLoadsDereferenceable. (#171547)
llvm.assume intrinsics have the mayWriteToMemory property, but
won't prevent the load from becoming dereferenceable.
[RISCV] Add OperandType for XSfmm TWiden. (#171572)
Use the same twiden format for PseudoSF_VSETTM and PseudoSF_VSETTK
as other XSfmm pseudos. Though I don't think we use the operand from
these instructions.
[compiler-rt] Add baremetal version of profile library. (#167998)
Adds a flag COMPILER_RT_PROFILE_BAREMETAL, which disables the parts of
the profile runtime which require a filesystem or malloc. This minimal
library only requires string.h from the C library.
This is useful for profiling or code coverage of baremetal images, which
don't have filesystem APIs, and might not have malloc configured (or
have limited heap space).
Expected usage:
- Add code to your project to call
`__llvm_profile_get_size_for_buffer()` and
`__llvm_profile_write_buffer()` to write the profile data to a buffer in
memory, and then copy that data off the device using target-specific
tools.
- If you're using a linker script, set up your linker script to map the
profiling and coverage input sections to corresponding output sections
[10 lines not shown]
[clang-doc] Serialize the global namespace name in JSON
Previously, the global namespace's "Name" field was left empty. It could
be identified this way, but it could also be identified by its USR.
Actually populating the "Name" field allows for nicer output in the
future.
[lldb-dap] Fix running dap_server.py directly for debugging tests. (#167754)
This adjusts the behavior of running dap_server.py directly to better
support the current state of development. A few parts of the 'main' body
were stale and not functional.
These improvements include:
* Instead of the custom tracefile / replay file parsing logic, I
adjusted the replay helper to handle parsing lldb-dap log files created
with the `LLDBDAP_LOG` env variable, allowing you to more easily run a
failing test like: `python3
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
--adapter lldb-dap -r
lldb-test-build.noindex/tools/lldb-dap/console/TestDAP_console.test_custom_escape_prefix/dap.txt`
* Migrated argument parsing to `argparse`, that is in all verisons of
py3+ and has a few improvements over `optparse`.
* Corrected the existing arguments and updated `run_vscode` >
`run_adapter`. You can use this for simple debugging like: `xcrun
[2 lines not shown]
[flang][OpenMP] Parse OpenMP 6.0 syntax of INIT clause
This includes FR(...) for foreign runtime identifiers and ATTR(...) for
extensions. Do not store string runtime ids as character literals in the
AST. Use parser::Expr instead, since lowering would require evaluate::Expr
for these ids, and we get evaluate::Expr from parser::Expr automatically.
Use OpenMP 6.0 naming for AST nodes (since it's the "current" one).
[clang][unittest] Fix build break with BUILD_SHARED_LIBS=ON
/usr/bin/ld: tools/clang/unittests/Analysis/Scalable/CMakeFiles/ClangSca
lableAnalysisFrameworkTests.dir/ASTEntityMappingTest.cpp.o: undefined re
ference to symbol '_ZN5clang7ASTUnitD1Ev
[clang-doc] Add JSON bools for parents, vparents and test
Parents and virtual parents didn't have "Has" bools in JSON output. That
made it difficult to only create output conditionally.
Also add an explicit test for inheritance and parents, vparents, and
bases which actually weren't tested in JSON
[NFC][M68k] Refactor away MOV8dc and MOV8cd (#169426)
This obsoletes the FIXME in #85686, but it doesn't address the issue
where moves from CCR will still be emitted on 68000. However, all such
moves will now be emitted as physreg copies, and the issue can thus be
handled there in a followup change.
[Offload] Debug message update part 2
Update debug messages based on the new method from #170425.
Added a new debug type `Tool` and updated the following files.
- include/OffloadPolicy.h
- include/OpenMP/OMPT/Connector.h
- include/Shared/Debug.h
- include/Shared/EnvironmentVar.h
- libomptarget/OpenMP/Mapping.cpp
- libomptarget/OpenMP/OMPT/Callback.cpp
- libomptarget/PluginManager.cpp
[Offload] Debug message update part 3
Update debug messages based on the new method from #170425.
Updated the following files.
- plugins-nextgen/common/include/MemoryManager.h
- plugins-nextgen/common/include/PluginInterface.h
- plugins-nextgen/common/src/GlobalHandler.cpp
- plugins-nextgen/common/src/PluginInterface.cpp
- plugins-nextgen/host/dynamic_ffi/ffi.cpp