- Jan 12, 2021
-
-
Joe Nash authored
VOP3 and VOP DPP subroutines to generate input operands and asm strings were essentially copy pasted several times. They are deduplicated to reduce the maintenance burden and allow faster development. Reviewed By: dp Differential Revision: https://reviews.llvm.org/D94102 Change-Id: I76225eed3c33239d9573351e0c8a0abfad0146ea
-
Krzysztof Parzyszek authored
The result cannot be widened, unfortunately, because widening vNi1 would depend on the context in which it appears (i.e. the type alone is not sufficient to tell if it needs to be widened).
-
Sean Dooher authored
Introduce a function attribute 'enforce_tcb' that prevents the function from calling other functions without the same attribute. This allows isolating code that's considered to be somehow privileged so that it could not use its privileges to exhibit arbitrary behavior. Introduce an on-by-default warning '-Wtcb-enforcement' that warns about violations of the above rule. Introduce a function attribute 'enforce_tcb_leaf' that suppresses the new warning within the function it is attached to. Such leaf functions may implement common functionality between the trusted and the untrusted code but they require extra careful audit with respect to their capabilities. Fixes after a revert in 419ef38a: Fix a test. Add workaround for GCC bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274). Attribute the patch appropriately! Differential Revision: https://reviews.llvm.org/D91898
-
Simon Pilgrim authored
Adding missing libcall PLT qualifier
-
Paul Robinson authored
Now that we flush the local value map for every instruction, we don't need any extra flushes for specific cases. Also, LastFlushPoint is not used for anything. Follow-ups to #c161665 (D91734). This reapplies #3fd39d36. Differential Revision: https://reviews.llvm.org/D92338
-
Jonas Paulsson authored
The unused LRMux opcode was removed by 8f8c3817, but a regexp still matched for it in the scheduler files which is now removed. Review: Ulrich Weigand
-
Fangrui Song authored
Fixes PR48681: after LTO, lto.tmp may reference a libcall symbol not in an IR symbol table of any bitcode file. If such a symbol is defined in an archive matched by a --exclude-libs, we don't correctly localize the symbol. Add another `excludeLibs` after `compileBitcodeFiles` to localize such libcall symbols. Unfortunately we have keep the existing one for D43126. Using VER_NDX_LOCAL is an implementation detail of `--exclude-libs`, it does not necessarily tie to the "localize" behavior. `local:` patterns in a version script can be omitted. The `symbol ... has undefined version ...` error should not be exempted. Ideally we should error as GNU ld does. https://issuetracker.google.com/issues/73020933 Reviewed By: psmith Differential Revision: https://reviews.llvm.org/D94280
-
Paul Robinson authored
This option is not used for anything after #c161665 (D91737). This commit reapplies #a474657e.
-
MaheshRavishankar authored
When fusing tensor_reshape ops with generic/indexed_Generic op, new linalg.init_tensor operations were created for the `outs` of the fused op. While correct (technically) it is better to just reshape the original `outs` operands and rely on canonicalization of init_tensor -> tensor_reshape to achieve the same effect. Differential Revision: https://reviews.llvm.org/D93774
-
Thomas Raoux authored
This allow more accurate modeling of the side effects and allow dead code elimination to remove dead transfer ops. Differential Revision: https://reviews.llvm.org/D94318
-
Mircea Trofin authored
Also removed where applicable. Differential Revision: https://reviews.llvm.org/D94385
-
Scott Linder authored
Differential Revision: https://reviews.llvm.org/D94338
-
MaheshRavishankar authored
Reshaping an init_tensor can be folded to a init_tensor op of the final type. Differential Revision: https://reviews.llvm.org/D93773
-
Simon Pilgrim authored
If vpermf128/vpermi128 is acting on 2 similar 'inlane' ops, then try to perform the vpermf128 first which will allow us to merge the ops. This will help us fix one of the regressions in D56387
-
Paul Robinson authored
Local values are constants or addresses that can't be folded into the instruction that uses them. FastISel materializes these in a "local value" area that always dominates the current insertion point, to try to avoid materializing these values more than once (per block). https://reviews.llvm.org/D43093 added code to sink these local value instructions to their first use, which has two beneficial effects. One, it is likely to avoid some unnecessary spills and reloads; two, it allows us to attach the debug location of the user to the local value instruction. The latter effect can improve the debugging experience for debuggers with a "set next statement" feature, such as the Visual Studio debugger and PS4 debugger, because instructions to set up constants for a given statement will be associated with the appropriate source line. There are also some constants (primarily addresses) that could be produced by no-op casts or GEP instructions; the main differ...
-
Paul Robinson authored
There were a number of tests needing updates for D91734, and I added a bunch of LABEL directives to help track down where those had to go. These directives are an improvement independent of the functional patch, so I'm committing them as their own separate patch.
-
Nathan James authored
This can lead to issues if files in the tmp directory we don't care about / control are found. This was partially addressed in D94321, but this is a more permanent fix. Fixes https://github.com/clangd/clangd/issues/354 Reviewed By: adamcz, sammccall Differential Revision: https://reviews.llvm.org/D94359
-
Giorgis Georgakoudis authored
The existing implementation of parallel region merging applies only to consecutive parallel regions that have speculatable sequential instructions in-between. This patch lifts this limitation to expand merging with any sequential instructions in-between, except calls to unmergable OpenMP runtime functions. In-between sequential instructions in the merged region are sequentialized in a "master" region and any output values are broadcasted to the following parallel regions and the sequential region continuation of the merged region. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D90909
-
- Jan 11, 2021
-
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D94411
-
Ranjeet Singh authored
Differential Revision: https://reviews.llvm.org/D94414
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Remove unnecessary cfi markup
-
Christian Sigg authored
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94402
-
Nico Weber authored
This reverts commit c163aae4. Doesn't compile on some bots (http://lab.llvm.org:8011/#/builders/98/builds/3387/steps/9/logs/stdio), breaks tests on bots where it does compile (http://45.33.8.238/linux/36843/step_7.txt).
-
Florian Hahn authored
This patch unifies the way recipes and VPValues are printed after the transition to VPDef. VPSlotTracker has been updated to iterate over all recipes and all their defined values to number those. There is no need to number values in Value2VPValue. It also updates a few places that only used slot numbers for VPInstruction. All recipes now can produce numbered VPValues.
-
Artem Dergachev authored
Introduce a function attribute 'enforce_tcb' that prevents the function from calling other functions without the same attribute. This allows isolating code that's considered to be somehow privileged so that it could not use its privileges to exhibit arbitrary behavior. Introduce an on-by-default warning '-Wtcb-enforcement' that warns about violations of the above rule. Introduce a function attribute 'enforce_tcb_leaf' that suppresses the new warning within the function it is attached to. Such leaf functions may implement common functionality between the trusted and the untrusted code but they require extra careful audit with respect to their capabilities. Differential Revision: https://reviews.llvm.org/D91898
-
Joe Ellis authored
This avoids TypeSize-/ElementCount-related warnings. Differential Revision: https://reviews.llvm.org/D92747
-
Lei Zhang authored
Linalg ops are perfect loop nests. When materializing the concrete loop nest, the default order specified by the Linalg op's iterators may not be the best for further CodeGen: targets frequently need to plan the loop order in order to gain better data access. And different targets can have different preferences. So there should exist a way to control the order. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D91795
-
Lei Zhang authored
With this, now we can specify a list of attributes on named ops generated from the spec. The format is defined as ``` attr-id ::= bare-id (`?`)? attr-typedef ::= type (`[` `]`)? attr-def ::= attr-id `:` attr-typedef tc-attr-def ::= `attr` `(` attr-def-list `)` tc-def ::= `def` bare-id `(`tensor-def-list`)` `->` `(` tensor-def-list`)` (tc-attr-def)? ``` For example, ``` ods_def<SomeCppOp> def some_op(...) -> (...) attr( f32_attr: f32, i32_attr: i32, array_attr : f32[], optional_attr? : f32 ) ``` where `?` means optional attribute and `[]` means array type. Reviewed By: hanchung, nicolasvasilache Differential Revision: https://reviews.llvm.org/D94240
-
Andrzej Warzynski authored
The following frontend driver invocation will generate 2 output files in the same directory as the input files: ``` flang-new -fc1 input-1.f input-2.f ``` This is the desired behaviour. However, when testing we need to make sure that we don't pollute the source directory. To this end, copy test input files into a temporary directory. Differential Revision: https://reviews.llvm.org/D94243
-
Christian Sigg authored
Do not cache gpu.async.token type so that the pass can be created before the GPU dialect is registered. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94397
-
Christian Sigg authored
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94400
-
Jay Foad authored
-
Stephan Herhut authored
This adds uses for locals introduced for new debug messages for the load store optimizer. Those locals are only used on debug statements and otherwise create unused variable warnings. Differential Revision: https://reviews.llvm.org/D94398
-
Simon Pilgrim authored
These are often generated when building a vector from the reduction sums of independent vectors. I've implemented some typical patterns from various v4f32/v4i32 based off current codegen emitted from the vectorizers, although these tests are more about tweaking some hadd style backend folds to handle whatever the vectorizers/vectorcombine throws at us...
-
Pavel Labath authored
This test seems to be broken there (which is not totally surprising as this functionality was never used on windows). Disable the test while I investigate.
-
Georgii Rymar authored
It has multiple issues fixed by this patch: 1) It shouldn't test how llvm-readelf/yaml2obj works. 2) It should use "-NEXT" prefix for check lines. 3) It can use YAML macros, that allows to use a single YAML. 4) It should probably test the case when a group member is a null section. Differential revision: https://reviews.llvm.org/D93753
-
Florian Hahn authored
This means there will be no stray " when printing individual recipes using print()/dump() in a debugger, for example.
-
Georgii Rymar authored
As was mentioned in comments here: https://reviews.llvm.org/D92636#inline-864967 we are not consistent and sometimes index things from 0, but sometimes from 1 in warnings. This patch fixes 2 places: messages reported for program headers and messages reported for relocations. Differential revision: https://reviews.llvm.org/D93805
-
Joe Ellis authored
VLST return values are coerced to VLATs in the function epilog for consistency with the VLAT ABI. Previously, this coercion was done through memory. It is preferable to use the llvm.experimental.vector.insert intrinsic to avoid going through memory here. Reviewed By: c-rhodes Differential Revision: https://reviews.llvm.org/D94290
-