- Aug 18, 2022
-
-
Simon Pilgrim authored
-
Martin Storsjö authored
This shouldn't have any externally visible effect. This matches the new name from 18b4a8bc. Differential Revision: https://reviews.llvm.org/D130701
-
Simon Pilgrim authored
* Replace getUserCost with getInstructionCost, covering all cost kinds. * Remove getInstructionLatency, it's not implemented by any backends, and we should fold the functionality into getUserCost (now getInstructionCost) to make it easier for targets to handle the cost kinds with their existing cost callbacks. Original Patch by @samparker (Sam Parker) Differential Revision: https://reviews.llvm.org/D79483
-
Ties Stuij authored
This patch fixes a crash when trying to emit a constant compound literal. For C++ Clang evaluates either casts or binary operations at translation time, but doesn't pass on the InConstantContext information that was inferred when parsing the statement. Because of this, strict FP evaluation (-ftrapping-math) which shouldn't be in effect yet, then causes checkFloatingpointResult to return false, which in tryEmitGlobalCompoundLiteral will trigger an assert that the compound literal wasn't constant. The discussion here around 'manifestly constant evaluated contexts' was very helpful to me when trying to understand what LLVM's position is on what evaluation context should be in effect, together with the explanatory text in that patch itself: https://reviews.llvm.org/D87528 Reviewed By: rjmccall, DavidSpickett Differential Revision: https://reviews.llvm.org/D131555
-
wanglian authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D132116
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132026
-
Matthias Springer authored
This fixes a bug in SCF/AffineCanonicalizationUtils.cpp. Loop lb/ub were previously considered dimensions, which caused a crash when a (non-optimizable) affine.min / affine.max expression was processed (due to multiplication of two dims). Lb/ub are now considered symbols and symbols may be multiplied. (The scope of the analysis is "within the loop body", at which point lb/ub are constants.) Differential Revision: https://reviews.llvm.org/D132021
-
Simon Pilgrim authored
Pulled out of D79483
-
Simon Pilgrim authored
Pulled out of D79483
-
Dmitry Preobrazhensky authored
Split gfx10_dasm_all.txt by encoding. Differential Revision: https://reviews.llvm.org/D132044
-
Matthias Springer authored
bufferization.to_memref ops are not supported in One-Shot Analysis. They often trigger a failed assertion that can be confusing. Instead, scan for to_memref ops before running the analysis and immediately abort with a proper error message. Differential Revision: https://reviews.llvm.org/D132027
-
zhongyunde authored
Part of the schedule model is not accurate, so need a initial test record the changes. This assemble list is refer to the basic part of D128631 Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D132103
-
Mats Petersson authored
Arrange the operations in alphabetical order, rather than what appears to be the order they were added. This was suggested in a review when adding new operations. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D132046
-
Rainer Orth authored
A number of mlir tests `FAIL` on Solaris/sparcv9 with `Target has no JIT support`. This patch fixes that by mimicing `clang/test/lit.cfg.py` which implements a `host-supports-jit` keyword for this. The gtest-based unit tests don't support `REQUIRES:`, so lack of support needs to be hardcoded there. Tested on `amd64-pc-solaris2.11` (`check-mlir` results unchanged) and `sparcv9-sun-solaris2.11` (only one unrelated failure left). Differential Revision: https://reviews.llvm.org/D131151
-
Uday Bondhugula authored
Remove hardcoded usage of memref.alloc/dealloc ops in affine utils; use memory effects instead. This is NFC for existing test cases, but strictly more general/powerful in terms of functionality: it allows other allocation and freeing ops (like gpu.alloc/dealloc) to work in conjunction with affine ops and utilities. Differential Revision: https://reviews.llvm.org/D132011
-
Güray Özen authored
This commit adds support for 0-D vectors in ReductionOp. Reviewed By: nicolasvasilache, dcaballe Differential Revision: https://reviews.llvm.org/D131896
-
Haohai Wen authored
The X86SchedAlderlakeP.td file is automatically generated by schedtool (D130897). Most of instruction's scheduling information is based on measured ADL-P data in uops.info. Some data is from GLC tpt/lat data provided by intel doc. The rest instruction's scheduling information is from skylake client schedule model in order to get a relative complete model. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D130959
-
Utkarsh Saxena authored
We deferred the evaluation of dependent immediate invocations in https://reviews.llvm.org/D119375 until instantiation. We should also not consider them referenced from a non-consteval context. Fixes: https://github.com/llvm/llvm-project/issues/55601 ``` template<typename T> class Bar { consteval static T x() { return 5; } public: Bar() : a(x()) {} private: int a; }; Bar<int> g(); ``` Is now accepted by clang. Previously it errored with: `cannot take address of consteval function 'x' outside of an immediate invocation Bar() : a(x()) {}` Differential Revision: https://reviews.llvm.org/D132031
-
Vitaly Buka authored
Fixes b/242869837 Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D132068
-
Petr Hosek authored
This reverts commit a4230319. This is causing build failures in the 2-stage build.
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D132006
-
wanglian authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D132107
-
Daniel Bertalan authored
This commit adds the definitions for `dyld_chained_starts_in_image`, `dyld_chained_starts_in_segment`, and related enums. Dumping their contents is possible with the -chained_fixups flag of llvm-otool. The chained-fixups.yaml test was changed to cover bindings/rebases, as well as weak imports, weak symbols and flat namespace symbols. Now that we have actual fixup entries, the __DATA segment contains data that would need to be hexdumped in YAML. We also test empty pages (to look for the "DYLD_CHAINED_PTR_START_NONE" annotation), so the YAML would end up quite large. So instead, this commit includes a binary file. When Apple's effort to upstream their chained fixups code continues, we'll replace this code with the then-upstreamed code. But we need something in the meantime for testing ld64.lld's chained fixups code. Differential Revision: https://reviews.llvm.org/D131961
-
David Blaikie authored
-
Vitaly Buka authored
-
Vitaly Buka authored
Mixing stdout and stderr may break lines we try to match.
-
Valentin Clement authored
Add a proper TODO for the REDUCE instrinsic instead of crashing. Reviewed By: PeteSteinfeld, vdonaldson Differential Revision: https://reviews.llvm.org/D132020
-
WANG Xuerui authored
It's the same as D126181 for RISCV. Differential Revision: https://reviews.llvm.org/D132012
-
Timm Bäder authored
Handle CXX bool literals as well as nullptr literals and add a few tests for each. Differential Revision: https://reviews.llvm.org/D131942
-
WuXinlong authored
This patch adds support for part of Zc extension which will be frozen soon. This extension is designed to continue reducing the binary size of RISC-V programs. In this patch: `Zca` is a subset of C extension instructions that are compatible with the Zc extension. The spec of Zc ext is [[ https://github.com/riscv/riscv-code-size-reduction/releases | Here ]] Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D130141
-
Petr Hosek authored
This implements support for using libc++ headers in MSVC toolchain. We only support libc++ headers that are part of the toolchain, and not headers installed elsewhere on the system. Differential Revision: https://reviews.llvm.org/D101479
-
Amir Ayupov authored
With reduced indentation, some strings can be reformatted to take less lines. Also strategically apply `formatv` to shorten them. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132088
-
Amir Ayupov authored
Split out the body of a for-loop in `RewriteInstance::readRelocations` into a separate function (`handleRelocation`). It's still over 300 lines of code, so it's worth splitting down further. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132078
-
wanglian authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D131941
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Konstantina authored
[NewGVN][PHIOFOPS] Bail out if an operand is in OpSafeForPHIOfOps but it is not safe for the current basic block. NewGVN tables are not cleared out between the initial run of NewGVN and the verification. In case of phi-of-ops optimization, OpSafeForPHIOfOps goes out of sync between the two runs. One operand might not be safe for one basic block, but it might be safe for one of its successors. In this case, the operand will be added in OpSafeForPHIOfOps map. In verification phase, we reuse OpSafeForPHIOfOps without updating it again. As a result, the operand will be considered safe for phi-of-ops optimization even for the case that it is not. This patch fixes this problem. Fix for 53807. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D130910
-
Jakub Kuderski authored
Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D131908
-
Lang Hames authored
Commit 9189a266 caused llvm-jitlink to create bare JITDylibs to wrap real dylibs loaded via -preload. This exposed a bug in MachOPlatform where we assumed that all JITDylibs had been registered with the platform through MachOPlatform::setupJITDylib (bare JITDylibs are _not_ run through this function), and errored out where this was not the case. This bug in MachOPlatform was causing test failures in compilert-rt: Failed Tests (2): ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-objc-methods.S ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-swift-types-section.S This commit fixes the issue by skipping JITDylibs that haven't been registered with the platform via MachOPlatform::setupJITDylib.
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D132091
-