- Dec 16, 2021
-
-
jacquesguan authored
When have Zbs extension, we could use bexti to fold (and (not (srl X, C)), 1) to (xor (bexti X, C), 1). Differential Revision: https://reviews.llvm.org/D115629
-
Fangrui Song authored
-
Siva Chandra Reddy authored
The signal.h header file from LLVM libc is incorrect. The signal API and its users will be enabled once signal.h is fixed.
-
Fangrui Song authored
Everyone uses -l -L instead of the long option counterparts. Make help messages attach to -L -l and (--reproduce) use them for response.txt command line options.
-
eopXD authored
ScalarEvolution::applyLoopGuards shall do the work. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D115784
-
River Riddle authored
-
River Riddle authored
-
Ellis Hoag authored
The function `expandBundle()` is defined both in `llvm-dwarfdump.cpp` and `llvm-gsymutil.cpp` in the exact same way. Reduce code duplication by moving this function to the `MachOObjectFile` class. Reviewed By: jhenderson, clayborg Differential Revision: https://reviews.llvm.org/D115418
-
jacquesguan authored
According to the v-spec, the source and destination VR of vmv<nr>r.v should be aligned for the VR group size. Differential Revision: https://reviews.llvm.org/D115720
-
Matthias Springer authored
This allows op interface implementations to make decisions based on dialect-specific bufferization state. This is in preparation of fixing conflict detection of CallOps in ModuleBufferization. Differential Revision: https://reviews.llvm.org/D115705
-
minglotus-6 authored
Differential Revision: https://reviews.llvm.org/D115648
-
Fangrui Song authored
Calling `Allocate` with 0 size (when .symtab is absent, e.g. `invalid/mips-invalid-options-descriptor.test`) may return a nullptr, which will crash with -fsanitize=null (the underlying `Allocate` function is LLVM_ATTRIBUTE_RETURNS_NONNULL).
-
River Riddle authored
The `rewrite` statement allows for rewriting a given root operation with a block of nested rewriters. The root operation is not implicitly erased or replaced, and any transformations to it must be expressed within the nested rewrite block. The inner body may contain any number of other rewrite statements, variables, or expressions. Differential Revision: https://reviews.llvm.org/D115299
-
River Riddle authored
This statement acts as a companion to the existing `erase` statement, and is the corresponding PDLL construct for the `PatternRewriter::replaceOp` C++ API. This statement replaces a given operation with a set of values. Differential Revision: https://reviews.llvm.org/D115298
-
River Riddle authored
Tuples are used to group multiple elements into a single compound value. The values in a tuple can be of any type, and do not need to be of the same type. There is also no limit to the number of elements held by a tuple. Tuples will be used to support multiple results from Constraints and Rewrites (added in a followup), and will also make it easier to support more complex primitives (such as range based maps that can operate on multiple values). Differential Revision: https://reviews.llvm.org/D115297
-
River Riddle authored
An operation expression in PDLL represents an MLIR operation. In the match section of a pattern, this expression models one of the input operations to the pattern. In the rewrite section of a pattern, this expression models one of the operations to create. The general structure of the operation expression is very similar to that of the "generic form" of textual MLIR assembly: ``` let root = op<my_dialect.foo>(operands: ValueRange) {attr = attr: Attr} -> (resultTypes: TypeRange); ``` For now we only model the components that are within PDL, as PDL gains support for blocks and regions so will this expression. Differential Revision: https://reviews.llvm.org/D115296 -
River Riddle authored
This allows for using literal attributes and types within PDLL, which simplifies building both constraints and rewriters. For example, checking if an attribute is true is as simple as `attr<"true">`. Differential Revision: https://reviews.llvm.org/D115295
-
River Riddle authored
This allows for overriding the metadata of a pattern and providing information such as the benefit, bounded recursion, and more in the future. Differential Revision: https://reviews.llvm.org/D115294
-
River Riddle authored
This is a new pattern rewrite frontend designed from the ground up to support MLIR constructs, and to target PDL. This frontend language was proposed in https://llvm.discourse.group/t/rfc-pdll-a-new-declarative-rewrite-frontend-for-mlir/4798 This commit starts sketching out the base structure of the frontend, and is intended to be a minimal starting point for building up the language. It essentially contains support for defining a pattern, variables, and erasing an operation. The features mentioned in the proposal RFC (including IDE support) will be added incrementally in followup commits. I intend to upstream the documentation for the language in a followup when a bit more of the pieces have been landed. Differential Revision: https://reviews.llvm.org/D115093
-
Julian Lettner authored
In the new TSan runtime refactoring this line was changed: ``` ProtectRange(MetaShadowEnd(), TraceMemBeg()); --> ProtectRange(MetaShadowEnd(), HeapMemBeg()); ``` But for `MappingAppleAarch64` the app heap comes before the shadow, resulting in: ``` CHECK failed: tsan_platform_posix.cpp:83 "((beg)) <= ((end))" (0xe00000000, 0x200000000) ``` rdar://86521924 Differential Revision: https://reviews.llvm.org/D115834
-
Fangrui Song authored
The SHT_GNU_version index is 16-bit, so the 32-bit value is a waste. Technically non-default version index 0x7fff uses version index 0xffff, but it is impossible in practice. This change decreases sizeof(SymbolUnion) from 80 to 72 on ELF64 platforms. Memory usage decreases by 1% when linking a large executable.
-
Richard Smith authored
-
Julian Lettner authored
A while ago we added some code to the sanitizer runtimes for iOS simulators to allow `atos` (external process) to inspect the sanitized process during report generation to enable symbolication. This was done by setting the `__check_mach_ports_lookup` env var early during process startup which came with a couple of complications. This workaround is not required anymore and removing it fixes TSan in the iOS simulator after the new TSan runtime landed. (https://reviews.llvm.org/D112603) Relevant/reverted revisions: https://reviews.llvm.org/D78178 https://reviews.llvm.org/D78179 https://reviews.llvm.org/D78525 rdar://86472733 Differential Revision: https://reviews.llvm.org/D115767
-
Arthur O'Dwyer authored
However, there's a problem on both GCC and Clang: they can't mangle `__is_same(T,U)` if it appears anywhere that affects mangling. That's a hard error. And it turns out that GCC puts dependent return types into the mangling more aggressively than Clang, so for GCC's benefit we need to avoid using raw `_IsSame` in the return type of `swap(tuple&, tuple&)`. Therefore, make `__all` into a named type instead of an alias. If we ever need to support a compiler without the __is_same builtin, we can make this an alias template for `is_same<T,U>::type`. Differential Revision: https://reviews.llvm.org/D115100
-
Fangrui Song authored
* Group ".note" section name checks * Move shouldMerge check to the caller
-
Vincent Lee authored
For large applications that write to map files, writing map files can take quite a bit of time. Sorting the biggest contributors to link times, writing map files ranks in at 2nd place, with load input files being the biggest contributor of link times. Avoiding writing map files on the critical path (and having its own thread) saves ~2-3 seconds when linking chromium framework on a 16-Core Intel Xeon W. ``` base diff difference (95% CI) sys_time 1.617 ± 0.034 1.657 ± 0.026 [ +1.5% .. +3.5%] user_time 28.536 ± 0.245 28.609 ± 0.180 [ -0.1% .. +0.7%] wall_time 23.833 ± 0.271 21.684 ± 0.194 [ -9.5% .. -8.5%] samples 31 24 ``` Reviewed By: #lld-macho, oontvoo, int3 Differential Revision: https://reviews.llvm.org/D115416 -
Arthur O'Dwyer authored
-
Fangrui Song authored
-
Yuanfang Chen authored
NFCI.
-
LLVM GN Syncbot authored
-
Eric Schweitz authored
This pass can reclassify memory allocations (fir.alloca, fir.allocmem) based on heuristics and settings. The intention is to allow better performance and workarounds for conditions such as environments with limited stack space. Currently, implements two conversions from stack to heap allocation. 1. If a stack allocation is an array larger than some threshold value make it a heap allocation. 2. If a stack allocation is an array with a runtime evaluated size make it a heap allocation. Add a lit test for both suboptions. Reviewed By: PeteSteinfeld, vdonaldson Differential Revision: https://reviews.llvm.org/D115763 -
Fangrui Song authored
An well-formed IR function definition must have an entry basic block and a well-formed IR basic block must have one terminator so the emptiness check can be simplified. Also simplify the test a bit. Reviewed By: luna Differential Revision: https://reviews.llvm.org/D115780
-
Nico Weber authored
The default hasn't worked in over 9 months now. Getting a friendly error message if this isn't set is more useful than getting a bad default value. Differential Revision: https://reviews.llvm.org/D115833
-
Matt Arsenault authored
-
Matt Arsenault authored
It seems we don't have already have any target specific attributes handled in the inliner. Include a separate tablegen file to define the rules, similar to the target specific intrinsics.
-
Matt Arsenault authored
-
Fangrui Song authored
-
Matt Arsenault authored
This is an optimization, but also fixes a compile failure when no free VGPRs are available. The problem still exists for gfx908 where a scratch register is still required. This also still exists for the SGPR to AGPR case.
-
Matt Arsenault authored
-
Matt Arsenault authored
-