- Sep 24, 2022
-
-
Peter Klausler authored
The code snippet module m interface module subroutine specific end subroutine end interface interface generic module procedure specific end interface end module elicits a bogus semantic error about "specific" not being an acceptable module procedure for the generic interface; fix. Differential Revision: https://reviews.llvm.org/D134402 -
Peter Klausler authored
We apply special symbol table scoping to top-level subroutine and function names that have interoperable binding names, so that it's possible to define the same subroutine/function name more than once at the top level so long as their binding names are distinct. But we don't use those scoping techniques for ENTRY statement symbols with interoperable binding names, which can lead to bogus semantic errors when the same ENTRY name is defined multiple times with distinct binding names. Differential Revision: https://reviews.llvm.org/D134401
-
Peter Klausler authored
Some Fortran compilers accept user-defined ELEMENTAL procedures as actual arguments corresponding to (necessarily) non-ELEMENTAL dummy procedures; most do not, and f18 is one of them. Document the fact that this is not a supported extension. Differential Revision: https://reviews.llvm.org/D134399
-
Peter Klausler authored
There's code in name resolution that handles resolution of references that appear in the definitions of derived types -- it checks for existing components in the type being defined, as well as for non-parent components in its ancestors. Special case code prevents resolution of a name to the symbol of a procedure binding. This code needs to be extended so that names of generic procedures are similarly prevented from shadowing symbols in the scope around the type. Differential Revision: https://reviews.llvm.org/D134398
-
Lei Zhang authored
So that these utility functions can also be used ViewLikeInterface ops not in the memref dialect. Reviewed By: mravishankar, christopherbate Differential Revision: https://reviews.llvm.org/D134487
-
Florian Hahn authored
The dependent code has been changed quite a lot since 151c1443 which b73d2c8c effectively reverts. Now we run into a case where lowering didn't expect/support the behavior pre 151c1443 any longer. Update the code dealing with scalable pointer inductions to also check for uniformity in combination with isScalarAfterVectorization. This should ensure scalable pointer inductions are handled properly during epilogue vectorization. Fixes #57912.
-
Dmitri Gribenko authored
Revert "[AggressiveInstCombine] Combine consecutive loads which are being merged to form a wider load." This reverts commit 3c70c8c1. After this commit, during the 3-stage bootstrap the second-stage Clang crashes.
-
jeff authored
Change-Id: Iaa8f6263178cfa8405d9a0298b2695b32a42fdf3
-
Michael Jones authored
fixes a build failure in my previous patch Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D134552
-
Thomas Raoux authored
rewriteMapNestedForeachThreadToGpuThreads was dropping the paramter to skip inserting barrier Differential Revision: https://reviews.llvm.org/D134500
-
Philip Reames authored
When store vectorization is infeasible, it's helpful to have a debug logging indication of why. A case I've hit a couple times now is accidentally using -march instead of -mtriple and getting the default TTI results. This causes max-vf to become 1, and thus hits the added logging line.
-
Kazu Hirata authored
This reverts commit 9ac934d1. I'm reverting this to accommodate Yevgeny Rouban's downstream branch where a field of InlineCost changes.
-
Michael Jones authored
Add the madvise and posix_madvise syscall wrappers and tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D134498
-
Michael Jones authored
Add the mprotect syscall wrapper and tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D134497
-
Michael Jones authored
Previously the mman macros were in api.td, but platform differences are easier to handle with preprocessor macros so they have been moved to include. Also I completed the list of macros (at least for what I need soon) and fixed some previously incorrect values. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D134491
-
Josh Stone authored
This has the advantage of dealing with live EFLAGS, using LEA instead of SUB if needed to avoid clobbering. That also respects feature "lea-sp". We could allow unrolled stack probing from blocks with live-EFLAGS, if canUseAsEpilogue learns when emitStackProbeInlineGeneric will be used. Differential Revision: https://reviews.llvm.org/D134495
-
Josh Stone authored
Fixes https://github.com/llvm/llvm-project/issues/49509 Differential Revision: https://reviews.llvm.org/D134494
-
Josh Stone authored
This makes them callable from places like canUseAsPrologue. Differential Revision: https://reviews.llvm.org/D134492
-
Arthur Eubanks authored
We're inconsistent about saying whether or not we support libfpm in the bazel build. This should perhaps be configurable via a --config. This allows the buildbots to see when llvm-exegesis-related breakages occur. Differential Revision: https://reviews.llvm.org/D134510
-
Peter Klausler authored
When a component reference to a named constant of derived type should fold down to NULL() without a MOLD=, do so. Differential Revision: https://reviews.llvm.org/D134395
-
Sanjay Patel authored
Several different passes are involved to get the expected IR, and we don't want that to break again.
-
Kazu Hirata authored
-
Sanjay Patel authored
This reverts commit cdc012fa. This accidentally deleted a test file (not sure how that became part of the commit).
-
Sanjay Patel authored
Several different passes are involved to get the expected IR, and we don't want that to break again.
-
- Sep 23, 2022
-
-
Petar Avramovic authored
Remove manual selection for atomic fadd from global-isel. Stop pre-isel translation to AtomicLoadFAdd/G_ATOMICRMW_FADD which corresponds to llvm-ir's atomicrmw fadd instruction. global and flat atomic fadd patterns changes: Split rtn/no-rtn patterns Add missing patterns or fix predicates Remove atomicrmw patterns for v2f16 (atomic rmw doesn't support vectors). Patterns now check addrspace of pointer, added patterns for flat intrinsic. with global addrspace pointer that selects into global atomic instruction. buffer atomic fadd patterns changes: Rdit patterns to import into global-isel. Remove gfx6/gfx7 _addr64 and _offset patterns. Remove patterns that can't be reached (same pattern but different feature). Differential Revision: https://reviews.llvm.org/D130579
-
Petar Avramovic authored
Use same atomicrmw fadd expansion rules for gfx908, gfx940 and gfx11 as for gfx90a. Add missing globalisel legalizer support for flat atomicrmw fadd f32 on gfx940 and gfx11. Isel support for gfx11 will be added in D130579. Differential Revision: https://reviews.llvm.org/D131560
-
Petar Avramovic authored
Precommit for D130579 that will remove manual selection and use patterns from td files. Tests are grouped based on target features. All patterns have rtn and no-rtn versions. buffer atomics patterns are selected based on the intrinsic used (raw or struct) and the offset operand (imm or vgpr): _offset raw with imm offset _offen raw with vgpr offset (or large imm offset) _idxen struct with imm offset _bothen struct with vgpr offset (or large imm offset) global and flat atomics are selected via intrinsic or the atomicrmw fadd. atomicrmw tests have amdgpu-unsafe-fp-atomics=true and non-system scope since they get expanded otherwise. atomicrmw fadd does not support vector type, test float and double. global atomics patterns are selected based on address type via (global or flat) intrinsic or atomicrmw fadd with global address(addrspace(1)*). 'no suffix' vgpr addrspace(1)* address _saddr sgpr addrspace(1)* address flat atomics patterns are selected via (flat)intrinsic or atomicrmw fadd with flat address (* - address space 0). Differential Revision: https://reviews.llvm.org/D131561
-
Petar Avramovic authored
Feature used by targets that have flat_atomic_add_f32 instruction (gfx940 and gfx11). Remove isGFX940GFX11Plus. Add hasFlatAtomicFaddF32Inst Subtarget check for codegen. Differential Revision: https://reviews.llvm.org/D134532
-
Philip Reames authored
We allow the target to report different costs depending on properties of the operands; given this, we have to make sure we pass the right set of operands and account for the fact that different scalar instructions can have operands with different properties. As a motivating example, consider a set of multiplies which each multiply by a constant (but not all the same constant). Most of the constants are power of two (but not all). If the target doesn't have support for non-uniform constant immediates, this will likely require constant materialization and a non-uniform multiply. However, depending on the balance of target costs for constant scalar multiplies vs a single vector multiply, this might or might not be a profitable vectorization. This ends up basically being a rewrite of the existing code. Normally, I'd scope the change more narrowly, but I kept noticing things which seemed highly suspicious, and none of the existing code appears to have any test coverage at all. I think this is a case where simply throwing out the existing code and starting from scratch is reasonable. This is a follow on to Alexey's D126885, but also handles the arithmetic instruction case since the existing code appears to have the same problem. Differential Revision: https://reviews.llvm.org/D132566
-
Chris Bieneman authored
HLSL uses a variety of named IR metadata and attributes to convey additional information from the frontend to the backend. This document tries to capture and document the named annotations to provide a reference for future contributors. Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D134304
-
Peter Klausler authored
When a subexpression does not have both constant elements and a constant shape, folding is rewriting it into a vector of its elements. This is of course wrong when the shape shows that the result has rank greater than 1. Differential Revision: https://reviews.llvm.org/D134392
-
Anders Langlands authored
Modifies clang_Cursor_getNumTemplateArguments() and friends to work on Struct, Class and ClassTemplatePartialSpecialization decls as well as functions. Differential Revision: https://reviews.llvm.org/D134416
-
Guray Ozen authored
This revision adds a new op `map_nested_foreach_thread_to_gpu_blocks` to transform dialect. If `generate_gpu_launch` argument is given, the op first generates `gpu_launch`. Otherwise, `target` must be `gpu_launch`. The op searches top level `scf.foreach_threads` inside the `gpu_launch` and distributes them with gpu.block_id attribute. Loop mapping is explicit and given by the map_nested_foreach_thread_to_gpu_blocks op. Mapping is done one-to-one, therefore the loops disappear. It also adds `gpu dialect` as dependent since the new op can create `gpu::LaunchOp` for given `scf::ForeachThreadOp`. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D134190
-
Florian Hahn authored
LoopDeletion may hoist instructions out of a loop using makeLoopInvariant without invalidating the SCEV for the moved instruction. Moving the instruction to a different block may change its cached block disposition, so invalidate the cached info. Fixes #57837.
-
Rainer Orth authored
When upstream `compiler-rt` was recently imported into GCC's `libsanitizer`, Solaris 11.3 bootstrap broke because in 11.3 `<sys/procfs.h>` doesn't mix with largefile compilation. I'd caused this in D129837 <https://reviews.llvm.org/D129837> where I forgot that the code still needs to support Solaris 11.3. Fixed by restoring the `#undef _FILE_OFFSET_BITS`. Tested on `sparc-sun-solaris2.11` and `amd64-pc-solaris2.11` (Solaris 11.4) in LLVM and both Solaris 11.3 and 11.4 in GCC. Differential Revision: https://reviews.llvm.org/D133556
-
Simon Pilgrim authored
Fixes warnings introduced by D111968
-
Nico Weber authored
This allows using --ld-path= to set a custom linker path, while still informing clang that the binary at that path is an lld built at the same revision as clang, so that clang can make assumptions about the flags it supports, its output format, etc. This currently only has an observable effect on Darwin. Differential Revision: https://reviews.llvm.org/D134063
-
Simon Pilgrim authored
The mul by constant costmodels handle power-of-2 constants, but not negated-power-of-2, despite the backends handling both. This patch adds the OperandValueProperties::OP_NegatedPowerOf2 enum and wires it for use for basic mul cost analysis and SLP handling. Fixes #50778 Differential Revision: https://reviews.llvm.org/D111968
-
Nikita Popov authored
-
David Spickett authored
There are two conditions for the loop exit. Either we hit LLDB_INVALID_ADDRESS or the ABI tells us we are beyond mappable memory. I made a mistake in that second part that meant if you had no ABI plugin --all would stop on the first loop and return nothing. If there's no ABI plugin we should only check for LLDB_INVALID_ADDRESS. Depends on D134029 Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134030
-