- Feb 25, 2022
-
-
gysit authored
Split arithmetic function into unary and binary functions. The revision prepares the introduction of unary and binary function attributes that work similar to type function attributes. Depends On D120108 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D120109
-
Whisperity authored
[clang-tidy] Fix `readability-suspicious-call-argument` crash for arguments without name-like identifier As originally reported by @steakhal in http://github.com/llvm/llvm-project/issues/54074, the name extraction logic of `readability-suspicious-call-argument` crashes if the argument passed to a function was a function call to a non-trivially named entity (e.g. an operator). Fixed this crash case by ignoring such constructs and considering them as having no name. Reviewed By: aaron.ballman, steakhal Differential Revision: http://reviews.llvm.org/D120555
-
Bixia Zheng authored
This change allows the use of scalar tensors with index 0 in tensor index expressions. In this case, the scalar value is broadcast to match the dimensions of other tensors in the same expression. Using scalar tensors as a destination in tensor index expressions is not supported in the PyTACO DSL. Add a PyTACO test to show the use of scalar tensors. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D120524
-
Sam Clegg authored
For the object file writer we need to allow the underflow (ar write zero), but for the final linker output we should probably generate an error (I've left that as a TODO for now). Fixes: https://github.com/llvm/llvm-project/issues/54012 Differential Revision: https://reviews.llvm.org/D120522
-
Sam Clegg authored
Also increase coverage of call_indirect via explict function table (enabled when reference types is enabled) in llvm/test/CodeGen/WebAssembly/call-indirect.ll (I believe this was an oversight that it was not added in https://reviews.llvm.org/D90948) Differential Revision: https://reviews.llvm.org/D120521
-
gysit authored
Prepare the OpDSL function handling to introduce more function classes. A follow up commit will split ArithFn into UnaryFn and BinaryFn. This revision prepares the split by adding a function kind enum to handle different function types using a single class on the various levels of the stack (for example, there is now one TensorFn and one ScalarFn). Depends On D119718 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D120108
-
Stefan Pintilie authored
It seems that we are using wchar_t in __estimate_column_width and assume that it is a 32 bit type. However, on AIX 32 the size of wchar_t is only 16 bits. Changed wchar_t to uint32_t since the variable is being passed to a function that uses uint32_t anyway. Reviewed By: hubert.reinterpretcast, daltenty, Mordante, #libc, Quuxplusone Differential Revision: https://reviews.llvm.org/D119770
-
LLVM GN Syncbot authored
-
Stanislav Gatev authored
This is part of the implementation of the dataflow analysis framework. See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev. Reviewed-by: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D120289
-
Simon Pilgrim authored
We already have a check for !InstQueries.empty(), so move the for-range over InstQueries inside to avoid the AAReachability uninitialized variable static analysis warnings.
-
Aaron Ballman authored
This prepares the clang-tools-extra project for -Wstrict-prototypes being enabled by default.
-
Arjun P authored
Also use empty() instead of size() == 0.
-
Simon Pilgrim authored
-
Pawe Bylica authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D120435
-
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
-