- Jan 16, 2024
-
-
Kazu Hirata authored
-
Jinyang He authored
[LoongArch] Add relaxDwarfLineAddr and relaxDwarfCFA to handle the mutable label diff in dwarfinfo (#77728) When linker-relaxation is enabled, part of the label diff in dwarfinfo cannot be computed before static link. Refer to RISCV, we add the relaxDwarfLineAddr and relaxDwarfCFA to add relocations for these label diffs. Calculate whether the label diff is mutable. For immutable label diff, return false and do the other works by its parent function.
-
Shengchen Kan authored
BTW, I adjust the code by LLVM coding standards.
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Jacques Pienaar authored
Enable printing without dialect wrapping. This closely matches `AsmPrinter::printStrippedAttrOrType` implementation wise except templating component.
-
XChy authored
-
Shilei Tian authored
The two VOP2 instructions cannot be encoded as VOP3. Fix #54691.
-
Jie Fu authored
llvm-project/llvm/lib/Target/X86/X86InstrInfo.cpp:3467:14: error: unused variable 'isMemOp' [-Werror,-Wunused-variable] 3467 | const auto isMemOp = [](const MCOperandInfo &OpInfo) -> bool { | ^~~~~~~ 1 error generated. -
Michal Paszkowski authored
Prior to this change spv_ptrcast (and OpBitcast) was never emitted for GEP resulting pointers. While such SPIR-V was (mostly) accepted by the NEO GPU driver, the generated SPIR-V was incorrect. The newly added test (pointers/getelementptr-bitcast-load.ll) verifies that a correct bitcast is added for more complex cases and passes spirv-val. The test is based on an OpenCL CTS test (basic/prefetch).
-
Chuanqi Xu authored
Generally we'll use `-fsyntax-only` when it is sufficient and we'll use `expected-no-diagnostics` to test the behavior doesn't trigger any problems. This patch applies these two improvements to `clang/test/Modules/GH77953.cpp`.
-
Shengchen Kan authored
-
Mel Chen authored
The following internal error occurred when using native vplan to vectorize the program with the debug info generation. Assertion `!isa<DbgInfoIntrinsic>(CI) && "DbgInfoIntrinsic should have been dropped during VPlan construction"' failed. This patch ignored all debug instructions to fix the error when native vplan is enabled.
-
Nicholas Mosier authored
Add the MI-layer routine X86::getFirstAddrOperandIdx(), which returns the index of the first address operand of a MachineInstr (or -1 if there is none). X86II::getMemoryOperandNo(), the existing MC-layer routine used to obtain the index of the first address operand in a 5-operand X86 memory reference, is incomplete: it does not handle pseudo-instructions like TCRETURNmi, resulting in security holes in the mitigation passes that use it (e.g., x86-slh and x86-lvi-load). X86::getFirstAddrOperandIdx() handles both pseudo and real instructions and is thus more suitable for most use cases than X86II::getMemoryOperandNo(), especially in mitigation passes like x86-slh and x86-lvi-load. For this reason, this patch replaces all uses of X86II::getMemoryOperandNo() with X86::getFirstAddrOperandIdx() in the aforementioned mitigation passes.
-
AtariDreams authored
Instead of calling NextPowerOf2, which is only useful for constants, we should call Log2_64_Ceil, which is faster because it uses compiler intrinsics where supported.
-
Rashmi Mudduluru authored
This reverts commit 164f85db.
-
Amara Emerson authored
-
SihangZhu authored
Fix this issue [#76957](https://github.com/llvm/llvm-project/issues/76957) Libgcc provides __register_frame to register a dynamic .eh_frame section, while __unw_add_dynamic_eh_frame_section can be used to do the same in libunwind. However, the address after dynamic .eh_frame are padding with 0 value, it will be identified as legal CIE. And __unw_add_dynamic_eh_frame_section will continue to parse subsequent addresses until illegal memory or other sections are accessed. This patch adds length formal parameter for dynamic registration.
-
XChy authored
Fixes the buildbot failure in https://github.com/llvm/llvm-project/pull/78134#issuecomment-1892195197 When we meet the path with single `determinator`, the determinator actually takes itself as a predecessor. Thus, we need to let `Prev` be the determinator when `PathBBs` has only one element.
-
Joseph Huber authored
Summary: This patch cleans up some of the JIT handling for AMDGPU as well as removing its temporary files. Previously these would be left in the temporary directory after the program was run. This costs some extra time, but the correct solution to avoid that is to create a sufficient entrypoint into `ld.lld` that we can simply pass a memory buffer into.
-
cor3ntin authored
[Clang] Only compare template params of potential overload after checking their decl context (#78139) Fixes a regression from 69066ab3 in which we compared the template lists of potential overloads before checkings their declaration contexts. This would cause a crash when doing constraint substitution as part of that template check, because we would try to refer to not yet instantiated entities (the underlying cause is unclear). This patch reorders (again) when we look at template parameter so we don't do it when checkings friends in different lexical contexts. Fixes #77953 Fixes #78101
-
Congcong Cai authored
-
Jie Fu authored
llvm-project/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp:204:25: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long') [-Werror,-Wsign-compare] if (getShape().size() > rank) ~~~~~~~~~~~~~~~~~ ^ ~~~~ 1 error generated. -
Fabian Mora authored
This patch adds an optional offloading handler attribute to the`gpu.module` op. This attribute will be used during `gpu-module-to-binary` pass to override the offloading handler used in the `gpu.binary` op.
-
Kelvin Li authored
The `_POSIX_SOURCE` macro is defined without a value on AIX. Change the check to `defined(_POSIX_SOURCE)`.
-
Florian Hahn authored
Extra test for https://github.com/llvm/llvm-project/pull/77827, where NUW gets added the AddRec due to the BTC being 0.
-
Fabian Mora authored
[llvm][frontend][offloading] Move clang-linker-wrapper/OffloadWrapper.* to llvm/Frontend/Offloading (#78057) This patch moves `clang/tools/clang-linker-wrapper/OffloadWrapper.*` to `llvm/Frontend/Offloading` allowing them to be re-utilized by other projects. Additionally, it makes minor modifications to the API to make it more flexible. Concretely: - The `wrap*` methods now have additional arguments `EntryArray`, `Suffix` and `EmitSurfacesAndTextures` to specify some additional options. - The `EntryArray` is now constructed by the caller. This change is needed to enable JIT compilation, as ORC doesn't fully support `__start_` and `__stop_` symbols. Thus, to JIT the code, the `EntryArray` has to be constructed explicitly in the IR. - The `Suffix` field is used when emitting the descriptor, registration methods, etc, to make them more readable. It is empty by default. - The `EmitSurfacesAndTextures` field controls whether to emit surface and texture registration code, as those functions were removed from `CUDART` in CUDA 12. It is true by default. - The function `getOffloadingEntryInitializer` was added to help create the `EntryArray`, as it returns the constant initializer and not a global variable.
-
Peter Klausler authored
Add a paragraph to Extensions.md that fell out of a recent patch.
-
Michael Buch authored
We only ever call this function once, without relying on the defaulted `honor_array` parameter, so make it non-defaulted. Also `max_length` is always set to `0`, so remove it entirely. This simplifies some upcoming refactoring.
-
Peter Klausler authored
[flang] Catch more initialization errors Diagnose some error cases related to initialization that are slipping past semantic checking: don't allow multiple initializations of the same symbol, and don't allow an object that was initialized as a scalar to become an array afterward. Fixes llvm-test-suite/Fortran/gfortran/regression/initialization_17.f90. -
Vitaly Buka authored
-
Martin Storsjö authored
The main reason for adding the toolchain paths early was to prefer libraries from the toolchain over ones from MSVC (primarily for compiler-rt builtins). But if the user specifies a directory explicitly with the -libpath: option, that should be preferred over the built-in default paths. This fixes an issue raised at https://discourse.llvm.org/t/lld-prefers-system-llvm-libraries-to-user-provided-ones-on-windows/76148.
-
Peter Klausler authored
…character Don't omit the leading space in list-directed output before a line comprising only a zero-length character value. Fixes https://github.com/llvm/llvm-project/issues/77736.
-
Peter Klausler authored
In CALL FOO PRINT *, ABS(FOO) we currently resolve the first FOO to a global external subprogram, but then the second FOO is treated as an implicitly typed local variable. This happens because the name FOO is not present in the local scope. Fix by adding FOO to the local scope using a place-holding HostAssocDetails symbol whose existence prevents the creation of another FOO in the local scope. The symbol stored in the parser::Name parse tree nodes or used in typed expressions will all continue to point to the global external subprogram. Resolves llvm-test-suite/Fortran/gfortran/regression/pr71859.f90. -
Peter Klausler authored
Using the VALUE attribute for assumed-length CHARACTER dummy arguments became standard in F'2008 but still lacks widespread implementation; emit a portability warning when they are enabled. Resolves llvm-test-suite/Fortran/gfortran/regression/value_5.f90.
-
Diogo Teles Sant'Anna authored
Closes #75620 As I mentioned on the issue, this PR aims to hash-pin the CI dependencies used on sensitive context -- i.e., they either are called with write permissions, or are being used to build critical artifacts like a release. In summary, this PR brings 3 changes: 1. Hash pin GitHub Actions called on sensitive context 2. Hash pin python dependencies used on sensitive context 3. Configure dependabot to automatically update those hashes I'm further explaining the steps bellow. The dependencies in format of GitHub Actions, I simply hash-pinned them. I also made sure to keep the human-readable version as comments at the same line. At the [release-tasks.yml](https://github.com/llvm/llvm-project/blob/main/.github/workflows/release-tasks.yml) file, I've changed the installation method of some python dependencies to install them considering their hashpinning. That required the generation of a requirements file that had all the correct hashes, and for that I used [pip-tools](https://pypi.org/project/pip-tools/2.0.0/). While configuring dependabot, I set it to send a monthly PR updating all the GitHub Actions, and a weekly PR to update any python dependency required by [/llvm/docs/requirements.txt](https://github.com/llvm/llvm-project/blob/main/llvm/docs/requirements.txt ). Let me know if you have any questions or concerns, I'd be happy to clarify and help. Thanks! --------- Signed-off-by:
Diogo Teles Sant'Anna <diogoteles@google.com>
-
Peter Klausler authored
When an already-allocated allocatable array is about to fail reallocation, don't allow its size or other characteristics to be changed. Fixes llvm-test-suite/Fortran/gfortran/regression/multiple_allocation_1.f90 and .../multiple_allocation_3.f90.
-