- Apr 23, 2022
-
-
Florian Hahn authored
We already know that we will construct a SCEVConstant. Directly use getConstant, rather than going through getSCEV.
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D124324
-
Matthias Springer authored
Run `one-shot-bufferize` instead of `linalg-comprehensive-module-bufferize` and move some test cases to their respective dialects. Differential Revision: https://reviews.llvm.org/D124323
-
Iain Sandoe authored
Allow an invocation like clang -fmodule-header bar.h (which will be a C++ compilation, but using a header which will be recognised as a C one). Also we do not want to produce: "treating 'c-header' input as 'c++-header' when in C++ mode" diagnostics when the user has been specific about the intent. Differential Revision: https://reviews.llvm.org/D121590
-
River Riddle authored
Now that dialect constructors are generated in the .cpp file, we can drop all of the dependent dialect includes from the .h file. Differential Revision: https://reviews.llvm.org/D124298
-
River Riddle authored
By generating in the .h file, we were forcing dialects to include a lot of additional header files because: * Fields of the dialect, e.g. std::unique_ptr<>, were unable to use forward declarations. * Dependent dialects are loaded in the constructor, requiring the full definition of each dependent dialect (which, depending on the file structure of the dialect, may include the operations). By generating in the .cpp we get much faster builds, and also better align with the rest of the code base. Fixes #55044 Differential Revision: https://reviews.llvm.org/D124297
-
Alok Kumar Sharma authored
In case of OpenMP programs, thread local variables can be present in any clause pertaining to OpenMP constructs, as we know that compiler generates artificial functions and in some cases values are passed to those artificial functions thru parameters. For an example, if thread local variable is present in copyin clause (testcase attached with the patch), parameter with same name is generated as parameter to artificial function. When user inquires the thread Local variable, its debug info is hidden by the parameter. User never gets the actual TLS variable when inquires it, instead gets the artificial parameter. Current patch suppresses the debug info for such artificial parameter to enable correct debugging of TLS variables. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D123787
-
Vitaly Buka authored
-
Vitaly Buka authored
Revent acidentally deleted lines. This reverts commit ff25f694.
-
Chang-Sun Lin Jr authored
[NFC][LAA] Match-up type sizes for possible extensions, based on actual bit-size rather than rounded-up byte size. Differential Revision: https://reviews.llvm.org/D119200
-
Vitaly Buka authored
-
Enna1 authored
Fix mismatched-new-delete in asan test unaligned_loads_and_stores.cpp Reviewed By: vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D124268
-
Akira Hatanaka authored
`_HAS_STATIC_RTTI` should be set to 0 only by `-fno-rtti` according to the summary of https://reviews.llvm.org/D103771. rdar://92039243 Differential Revision: https://reviews.llvm.org/D124312
-
Zakk Chen authored
In D123418 we removed some RUN line (ex. RV32-ELEN16) but their expected results still exist there. Remove them and rename prefix for more descriptive. Reviewed By: frasercrmck, asb, craig.topper Differential Revision: https://reviews.llvm.org/D124179
-
Vitaly Buka authored
The patch does not fix the bot. This reverts commit 62b78a06.
-
Vitaly Buka authored
It's not clear how ready it's there.
-
Vitaly Buka authored
-
Valery N Dmitriev authored
Minor refactoring to reduce size of functional change D124309: look-ahead scoring routines pulled out of VLOperands and formed new LookAheadHeuristics helper class. Reviewed By: Alexey Bataev (ABataev), Vasileios Porpodas (vporpo) Differential Revision: https://reviews.llvm.org/D124313
-
Dan Liew authored
This reverts commit 3469cb14. Relanding the patch on behalf of Byoungchan Lee. The original patch (8a3afc6d) was reverted because it appeared to be landed without the approval of an Apple engineer. After internal discussion we're happy for this to land and I've formally approved the patch in phabricator (https://reviews.llvm.org/D119174). rdar://92134140
-
Vincent Lee authored
It seems like we are overly asserting when running `-dead_strip` with exported symbols. ld64 treats exported private extern symbols as a liveness root. Loosen the assert to match ld64's behavior. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D124143
-
Volodymyr Sapsai authored
-
Ben Barham authored
Assuming `ns::foo` doesn't exist, given: ``` using ns::foo __attribute__((using_if_exists)); ``` The AST will look something like: UsingDecl UsingShadowDecl UnresolvedUsingIfExistsDecl Thus we end up adding a reference to `UnresolvedUsingIfExistsDecl` when processing `UsingDecl`, but never add the decl itself. In this case the decl is really the `UsingDecl` anyway though (which we do output), so it makes more sense to just remove the extra reference. Differential Revision: https://reviews.llvm.org/D124288 -
Vitaly Buka authored
-
Vitaly Buka authored
-
Dan Liew authored
This reverts commit 8a3afc6d. The commit being was landed without review from any Apple engineers which is problematic because the patch only affects Apple platforms. rdar://92134140
-
Peter Klausler authored
When PAD='NO' and ADVANCE='YES', we currently signal an input error when a formatted read tries to go past the end of a record only when a fixed RECL= is in effect. Other compilers will signal an error without RECL= too, and that seems like a precedent we should follow. Differential Revision: https://reviews.llvm.org/D124301
-
Peter Klausler authored
Ew.d and Dw.d output edit descriptors should respect limitations from the standard on the value of a kP scale factor with respect to the digit count (d), at least for values of k other than zero. Differential Revision: https://reviews.llvm.org/D124300
-
Volodymyr Sapsai authored
Differential Revision: https://reviews.llvm.org/D121176
-
Shoaib Meenai authored
We were previously only omitting the original of a wrapped symbol if it was not used by an object file and undefined. We can tighten the second condition to drop any symbol that isn't defined instead, which lets us drop a previous check (added in https://reviews.llvm.org/D118756) that was only covering some such symbols. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D124065
-
Richard authored
Modernize-macro-to-enum shouldn't try to convert macros to enums when they are defined inside a declaration or definition, only when the macros are defined at the top level. Since preprocessing is disconnected from AST traversal, match nodes in the AST and then invalidate source ranges spanning AST nodes before issuing diagnostics. ClangTidyCheck::onEndOfTranslationUnit is called before PPCallbacks::EndOfMainFile, so defer final diagnostics to the PPCallbacks implementation. Differential Revision: https://reviews.llvm.org/D124066 Fixes #54883
-
Shoaib Meenai authored
We were previously not correctly wrapping symbols that were only produced during LTO codegen and unreferenced before then, or symbols only referenced from such symbols. The root cause was that we weren't marking the wrapped symbol as used if we only saw the use after LTO codegen, leading to the failed wrapping. Fix this by explicitly tracking whether a symbol will become referenced after wrapping is done. We can use this property to tell LTO to preserve such symbols, instead of overload isUsedInRegularObj for this purpose. Since we're no longer setting isUsedInRegularObj for all symbols which will be wrapped, its value at the time of performing the wrapping in the symbol table will accurately reflect whether the symbol was actually used in an object (including in an LTO-generated object), and we can propagate that value to the wrapped symbol and thereby ensure we wrap correctly. This incorrect wrapping was the only scenario I was aware of where we produced an invalid PLT relocation, which D123985 started diagnosing, and with it fixed, we lose the test for that diagnosis. I think it's worth keeping the diagnosis though, in case we run into other issues in the future which would be caught by it. Fixes PR50675. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D124056
-
Shoaib Meenai authored
Otherwise they fires for every single file which includes the header, which is very noisy when building. Reviewed By: MaskRay, peter.smith Differential Revision: https://reviews.llvm.org/D124041
-
Peter Klausler authored
Blanks are allowed in more places than I allowed for, and "NAN(foobar)" is allowed to have any parenthesis-balanced characters in parentheses. Update: Fix up old sanity test, then avoid usage of "limit" when null. Differential Revision: https://reviews.llvm.org/D124294
-
Paul Kirth authored
MisExpect diagnostics should not prevent compilation from succeeding, and the assertion is insufficient to prevent division by zero in release builds. This patch addresses that by replacing the assert with an early return. Additionally, it disables MisExpect diagnostics when using sample profiling, since this is the only known case where this error has manifested. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D124302
-
Vasileios Porpodas authored
This reverts commit 7052a0ad.
-
Ye Luo authored
Consider checking whether a pointer has been mapped can be achieved via omp_get_mapped_ptr. omp_target_is_present is more needed to check whether the storage being pointed is mapped. This restore the old behavior of omp_target_is_present before D123093 Fixes https://github.com/llvm/llvm-project/issues/54899 Reviewed By: jdenny Differential Revision: https://reviews.llvm.org/D123891
-
Ye Luo authored
When hwloc is used and is installed outside of the default paths, the omp CMake target needs to provide the needed include path thru the CMake target by adding it with target_include_directories to it, so libompd gets it as well when it defines it's cmake target using target_link_libraries. As suggested in D122667 Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D123888
-
Vitaly Buka authored
By default -fsanitize=address already compiles with this check, why not use it. For compatibly it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0. Reviewed By: eugenis, kda, #sanitizers, hans Differential Revision: https://reviews.llvm.org/D124057
-
Matt Arsenault authored
This was promoting an unset max call frame size to a max call frame size of 0.
-