- Mar 17, 2023
-
-
Florian Hahn authored
Test for #61396.
-
Matt Arsenault authored
-
Nikita Popov authored
-
Florian Hahn authored
-
Ilya Karapsin authored
Add '__builtin_FILE_NAME()', which expands to the filename because the full path is not always needed. It corresponds to the '__FILE_NAME__' predefined macro and is consistent with the other '__builin' functions added for predefined macros. Differential Revision: https://reviews.llvm.org/D144878
-
Nikita Popov authored
-
Carlos Alberto Enciso authored
-
Stefan Gränitz authored
The old name of this function was confusing for me, when I started working on the PDB parser. The new name clearifies that the function adds file, line and column (typically referred as source info) and indicates that the information is stored in the provided decl parameter. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D146286
-
Nikita Popov authored
With opaque pointers the scevgep / uglygep distinction no longer makes sense -- GEPs are always emitted in offset-based representation.
-
Vladislav Khmelevsky authored
Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei Differential Revision: https://reviews.llvm.org/D146085
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D146146
-
Hans Wennborg authored
in order to provide as much information as possible to the user. The diagnostic will now look like for example: error: error reading '/tmp/foo.c': Permission denied (This addresses a FIXME from 2019, 9ef6c49b) Differential revision: https://reviews.llvm.org/D146280
-
Igor Kushnir authored
Fixes cc929590. The CXIndexOptions::GlobalOptions data member has been replaced with the two CXChoice data members during code review. Differential Revision: https://reviews.llvm.org/D146275
-
Mikhail Goncharov authored
-
Matt Arsenault authored
This reverts commit 78313e85. Accidentally pushed
-
Aaron Ballman authored
We thought we had implemented these papers appropriately but have since discovered significant issues. See discussion of the issues at: https://github.com/llvm/llvm-project/issues/61145 The work already done on these papers is remaining in tree for the moment while people investigate whether the issues can be fixed forward in main. The status page is being updated so the status is clear to users of the upcoming Clang 16 release.
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Pretty much just copy pasted from noundef handling
-
Matt Arsenault authored
Guess at suggestions from D145278
-
Dmitry Polukhin authored
There is a discrepancy between how clangd processes CDB loaded from JSON file on disk and pushed via LSP. Thus the same CDB pushed via LSP protocol may not work as expected. Some difference between these two paths is expected but we still need to insert driver mode and target from binary name and expand response files. Test Plan: check-clang-tools Differential Revision: https://reviews.llvm.org/D143436
-
Younan Zhang authored
We have a workaround from D128621 that makes $0 no longer being a placeholder to conform a vscode feature. However, we have to refine the logic as it may suppress the last parameter placeholder for constructor of base class because not all patterns of completion are compound statements. This fixes clangd/clangd#1479 Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D145319
-
Tom Eccles authored
Depends on D145960 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D145961
-
Tom Eccles authored
This fused operation should run a lot faster than first transposing the lhs array and then multiplying the matrices separately. Based on flang/runtime/matmul.cpp Depends on D145959 Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D145960
-
Tom Eccles authored
hlfir.matmul_transpose will be lowered to a new runtime call. A canonicalizer was chosen because - Alternative: a new pass for rewriting chained intrinsics - this would add a lot of unnecessary boilerplate. - Alternative: including this in the HLFIR Intrinsic Lowering pass - I wanted to separate these two concerns: not adding a second purpose complicating the intrinsic lowering pass. With this change, the MLIR built-in canonicalization pass should be run before the HLFIR Intrinsic Lowering pass. Depends on D145504, D145957 Reviewed By: clementval, vzakhari Differential Revision: https://reviews.llvm.org/D145959 -
Tom Eccles authored
This operation will be used to transform MATMUL(TRANSPOSE(a), b). The transformation will go in the following stages: 1. Lowering to hlfir.transpose and hlfir.matmul 2. Canonicalise to hlfir.matmul_transpose 3. hlfir.matmul_transpose will be lowered to FIR as a new runtime library call Step 2 (and this operation) are included for consistency with the other hlfir intrinsic operations and to avoid mixing concerns in the intrinsic lowering pass. In step 3, a new runtime library call is used because this operation is most easily implemented in one go (the transposed indexing actually makes the indexing simpler than for a normal matrix multiplication). In the long run, it is intended that HLFIR will allow the same buffer to be shared between different runtime calls without temporary allocations, but in this specific case we can do even better than that with a dedicated implementation. This should speed up galgel from SPEC2000 (but this hadn't been tested yet). The optimization was implemented in Classic Flang. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D145957 -
Tom Eccles authored
This test checks all of the parts of intrinsic lowering work together, and makes sure that we can pass the hlfir.expr result of one intrinsic as an argument to another. Depends on D145503 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D145504
-
Tom Eccles authored
Depends on D145502 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D145503
-
Tom Eccles authored
This move is useful for a few reasons: - It is easier to see what the intrinsic lowering is doing when the operations it creates are not immediately lowered - When lowering a HLFIR intrinsic generates an operation which needs to be lowered by another pattern matcher in the same pass, MLIR will run that other substitution before validating and finalizing the original changes. This means that the erasure of operations is not yet visible to subsequent matchers, which hugely complicates transformations (in this case, hlfir.exprs cannot be rewritten because they are still used by the now-erased HLFIR intrinsic op. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D145502 -
Dhruva Chakrabarti authored
Added a new target ompt mode that depends on libomptarget OMPT support. Added tests that verify callbacks for target regions, kernel launch, and data transfer operations. All of them should pass on amdgpu using make check-libomptarget. Reviewed By: jplehr Differential Revision: https://reviews.llvm.org/D127372
-
Nikita Popov authored
Now that SCEV has a dedicated vscale node type, we should also map vscale intrinsics to it. To make sure this does not regress ranges (which were KnownBits based previously), add support for vscale to getRangeRef() as well. Differential Revision: https://reviews.llvm.org/D146226
-
Nikita Popov authored
Add support for vscale in computeConstantRange(), based on vscale_range attributes. This allows simplifying based on the precise range, rather than a KnownBits approximation (which will be off by a factor of two for the usual case of a power of two upper bound). Differential Revision: https://reviews.llvm.org/D146217
-
Nikita Popov authored
The default and pre-link pipeline builders currently require you to call a separate method for optimization level O0, even though they have perfectly well-defined O0 optimization pipelines. Accept O0 optimization level and call buildO0DefaultPipeline() internally, so all consumers don't need to repeat this. Differential Revision: https://reviews.llvm.org/D146200
-
Bjorn Pettersson authored
When debugging and using debug-pass-manager (e.g. in regression tests) we prefer a consistent order in which analysis passes are executed. But when for example doing return MyClass(AM.getResult<LoopAnalysis>(F), AM.getResult<DominatorTreeAnalysis>(F)); then the order in which LoopAnalysis and DominatorTreeAnalysis isn't guaranteed, and might for example depend on which compiler that is used when building LLVM. I've not scanned the full source tree, but this fixes some occurances of the above pattern found in lib/Analysis. This problem was discussed briefly in review for D146206. -
Bjorn Pettersson authored
The default invalidate method for analysis results is just looking at the preserved state of the pass itself. It does not consider if the analysis has an internal state that depend on other analyses. Thus, we need to implement LoopAccessInfoManager::invalidate in order to catch if LoopAccessAnalysis needs to be invalidated due to transitive analyses such as AAManager is being invalidated. Otherwise we might end up having references to an AAManager that is stale. Fixes https://github.com/llvm/llvm-project/issues/61324 Differential Revision: https://reviews.llvm.org/D146206
-
Bjorn Pettersson authored
The MemoryDependenceAnalysis/invalidation.ll test case was using ; CHECK-NOT-AA-INVALIDATE: but I think the intention was to use ; CHECK-AA-INVALIDATE-NOT: Simply changing the checks like that would make the test fail. The old statement that AA being stateless would result in nothing to invalidate when doing invalidate<aa> is not true afaict. It would be different if for example doing invalidate<basic-aa>, then the AAManager isn't invalidated (and then neither memdep would be invalidated). But when the AAManager itself is invalidated then we should expect to find both "Invalidating analysis: AAManager" and "Invalidating analysis: MemoryDependenceAnalysis" in the output. Differential Revision: https://reviews.llvm.org/D146205
-
Xi Ruoyao authored
GNU assembler mandates armv8.5-a for memtag instructions. Maybe we should remove this restriction in GNU assembler, but let's work around it for current GNU Binutils releases. Differential Revision: https://reviews.llvm.org/D146109
-
Hans Wennborg authored
As pointed out in D133835 these globals will never be written to (they're only used for trivially copyable types), so they can always be constant. Differential revision: https://reviews.llvm.org/D146211
-
Chuanqi Xu authored
won't get generated again As the test shows, we don't want to see the specialized function bodies if it is already contained in the imported modules. So we can save a lot of compiling time then.
-