- Feb 25, 2022
-
-
Xiaodong Liu authored
Reviewed By: benshi001, uweigand Differential Revision: https://reviews.llvm.org/D120541
-
Michael Forster authored
This reverts commit 3e3e79a9. MemorySanitizer: use-of-uninitialized-value
-
Michel Weber authored
This patch refactors the looping strategy of coalesce for future patches. The new strategy works in-place and uses IneqType to organize inequalities into vectors of the same type. Future coalesce cases will pattern match on this organization. E.g. the contained case needs all inequalities and equalities to be redundant, so this case becomes checking whether the respective vectors are empty. For other cases, the patterns consider the types of all inequalities of both sets making it wasteful to only consider whether a can be coalesced with b in one step, as inequalities would need to be typed again for the opposite case. Therefore, the new strategy tries to coalesce a with b and b with a in a single step. Reviewed By: Groverkss, arjunp Differential Revision: https://reviews.llvm.org/D120392
-
Haocong.Lu authored
With the condition N->use_empty(), the root node of DAG always misses peephole optimization. So a dummy node is needed. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D119934
-
LLVM GN Syncbot authored
-
Aaron Ballman authored
This reverts commit 29b512ba. This broke several build bots: https://lab.llvm.org/buildbot/#/builders/86/builds/30183 https://lab.llvm.org/buildbot/#/builders/216/builds/488
-
Nikita Popov authored
We fail to merge the icmps here, because the zero-offset access does not go through a GEP.
-
Muhammad Omair Javaid authored
This patch marks TestUnambiguousTailCalls.py as XFAIL on Arm/Linux. Test started failing after 3c4ed026. Differential Revision: https://reviews.llvm.org/D120305
-
Groverkss authored
This patch replaces various functions over inequalities/equalities in IntegerPolyhedron with Matrix functions already implementing them or refactors them to a Matrix function. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D120482
-
LLVM GN Syncbot authored
-
Balázs Kéri authored
Add a checker to maintain the system-defined value 'errno'. The value is supposed to be set in the future by existing or new checkers that evaluate errno-modifying function calls. Reviewed By: NoQ, steakhal Differential Revision: https://reviews.llvm.org/D120310
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D120340
-
Momchil Velikov authored
This patch is in preparation for the async unwind CFI. Move the emission of the shadow call stack prologue/epilogue instructions to the `emitPrologue`/`emitEpilogue`. This greatly simplifies especially epilogue generation and makes unnecessary some quite fragile code, that tries to skip over those Reviewed By: MaskRay, efriedma Differential Revision: https://reviews.llvm.org/D112329
-
Nikita Popov authored
-
Sven van Haastregt authored
`cl_khr_3d_image_writes` should not guard `read_only image3d_t`.
-
Muhammad Omair Javaid authored
This patch removes XFAIL from minidebuginfo-set-and-hit-breakpoint.test. Test started passing after 3c4ed026. Differential Revision: https://reviews.llvm.org/D120305
-
Groverkss authored
This patch moves the Presburger library to a new `presburger` namespace. This allows to shorten some names, helps to avoid polluting the mlir namespace, and also provides some structure. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D120505
-
Nikita Popov authored
Now that we canonicalize SPF min/max to intrinsics, there's no need to canonicalize the structure of the SPF min/max itself anymore. This is conceptually NFC, but in practice does slightly impact results due to folding order differences.
-
Groverkss authored
This patch removes redundant code from fourierMotzkinEliminate implementation using existing functions in IntegerPolyhedron. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D120502
-
Andrzej Warzynski authored
This patch adds support for: * `--target` in the compiler driver (`flang-new`) * `--triple` in the frontend driver (`flang-new -fc1`) The semantics of these flags are inherited from `clangDriver`, i.e. consistent with `clang --target` and `clang -cc1 --triple`, respectively. A new structure is defined, `TargetOptions`, that will hold various Frontend options related to the target. Currently, this is mostly a placeholder that contains the target triple. In the future, it will be used for storing e.g. the CPU to tune for or the target features to enable. Additionally, the following target/triple related options are enabled [*]: `-print-effective-triple`, `-print-target-triple`. Definitions in Options.td are updated accordingly and, to facilated testing, `-emit-llvm` is added to the list of options available in `flang-new` (previously it was only enabled in `flang-new -fc1`). [*] These options were actually available before (like all other options defined in `clangDriver`), but not included in `flang-new --help`. Before this change, `flang-new` would just use `native` for defining the target, so these options were of little value. Differential Revision: https://reviews.llvm.org/D120246
-
Iain Sandoe authored
Partition implementations are special, they generate a CMI, but it does not have an 'export' line, and we cannot export anything from the it [that is it can only make decls available to other members of the owning module, not to importers of that]. Add initial testcases for partition handling, derived from the examples in Section 10 of the C++20 standard, which identifies what should be accepted and/or rejected. Differential Revision: https://reviews.llvm.org/D118587
-
Hsiangkai Wang authored
There is no need to prefix '#' for element index in PSEL. This is a follow up of D111213. Differential Revision: https://reviews.llvm.org/D120543
-
Nikita Popov authored
-
Nikita Popov authored
As this method now exists on CallBase, use it rather than the one on AttributeList.
-
Simon Pilgrim authored
Revert rG87753ceb "[X86] combineX86ShufflesRecursively - don't both widening inputs before calling combineX86ShuffleChain" Reverting while we investigate codegen regression reports
-
Jason Molenda authored
In the changes Jonas made in https://reviews.llvm.org/D117340 , a small oversight was that PlatformMacOSX (despite the name) is active for any native Darwin operating system, where lldb and the target process are running on the same system. This patch uses compile-time checks to return the appropriate OSType for the OS lldb is being compiled to, so the "host" platform will correctly be selected when lldb & the inferior are both running on that OS. And a small change to PlatformMacOSX::GetSupportedArchitectures which adds additional recognized triples when running on macOS but not other native Darwin systems. Differential Revision: https://reviews.llvm.org/D120517 rdar://89247060
-
Nikita Popov authored
Return a read-only view on this set. For the one internal use, directly access ExprValueMap.
-
gysit authored
Previously, OpDSL operation used hardcoded type conversion operations (cast or cast_unsigned). Supporting signed and unsigned casts thus meant implementing two different operations. Type function attributes allow us to define a single operation that has a cast type function attribute which at operation instantiation time may be set to cast or cast_unsigned. We may for example, defina a matmul operation with a cast argument: ``` @linalg_structured_op def matmul(A=TensorDef(T1, S.M, S.K), B=TensorDef(T2, S.K, S.N), C=TensorDef(U, S.M, S.N, output=True), cast=TypeFnAttrDef(default=TypeFn.cast)): C[D.m, D.n] += cast(U, A[D.m, D.k]) * cast(U, B[D.k, D.n]) ``` When instantiating the operation the attribute may be set to the desired cast function: ``` linalg.matmul(lhs, rhs, outs=[out], cast=TypeFn.cast_unsigned) ``` The revsion introduces a enum in the Linalg dialect that maps one-by-one to the type functions defined by OpDSL. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D119718 -
Kristina Bessonova authored
Declaration and definition attributes must match, otherwise it may cause issues on linking. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D120493
-
Nikita Popov authored
SCEVs ExprValueMap currently tracks not only which IR Values correspond to a given SCEV expression, but additionally stores that it may be expanded in the form X+Offset. In theory, this allows reusing existing IR Values in more cases. In practice, this doesn't seem to be particularly useful (the test changes are rather underwhelming) and adds a good bit of complexity. Per https://github.com/llvm/llvm-project/issues/53905, we have an invalidation issue with these offseted expressions. Differential Revision: https://reviews.llvm.org/D120311
-
Neumann Hon authored
This patch extends support for generating huge stack frames on 64-bit XPLINK by implementing the ABI-mandated call to the stack extension routine. Reviewed By: uweigand Differential Revision: https://reviews.llvm.org/D120450
-
Michel Weber authored
This patch removes the `const` from `usingBigM` to enable the implicit copy assignment operator for Simplex. Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D120542
-
Sockke authored
The checker missed a check for a case when the parameter is referenced by an lvalue and this could cause build breakages. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D117090
-
Chenbing Zheng authored
vcpop and vfirst are still useful when VL=0. vcpop equivalents to li 0 and vfirst equivalents to li -1, since no mask elements are active. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D120302
-
Zakk Chen authored
Clang computes the default ABI if -mabi is empty and encode it in LLVM IR module flag since D105555. For correctness, llc need to give the same target-abi (Options.MCOptions.ABIName) with ABI encoded in IR. The getSubtargetImpl already has a check for them only if Options.MCOptions.ABIName is not empty. In order to get more robustness we could have a check for explicit ABI, but now we have two different logic to compute the default ABI. The front-end ABI is defautl to the ilp32/ilp32e/lp64, and ilp32d/lp64d when hardware support for extension D. The backend ABI is default to the ilp32/ilp32e/lp64. Reviewed by: asb, jrtc27 Differential Revision: https://reviews.llvm.org/D118333
-
Anton Afanasyev authored
Erase phi-nodes from `InstInfoMap` before erasing themselves
-
Anton Afanasyev authored
Expand `TruncInstCombine` to handle loops by adding `phi` nodes to expression graph. Reviewed by: RKSimon, lebedev.ri (recommit of fixed f84d732f, reverted by 8ad6d5e4 after sanitizer breakage) Differential Revision: https://reviews.llvm.org/D109817
-
Shangwu Yao authored
(resubmit https://reviews.llvm.org/D119207 after fixing the test for some build settings) This patch converts CUDA pointer kernel arguments with default address space to CrossWorkGroup address space (__global in OpenCL). This is because Generic or Function (OpenCL's private) is not supported as storage class for kernel pointer types. Differential revision: https://reviews.llvm.org/D120366
-
Raúl Peñacoba authored
GCC's compiled with --enable-version-specific-runtime-libs change the paths where includes and libs are found. This patch adds support for these cases Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D118700
-
Vitaly Buka authored
-