- Jun 20, 2022
-
-
David Green authored
Although this doesn't usually come up, we can have uses of the BaseAccess of a distributed postinc being a PHI. This doesn't need the usual dominance check as we will dominate along the phi edge, allowing us to still create a postinc load/store. Differential Revision: https://reviews.llvm.org/D127676
-
Sven van Haastregt authored
For certain cases (such as for the double subtype of AGenType), the OpenCLBuiltinFileEmitterBase would not emit the extension #if-guard. Fix that by looking at the extension of the actual type instead of the argument type (which could be a GenType that does not carry any extension information).
-
Alex Richardson authored
By adding noinline and calling fprintf before returning we ensure that every function will have a distinct call frame and that the return address will always be saved instead of saving the target in main as the result. Before this change all backtraces were always backtrace -> main -> _start, i.e. always exactly three entries. This happenend because all calls were inlined in main() and the test just happenend to pass because there is at least _start before main. I found this while fixing some bugs in libunwind for CHERI and noticed that the test was passing even though the code was completely broken. Obtained from: https://github.com/CTSRD-CHERI/llvm-project Reviewed By: #libunwind, ldionne, MaskRay Differential Revision: https://reviews.llvm.org/D126611
-
Jan Svoboda authored
We observed a failed assert in overloaded compound-assignment operator resolution: ``` Assertion failed: (Result.isInvalid() && "C++ binary operator overloading is missing candidates!"), function CreateOverloadedBinOp, file SemaOverload.cpp, line 13944. ... frame #4: clang` clang::Sema::CreateOverloadedBinOp(..., Opc=BO_OrAssign, ..., PerformADL=true, AllowRewrittenCandidates=false, ...) at SemaOverload.cpp:13943 frame #5: clang` BuildOverloadedBinOp(..., Opc=BO_OrAssign, ...) at SemaExpr.cpp:15228 frame #6: clang` clang::Sema::BuildBinOp(..., Opc=BO_OrAssign, ...) at SemaExpr.cpp:15330 frame #7: clang` clang::Sema::ActOnBinOp(..., Kind=pipeequal, ...) at SemaExpr.cpp:15187 frame #8: clang` clang::Parser::ParseRHSOfBinaryExpression(..., MinPrec=Assignment) at ParseExpr.cpp:629 frame #9: clang` clang::Parser::ParseAssignmentExpression(..., isTypeCast=NotTypeCast) at ParseExpr.cpp:176 frame #10: clang` clang::Parser::ParseExpression(... isTypeCast=NotTypeCast) at ParseExpr.cpp:124 frame #11: clang` clang::Parser::ParseExprStatement(...) at ParseStmt.cpp:464 ``` A simple reproducer is: ``` _Atomic unsigned an_atomic_uint; enum { an_enum_value = 1 }; void enum1() { an_atomic_uint += an_enum_value; } ``` This patch fixes the issue by generating builtin operator overloads for (volatile) _Atomic types. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D125349 -
Guillaume Chatelet authored
`llvm::max(Align, MaybeAlign)` and `llvm::max(MaybeAlign, Align)` are not used often enough to be required. They also make the code more opaque. Differential Revision: https://reviews.llvm.org/D128121
-
Guillaume Chatelet authored
-
Nikita Popov authored
When threading, we always create a new block for the threaded edge (even if the edge is not critical), which will later get folded back into the predecessor if possible. Depending on precise processing order, this separate block may break the detection of trivial cycles in the threading code, which normally avoids infinite threading of loops. Explicitly merge the created edge block into the predecessor to avoid this. Fixes https://github.com/llvm/llvm-project/issues/55765. Differential Revision: https://reviews.llvm.org/D127216
-
LLVM GN Syncbot authored
-
Chuanqi Xu authored
Symmetric transfer is not a part of C++ standards. So the vendors is not forced to implement it any way. Given the symmetric transfer nowadays is an optimization. It makes more sense to enable it only if the optimization is enabled. It is also helpful for the compilation speed in O0.
-
Alex Zinenko authored
This aligns the SCF dialect file layout with the majority of the dialects. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D128049
-
Daniil Dudkin authored
Instead of manually checking for procedure-like details in Symbol, defer it to IsProcedure function. Differential Revision: https://reviews.llvm.org/D127967
-
Balázs Kéri authored
Extend checker 'ErrnoModeling' with a state of 'errno' to indicate the importance of the 'errno' value and how it should be used. Add a new checker 'ErrnoChecker' that observes use of 'errno' and finds possible wrong uses, based on the "errno state". The "errno state" should be set (together with value of 'errno') by other checkers (that perform modeling of the given function) in the future. Currently only a test function can set this value. The new checker has no user-observable effect yet. Reviewed By: martong, steakhal Differential Revision: https://reviews.llvm.org/D122150
-
Marco Antognini authored
Instead of assuming there is an HTML file for each diagnostics, consider the HTML files only when they exist, individually of each other. After generating the reference data, running python /scripts/SATest.py build --projects simbody was resulting in this error: File "/scripts/CmpRuns.py", line 250, in read_single_file assert len(d['HTMLDiagnostics_files']) == 1 KeyError: 'HTMLDiagnostics_files' Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D126197 -
Marco Antognini authored
Solve build issues occurring when running `docker build`. Fix the version of cmake-data to solve the following issue: The following packages have unmet dependencies: cmake : Depends: cmake-data (= 3.20.5-0kitware1) but 3.23.1-0kitware1ubuntu18.04.1 is to be installed Install libjpeg to solve this issue when installing Python requirements: The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D126196
-
Simon Pilgrim authored
Similar to the existing (shl (srl x, c1), c2) fold Part of the work to fix the regressions in D77804 Differential Revision: https://reviews.llvm.org/D125836
-
Diana Picus authored
When linking a Fortran program, we need to add the runtime libraries to the command line. This is exactly what we do for Linux/Darwin, but the MSVC interface is slightly different (e.g. -libpath instead of -L). We also remove oldnames and libcmt, since they're not needed at the moment and they bring in more dependencies. We also pass `/subsystem:console` to the linker so it can figure out the right entry point. This is only needed for MSVC's `link.exe`. For LLD it is redundant but doesn't hurt. Differential Revision: https://reviews.llvm.org/D126291 Co-authored-by:
Markus Mützel <markus.muetzel@gmx.de>
-
Jay Foad authored
This is a temporary measure to avoid generating incorrect code until the compiler understands the new way that GFX11 encodes 16-bit operands in VOP instructions. Differential Revision: https://reviews.llvm.org/D128054
-
Adrian Kuegel authored
-
Lian Wang authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D127710
-
Stanislav Gatev authored
Extend flow condition in the body of a for loop. Differential Revision: https://reviews.llvm.org/D128060
-
chenglin.bi authored
-
Chenbing Zheng authored
Reviewed By: spatel, RKSimon Differential Revision: https://reviews.llvm.org/D127398
-
Craig Topper authored
-
Weining Lu authored
These operations include `sext`, `zext` and `trunc`. Reference: https://llvm.org/docs/LangRef.html#conversion-operations Differential Revision: https://reviews.llvm.org/D127204
-
Kazu Hirata authored
-
Weining Lu authored
Differential Revision: https://reviews.llvm.org/D127206
-
Weining Lu authored
Reference: https://llvm.org/docs/LangRef.html#bitwise-binary-operations https://llvm.org/docs/LangRef.html#other-operations The reason why other operations are implemented here is that some bitwise binary operations depend on them. For example, on loongarch32, `shl` over i64 data requires `select`. Differential Revision: https://reviews.llvm.org/D127203
-
Weining Lu authored
Reference: https://llvm.org/docs/LangRef.html#fneg-instruction Differential Revision: https://reviews.llvm.org/D127200
-
Weining Lu authored
These binary operations include sub/fadd/fsub/fmul/fdiv. Others ops like mul/udiv/sdiv/urem/srem would be added later since they depend on `shift` and `truncate` that have not been supported. Note `add` has been added in a previous patch. Reference: https://llvm.org/docs/LangRef.html#binary-operations Differential Revision: https://reviews.llvm.org/D127199
-
Nico Weber authored
This is all dead code that we forgot to delete in https://reviews.llvm.org/D114842 Differential Revision: https://reviews.llvm.org/D128147
-
Kazu Hirata authored
Since Optional<clang::FileEntryRef> uses a custom storage class, this patch adds value to MapEntryOptionalStorage.
-
Kazu Hirata authored
This patch switches to has_value within Optional. Since Optional<clang::FileEntryRef> uses custom storage class, this patch adds has_entry to MapEntryOptionalStorage.
-
lewuathe authored
Add conversion for complex.conj to libm call Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D127473
-
Maksim Panchenko authored
Add functionality to allow splitting code with C++ exceptions in shared libraries and PIEs. To overcome a limitation in exception ranges format, for functions with fragments spanning multiple sections, add trampoline landing pads in the same section as the corresponding throwing range. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D127936
-
Arthur Eubanks authored
The only place we modify the CFG is when calling removeUnreachableBlocks(), so insert a callback there which invalidates analyses for that function (or recomputes DT in the legacy PM). Small compile time wins across the board: https://llvm-compile-time-tracker.com/compare.php?from=f444ea8ce0aaaa5ec1a4129809389da15cc41396&to=698f41f4fc26cbf1006ed5d88e9d658edfc5b749&stat=instructions Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D128145
-
Craig Topper authored
The VT we want to shrink to may not be legal especially after type legalization. Fixes PR56110. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D128135
-
Nico Weber authored
-
Nico Weber authored
-
Nico Weber authored
Patch created by running: rg -l parallelForEachN | xargs sed -i '' -c 's/parallelForEachN/parallelFor/' No behavior change. Differential Revision: https://reviews.llvm.org/D128140
-
Siva Chandra Reddy authored
This reverts commit 2846c2bb. The reason for the disable is not relevant anymore.
-