- Mar 17, 2022
-
-
Kirill Stoimenov authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D121813
-
Florian Mayer authored
Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D121394
-
Andrzej Warzynski authored
This patch adds support for lowering of the `i{a}char` intrinsics from Fortran to the FIR dialect of MLIR. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Differential Revision: https://reviews.llvm.org/D121790 Co-authored-by:Jean Perier <jperier@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com> Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
zacharyselk <zrselk@gmail.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Snehasish Kumar authored
We add to ensure that we are observing the correct callstack order in memprof during symbolization. There was some confusion whether the order of DIFrame objects were reversed but in reality the leaf function is at index 0 so no code changes are required. Differential Revision: https://reviews.llvm.org/D121759
-
Petr Hosek authored
This reverts commit 1b6ff3f4 since it broke Fuchsia's macOS builders.
-
Andrzej Warzynski authored
This patch adds support for lowering of the `ibclr` intrinsic from Fortran to the FIR dialect of MLIR. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com> Differential Revision: https://reviews.llvm.org/D121789
-
Florian Hahn authored
After e5822ded, the call to LargeFunction can be optimized out, as x is never accessed in main. This is causing the test to fail, because the out-of-bounds access won't be executed. Adding an extra read and returning the value should prevent the optimizer from removing the call.
-
Siddharth Bhat authored
dense<...> expects ... to be a tensor-literal. Define this in the grammar in BuiltinAttributes.td, and reflect this in the reference grammar written in AttributeParser.cpp. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D121048
-
Nathan Ridge authored
Fixes https://github.com/clangd/clangd/issues/1057 Differential Revision: https://reviews.llvm.org/D121775
-
Andrzej Warzynski authored
This patch adds support for lowering of the `ieor` intrinsic from Fortran to the FIR dialect of MLIR. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com> Differential Revision: https://reviews.llvm.org/D121791
-
Fangrui Song authored
STB_GNU_UNIQUE is like STB_GLOBAL with extra semantics: * gold and ld.lld: changed to STB_GLOBAL if --no-gnu-unique is specified * glibc: unique even with dlopen `RTLD_LOCAL`, implies DF_1_NODELETE Therefore, I think it makes sense for --weaken-symbol/--weaken-symbols/--weaken to change STB_GNU_UNIQUE symbols. binutils 2.39 will have the same behavior: https://sourceware.org/bugzilla/show_bug.cgi?id=28926 Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D120638
-
Marco Elver authored
* Consistent naming: addCallSiteInfo vs. getCallSiteInfo; * Use ternary operator to reduce verbosity; * const'ify getters; * Add comments; NFCI. Differential Revision: https://reviews.llvm.org/D121820
-
Daniel Thornburgh authored
The inserted cast is a no-op. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D121752
-
Mark de Wever authored
This avoids using an libc++ internal macro in our tests. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D121515
-
David Truby authored
-
Amir Ayupov authored
Since LLVM MC now preserves redundant AdSize override prefix (0x67), remove it in BOLT explicitly (-x86-strip-redundant-adsize, on by default). Test Plan: `bin/llvm-lit -a bolt/test/X86/addr32.s` Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D120975
-
Louis Dionne authored
In the new-style testing configurations, we were hardcoding paths to the `include` and `lib` directories, which was incorrect but always went unnoticed because the hardcoded values always happened to match the actual value. When using new-style configs with the bootstrapping build, this falls appart -- and we never noticed this because the bootstrapping build was still using old style configs. This patch removes the %{install} substitution, which makes it too tempting to hardcode installation paths, and it also switches the bootstrapping build to actually using new-style configs like we always intended to do. Differential Revision: https://reviews.llvm.org/D121700 -
Malhar Jajoo authored
This patch ensures scalars (except for uniforms) are no longer collected (prior to LVP planning phase) for scalable vectorization. This is to avoid the chances of generating scalarized instructions later (during LVP execute phase) as they are not supported for scalable vectorization. Relevant test has also been added. Differential Revision: https://reviews.llvm.org/D121452
-
Jonas Devlieghere authored
Update warning after 2fc38b2b.
-
Andrzej Warzynski authored
This patch adds support for lowering of the `size` intrinsic from Fortran to the FIR dialect of MLIR. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Differential Revision: https://reviews.llvm.org/D121803 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Peter Steinfeld <psteinfeld@nvidia.com>
-
Nikita Popov authored
This reverts commit 6a23d276. The newly added tests fail on the llvm-clang-x86_64-sie-win buildbot. Not sure why a failure only occurs there, possibly differen PRNG sequence?
-
Valentin Clement authored
This patch adds lowering for shift intrinsics: - `ishft` - `eoshift` - `ishftc` - `cshift` This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121808 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Peter Steinfeld <psteinfeld@nvidia.com> Co-authored-by:
AlexisPerry <aperry@lanl.gov>
-
Valentin Clement authored
This patch adds lowering for IO input with vector subscripts. It defines a VectorSubscriptBox class that allow representing and working with a lowered Designator containing vector subscripts while ensuring all the subscripts expression are only lowered once. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121806 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
- Mar 16, 2022
-
-
Nikita Popov authored
-
Yonghong Song authored
Current ASTContext.getAttributedType() takes attribute kind, ModifiedType and EquivType as the hash to decide whether an AST node has been generated or note. But this is not enough for btf_type_tag as the attribute might have the same ModifiedType and EquivType, but still have different string associated with attribute. For example, for a data structure like below, struct map_value { int __attribute__((btf_type_tag("tag1"))) __attribute__((btf_type_tag("tag3"))) *a; int __attribute__((btf_type_tag("tag2"))) __attribute__((btf_type_tag("tag4"))) *b; }; The current ASTContext.getAttributedType() will produce an AST similar to below: struct map_value { int __attribute__((btf_type_tag("tag1"))) __attribute__((btf_type_tag("tag3"))) *a; int __attribute__((btf_type_tag("tag1"))) __attribute__((btf_type_tag("tag3"))) *b; }; and this is incorrect. It is very difficult to use the current AttributedType as it is hard to get the tag information. To fix the problem, this patch introduced BTFTagAttributedType which is similar to AttributedType in many ways but with an additional BTFTypeTagAttr. The tag itself can be retrieved with BTFTypeTagAttr. With the new BTFTagAttributed type, the debuginfo code can be greatly simplified compared to previous TypeLoc based approach. Differential Revision: https://reviews.llvm.org/D120296 -
Jake Egan authored
Sending output to /dev/stdout on AIX gets an llc permission denied error, so this patch removes this from the tests. Reviewed By: simoll, hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D121799
-
Jonas Devlieghere authored
Report warnings and errors through events instead of printing directly the to the debugger's error stream. By using events, IDEs such as Xcode can report these issues in the UI instead of having them show up in the debugger console. The new diagnostic events are handled by the default event loop. If a diagnostic is reported while nobody is listening for the new event types, it is printed directly to the debugger's error stream. Differential revision: https://reviews.llvm.org/D121511
-
Amir Ayupov authored
Fix prefix emission order to emit REX immediately before the opcode (SDM vol2, 2.1, Figure 2-1). According to SDM vol2 2.2.1, "Other placements are ignored". This fix has a side effect of outputting segment override prefix in a different order than previously (benign). Follow-up to https://reviews.llvm.org/D120592 Reviewed By: skan, craig.topper Differential Revision: https://reviews.llvm.org/D120871
-
Amir Ayupov authored
Print and emit redundant Address-Size override prefix if it's set on the instruction. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D120592
-
Haojian Wu authored
-
LLVM GN Syncbot authored
-
Amir Ayupov authored
Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D121669
-
Kazushi (Jam) Marukawa authored
Add the rest of intrinsics to clang except intrinsics using vector mask registers. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D121586
-
Andrzej Warzynski authored
This patch adds support for lowering of the `set_exponent` intrinsic from Fortran to the FIR dialect of MLIR. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Differential Revision: https://reviews.llvm.org/D121805 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eun Jung Park <ejpark@lanl.gov>
-
Joe Nash authored
NFC. Switch from calculations based on dwords to bits, to be more flexible. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D121730
-
Jean Perier authored
Allow fir.rebox input and output element type to differ for characters if: - Any of the character type is dynamic. Fortran allows making pointer assignments between deferred and constant lengths entities, making this case useful (if the input length is dynamic and the output length constant, it is a user requirement that the length matches at runtime. There is no option to check this at runtime, but it could be added as an option to fir.rebox codegen later if desired). - Or, there is a slice in the fir.rebox (the fir.rebox can implement a substring view, hence the constant output and input lengths). This is only a verifier constraint change, the fir.rebox codegen is not impacted and already support those cases. Add related FIR parsing, error, and codegen tests. Differential Revision: https://reviews.llvm.org/D121710
-
Pavel Labath authored
This was inadvertedly changed (bad search&replace) when I was removing the LLDBLOG macros.
-
Nikita Popov authored
When a load extends past the extent of the alloca, SROA will restrict the slice size to extend to the end of the alloca only. However, presplitting was asserting that the load size and the slice size match exactly, which does not hold in this case. Relax the assertion to only require that the load size is greater or equal than the slice size.
-
Will Hawkins authored
Change enumaration to enumeration in code handling LLDB help output. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D121800
-
Will Hawkins authored
Correct a few spelling errors and typos in the LLDB help output. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D121802
-