- Oct 15, 2022
-
-
Chris Bieneman authored
This change pulls some code from the DirectX backend into a new LLVMFrontendHLSL library to share utility data structures between the HLSL code generation in Clang and the backend in LLVM. This is a small refactoring as a first start to get code into the right structure and get the library built and dependencies correct. Fixes #58000 (https://github.com/llvm/llvm-project/issues/58000) Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D135110
-
Craig Topper authored
getPrimitiveSizeInBits returns 0 for pointers, we need to query the size via DataLayout instead. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D135976
-
Nico Weber authored
-
Chris Bieneman authored
When DXC prints IR output it adds a bunch of IR comments in a header that describe the DXIL metadata in a more human-readable format. This pass will serve that purpose for LLVM by printing out ahead of the IR printer. Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D135802
-
Stefan Pintilie authored
The documentation specifies that the input and ouput for the builtin __builtin_crypto_vsbox should be vector unsigned char. This patch fixes this type for the builtin. Reviewed By: amyk Differential Revision: https://reviews.llvm.org/D135834
-
chenglin.bi authored
-
Anshil Gandhi authored
This patch is a follow up for D134557, inserting a check for a duplicate unconditional branch to fall through. Differential Revision: https://reviews.llvm.org/D135975
-
Volodymyr Sapsai authored
Instead of dumping `Expr*` memory address, output `Expr` representation. Differential Revision: https://reviews.llvm.org/D135931
-
Arthur Eubanks authored
I'm trying to add a test which tests that the same substr occurs twice in a row, but it matches even if only one of the substr occurs. This found a bug in concurrent_base.py. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D135826
-
Tyker authored
-
Caroline Concatto authored
This patch has the prefered disassembly changed for SVE vector list. For instance, instead of printing this assembly: ld4d { z1.d, z2.d, z3.d, z4.d }, p0/z, [x0] it will print this: ld4d { z1.d-z4.d }, p0/z, [x0] Differential Revision: https://reviews.llvm.org/D135952 -
Yitzhak Mandelbaum authored
Change from marking individual methods as `final` to marking the whole class. Differential Revision: https://reviews.llvm.org/D135923
-
David Green authored
We were hitting an assert as the legalied type needn't be a vector. Fixes #58364
-
Hassnaa Hamdi authored
Add a compile-time flag for enabling streaming mode. When streaming mode is enabled, lower basic loads and stores of fixed-width vectors; to generate code that is compatible to streaming mode. Differential Revision: https://reviews.llvm.org/D133433
-
Yitzhak Mandelbaum authored
Currently, our boolean formulas (`BoolValue`) don't form a lattice, since they have no Top element. This patch adds such an element, thereby "completing" the built-in model of bools to be a proper semi-lattice. It still has infinite height, which is its own problem, but that can be solved separately, through widening and the like. Patch 1 for Issue #56931. Differential Revision: https://reviews.llvm.org/D135397
-
Akira Hatanaka authored
functions in getter/setter functions of non-trivial C struct properties This fixes a bug where the getter/setter functions were doing a trivial copy instead of calling the synthesized functions that copy non-trivial C struct types. This fixes https://github.com/llvm/llvm-project/issues/56680. Differential Revision: https://reviews.llvm.org/D131701
-
Angelo Matni authored
Cleanup: avoid referring to `std::vector<T>` members when `T` is incomplete. This is [not legal](https://timsong-cpp.github.io/cppwp/n4868/vector#overview-4) according to the C++ standard, and causes build errors in particular in C++20 mode. Fix it by defining the vector's type before using the vector. Reviewed By: saugustine, MaskRay Differential Revision: https://reviews.llvm.org/D135906
-
chenglin.bi authored
The crash case comes from #58350. It have two stores, one store is type f32 and the other is v1f32. When we try to merge these two stores on v1f32, the memVT is vector type so the old code will use ISD::EXTRACT_SUBVECTOR for type f32 also then compiler crash. So this patch insert a build_vector for f32 store to generate v1f32 also when memVT is v1f32. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D135954
-
Nick Kreeger authored
This allows for using the llvm namespace cast methods instead of the ones on the Value class. The Value class method are kept for now, but we'll want to remove these eventually (with a really long lead time). Related change: https://reviews.llvm.org/D134327 Differential Revision: https://reviews.llvm.org/D135870
-
Nicola Lancellotti authored
-
Dmitry Preobrazhensky authored
Correct v_cndmask_b32 to support abs/neg modifiers in dpp/sdwa/e64 variants. Correct v_cndmask_b16 for proper disassembly of abs/neg modifiers in e64_dpp variants. Differential Revision: https://reviews.llvm.org/D135900
-
Jeff Niu authored
The context and builder did not receive the correct substitutes in the printers. Also, the tests were incorrect (d'oh!) Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D135845
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D135905
-
Andrzej Warzynski authored
The updated name better reflects what this hook is intended for. Reviewed By: tarunprabhu Differential Revision: https://reviews.llvm.org/D130078
-
Kazu Hirata authored
-
- Oct 14, 2022
-
-
Florian Hahn authored
-
Adrian Prantl authored
-
Kazu Hirata authored
This patch fixes: flang/lib/Lower/ConvertExpr.cpp:2733:14: error: variable 'callNumResults' set but not used [-Werror,-Wunused-but-set-variable]
-
Jakub Kuderski authored
Add a new pass and conversions to emulate wide integer operations over memrefs. The emulation is implemented on top of the existing pass to emulate wide integer arith ops. Improve naming in the arith pass to avoid potential name clashes. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D135722
-
Kazu Hirata authored
This patch fixes: clang/lib/CodeGen/CGCall.cpp:1867:64: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
-
Daniel Kiss authored
A given arch feature might enabled by a pragma or a function attribute so in this cases would be nice to use intrinsics. Today GCC offers the intrinsics without the march flag[1]. PR[2] for ACLE to clarify the intention and remove the need for -march flag for a given intrinsics. This is going to be more useful when D127812 lands. [1] https://godbolt.org/z/bxcMhav3z [2] https://github.com/ARM-software/acle/pull/214 Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D133359
-
Amy Kwan authored
This patch adds a test case for lowering vector shuffles to xxsplti32dx in preparation for D135024. The test case added in this patch only adds the 64-bit CHECKs, as the 32-bit CHECKs cannot be generated (in which D135024 aims to fix).
-
Chris Lattner authored
This adds a constructor and upgrades the dtor to work with move-only types. Differential Revision: https://reviews.llvm.org/D135940
-
Zahira Ammarguellat authored
There are currently two options that are used to tell the compiler to perform unsafe floating-point optimizations: '-ffast-math' and '-funsafe-math-optimizations'. '-ffast-math' is enabled by default. It automatically enables the driver option '-menable-unsafe-fp-math'. Below is a table illustrating the special operations enabled automatically by '-ffast-math', '-funsafe-math-optimizations' and '-menable-unsafe-fp-math' respectively. Special Operations -ffast-math -funsafe-math-optimizations -menable-unsafe-fp-math MathErrno 0 1 1 FiniteMathOnly 1 0 0 AllowFPReassoc 1 1 1 NoSignedZero 1 1 1 AllowRecip 1 1 1 ApproxFunc 1 1 1 RoundingMath 0 0 0 UnsafeFPMath 1 0 1 FPContract fast on on '-ffast-math' enables '-fno-math-errno', '-ffinite-math-only', '-funsafe-math-optimzations' and sets 'FpContract' to 'fast'. The driver option '-menable-unsafe-fp-math' enables the same special options than '-funsafe-math-optimizations'. This is redundant. We propose to remove the driver option '-menable-unsafe-fp-math' and use instead, the setting of the special operations to set the function attribute 'unsafe-fp-math'. This attribute will be enabled only if those special operations are enabled and if 'FPContract' is either 'fast' or set to the default value. Differential Revision: https://reviews.llvm.org/D135097
-
Nikita Popov authored
As pointed out by thakis in https://reviews.llvm.org/D135436#3858463, this variable can be dropped now that the Go bindings have been removed.
-
Aaron Ballman authored
This introduces support for nullptr and nullptr_t in C2x mode. The proposal accepted by WG14 is: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3042.htm Note, there are quite a few incompatibilities with the C++ feature in some of the edge cases of this feature. Therefore, there are some FIXME comments in tests for testing behavior that might change after WG14 has resolved national body comments (a process we've not yet started). So this implementation might change slightly depending on the resolution of comments. This is called out explicitly in the release notes as well. Differential Revision: https://reviews.llvm.org/D135099
-
Joseph Huber authored
-
Joseph Huber authored
Summary: This patch changes the `exports` file to export all `__tgt_rtl` functions. This is a better option as not each plugin implements all of these functions, furthermore any new functions added will be automatically included.
-
Sander de Smalen authored
Functions with `aarch64_sme_pstatesm_body` will emit a SMSTART at the start of the function, and a SMSTOP at the end of the function, such that all operations use the right value for vscale. Because the placement of these nodes is critically important (i.e. no vscale-dependent operations should be done before SMSTART has been issued), we require glueing the CopyFromReg to the Entry node such that we can insert the SMSTART as part of that glued chain. More details about the SME attributes and design can be found in D131562. Reviewed By: aemerson Differential Revision: https://reviews.llvm.org/D131582
-
Guillaume Chatelet authored
This version is more composable and also simpler at the expense of being more explicit and more verbose. It also provides minimal implementations for ARM platforms. Codegen can be checked here https://godbolt.org/z/chf1Y6eGM Differential Revision: https://reviews.llvm.org/D135134
-