- Sep 02, 2022
-
-
Artem Belevich authored
-fsyntax-only breaks down CUDA compilation pipeline and make it look like multiple independent subcompilations and that trips the multiple arguments check when -o is specified. We do want to allow -fsyntax-only to be used with otherwise unmodified clang options as it's commonly used by various tooling. Differential Revision: https://reviews.llvm.org/D133133
-
Peiming Liu authored
This patch adds SparseTensorStorageExpansion pass, it flattens the tuple used to store a sparse tensor handle. Right now, it only set up the skeleton for the pass, more lowering rules for sparse tensor storage operation need to be added. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D133125
-
Slava Zakharin authored
Instead of using the IV block argument of the do-loop we will use the do-variable value loaded from its location. This usage is consistent with other uses of the do-variable inside the loop. Differential Revision: https://reviews.llvm.org/D133140
-
Alex Brachet authored
Previously if you specified no_sanitize("known_sanitizer") on a global you would yield a misleading error "'no_sanitize' attribute only applies to functions and methods", but no_sanitize("unknown") would simply be a warning, "unknown sanitizer 'unknown' ignored". This changes the former to a warning "'no_sanitize' attribute argument not supported for globals: known_sanitizer". Differential Revision: https://reviews.llvm.org/D133117 -
Arthur Eubanks authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D133036
-
Rob Suderman authored
Added numerical splat folders for comparison operations and equal of two identical int values. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D133138
-
Tue Ly authored
Update the utility functions for checking exceptional values of math functions to use cpp::optional return values. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D133134
-
Rong Xu authored
We currently instrument CallBrInst but do not annotate it with the branch weight. This patch enables PGO annotation of CallBrInst. Differential Revision: https://reviews.llvm.org/D133040
-
Arpad Borsos authored
At least `ntdll` is using the undocumented version 2 unwind info, and opcode 6, which is already defined as `UOP_Epilog`. Using `llvm-objdump --unwind` with `ntdll` would previously result in unreachable assertions because this code was missing from `getNumUsedSlots` and `getUnwindCodeTypeName`. The slots of these codes comes from https://github.com/dotnet/runtime/blob/57bfe474518ab5b7cfe6bf7424a79ce3af9d6657/src/coreclr/inc/win64unwind.h#L51-L52 which I would assume is a good authoritative source. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D107655
-
Kevin Athey authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D117622
-
Vitaly Buka authored
Reduces .text size by 1% on our large binary. On CTMark (-O2 -fsanitize=memory -fsanitize-memory-use-after-dtor -fsanitize-memory-param-retval) Size -0.4% Time -0.8% Reviewed By: kda Differential Revision: https://reviews.llvm.org/D133071
-
Aleksandr Platonov authored
clangd code fixes at D122983 were not right. We need to check that clangd provides IncludeFixer fixits for implicit function declaration even if this is not an error (e.g. implicit function declaration in C89). Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D133043
-
Lang Hames authored
The ELF/x86-64 backend uses the generic x86_64 edges now, so the ELFX86RelocationKind is just an implementation detail.
-
Sanjay Patel authored
issue #57472
-
Zequan Wu authored
llvm::codeview::visitMemberRecordStream in CompleteTagDecl will call GetOrCreateType create type if not seen before, which inserts new entries into m_decl_to_status. This may invalidates status which is a reference to std::pair::second from DenseMapIterator.
-
Vitaly Buka authored
It's a preparation of to combine shadow checks of the same instruction Reviewed By: kda, kstoimenov Differential Revision: https://reviews.llvm.org/D133065
-
Valentin Clement authored
This reverts commit 6ab6f23b.
-
Simon Pilgrim authored
This is a C++ header after all.
-
River Riddle authored
This revealed that the test was a bit out of date and failing, this commit also tweaks the .mlir to actually test pdll properly.
-
Simon Pilgrim authored
Matches numbers from AMD SoG + Agner - should always be on FPU Pipes 0+1, no additional uops for folded instructions and znver1 double pumps 256-bit vectors Noticed while adding CostKinds support to the x86 cost models
-
Wei Yi Tee authored
[clang][dataflow] Refactor `TypeErasedDataflowAnalysisTest` - replace usage of the deprecated overload of `checkDataflow`. Reviewed By: gribozavr2, sgatev Differential Revision: https://reviews.llvm.org/D132756
-
Valentin Clement authored
This patch adds contiguity check with the runtime to avoid copyin/copyout in case the actual argument is actually contiguous. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D133097
-
Mark de Wever authored
The output of --trace-includes starts with the header whose includes are being processed. Since the sanitize script processed all lines this include was added to the list of transitive includes. This looks odd since it implies all headers have a cyclic dependency on themselves. This change removes this self-include. Instead of just dropping the first line extract that header and use it to guard against cyclic dependencies in the header itself. The regex used has a small improvement; don't capture groups that aren't extracted. Depends on D132284 Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D132787
-
Michael Jones authored
This adds division and power implementations to UInt. Modulo and division are handled by the same function. These are necessary for some higher order mathematics, often involving large floating point numbers. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D132184
-
Michael Jones authored
builtin_wrappers contains the wrappers for the clz builtins, which do not depend on anything in fputil. This patch moves the file out of FPUtil. The location is updated as appropriate. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D133035
-
Fangrui Song authored
[MachineFunctionPass] Support -filter-passes for -print-changed -filter-passes specifies a `PassID` (a lower-case dashed-separated pass name, also used by -print-after, -stop-after, etc) instead of a CamelCasePass. `-filter-passes=CamelCaseNewPMPass` seems like a workaround for new PM passes before we can use lower-case dashed-separated pass names (as used by `-passes=`). Example: ``` # getPassName() is "IRTranslator". PassID is "irtranslator" llc -mtriple=aarch64 -print-changed -filter-passes=irtranslator < print-changed-machine.ll ``` Close https://github.com/llvm/llvm-project/issues/57453 Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D133055
-
LLVM GN Syncbot authored
-
Michael Jones authored
This matches the change made to cmake, mostly. I've left the process of splitting the inclusions for all the math functions for a later time. Reviewed By: lntue, sivachandra Differential Revision: https://reviews.llvm.org/D133073
-
Vitaly Buka authored
-
Joseph Huber authored
This patch adds support for the device memory type, this is currently equivalent to the default type so it should be treated as the same. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D133128
-
Wei Yi Tee authored
[llvm][Testing/ADT] Implement `IsStringMapEntry` testing matcher for verifying the entries in a `StringMap`. Reviewed By: gribozavr2, ymandel, sgatev Differential Revision: https://reviews.llvm.org/D132753
-
Jeff Niu authored
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D133086
-
Aart Bik authored
Also includes a first codegen example (although full support need tuple access) Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D133080
-
Jordan Rupprecht authored
When instrumenting `alloca`s, we use a `SmallSet` (i.e. `SmallPtrSet`). When there are fewer elements than the `SmallSet` size, it behaves like a vector, offering stable iteration order. Once we have too many `alloca`s to instrument, the iteration order becomes unstable. This manifests as non-deterministic builds because of the global constant we create while instrumenting the alloca. The test added is a simple IR file, but was discovered while building `libcxx/src/filesystem/operations.cpp` from libc++. A reduced C++ example from that: ``` // clang++ -fsanitize=memory -fsanitize-memory-track-origins \ // -fno-discard-value-names -S -emit-llvm \ // -c op.cpp -o op.ll struct Foo { ~Foo(); }; bool func1(Foo); void func2(Foo); void func3(int) { int f_st, t_st; Foo f, t; func1(f) || func1(f) || func1(t) || func1(f) && func1(t); func2(f); } ``` Reviewed By: kda Differential Revision: https://reviews.llvm.org/D133034 -
Arthur Eubanks authored
-
Nuno Lopes authored
So we can't use ctlz in poison-producing mode
-
- Sep 01, 2022
-
-
Arthur Eubanks authored
This reverts commit b10a341a. This commit exposes the pre-existing https://github.com/llvm/llvm-project/issues/56503 in some edge cases. Will fix that and then reland this.
-
Aaron Ballman authored
-
Matt Devereau authored
-