- Oct 09, 2023
-
-
David Spickett authored
-
Kazu Hirata authored
The last template parameter of llvm::support::endian::{read,write} defaults to unaligned, so we can drop that at call sites. -
Sergei Barannikov authored
According to the manual `cmp` is a synthetic instruction that maps to `subcc` with %g0 output operand. Make it so. The change required some changes to instruction selection process. The reason is that the old CMP did not have an output operand, while setcc does have one. We want that operand to be %g0. The easiest way to achieve this seems to be to mark SUBCC with hasPostISelHook and replace the output operand with %g0 in the corresponding TargetLowering method.
-
Brad Smith authored
-
Congcong Cai authored
-
- Oct 08, 2023
-
-
Matthias Springer authored
The empty tensor elimination pass semantics have changed recently: when applied to a module, the One-Shot Module Analysis is run. Otherwise, the regular One-Shot Analysis is run. The latter one is slightly different because it ignores function boundaries and treats function block arguments as "read-only". This commit updates the transform dialect op to behave in the same way.
-
LiqinWeng authored
…redicated Intrinsic ID
-
Kazu Hirata authored
Now that llvm::support::endianness has been renamed to llvm::endianness, we can directly get endianness from the llvm namespace. We don't need to go through support.
-
Wang Pengcheng authored
To simplify code.
-
Amara Emerson authored
-
Jianjian Guan authored
This patch supports FP_TO_SINT, FP_TO_UINT, VP_FP_TO_SINT and VP_FP_TO_UINT for fp16 vectors input when we only have Zvfhmin but no Zvfh.
-
David Stone authored
[clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (#67902) The `Module` parameter to `checkModuleIsAvailable` is currently passed by pointer to non-const. However, it requires only const access and it cannot be null. Change this to be a reference to const instead. This then makes it obvious that it is an input-only parameter, so move it to be before the in-out parameter for diagnostics.
-
Florian Hahn authored
There's no need to repeatedly query and reset the state for LoopExitInstDef. This removes one of the last uses of VPTransformState::reset, by use a vector to store and update the results. No other code should try to retrieve the result from State outside the fixReductionCall.
-
qijitao authored
In instruction encoding, the relative offset address of the PC is signed, that is, the number of positive offset bits and the number of negative offset bits is asymmetric. Therefore, the maximum and minimum values are used to replace Mask to determine the boundary. Co-authored-by:qijitao <qijitao@hisilicon.com>
-
David Green authored
Add similar tests to D159254 for other CPU targets.
-
Craig Topper authored
This uses the recently introduced sink-and-fold support in MachineSink. https://reviews.llvm.org/D152828 This enables folding ADDI into load/store addresses. Enabling by default will be a separate PR.
-
Matthias Springer authored
Address additional comments in #68074. This should have been part of #68074.
-
- Oct 07, 2023
-
-
Hubert Tong authored
s/Definitoin/Definition/
-
Timm Bäder authored
The expected output was wrong.
-
Corentin Jabot authored
-
Timm Baeder authored
We can't load anything from them, but we can still take their address or return them as lvalues.
-
Aaron Ballman authored
-
Job Noorman authored
Was broken after ff5e2bab.
-
Ralf Jung authored
-
Benjamin Kramer authored
-
Jie Fu authored
/llvm-project/clang/lib/AST/Decl.cpp:4182:7: error: field 'TemplateArgumentsAsWritten' will be initialized after field 'NumCandidates' [-Werror,-Wreorder-ctor] : TemplateArgumentsAsWritten(TemplateArgsWritten), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NumCandidates(Candidates.size()) 1 error generated. -
Krystian Stasiowski authored
This removes the `ClassScopeFunctionSpecializationDecl` `Decl` node, and instead uses `DependentFunctionTemplateSpecializationInfo` to handle such declarations. `DependentFunctionTemplateSpecializationInfo` is also changed to store a `const ASTTemplateArgumentListInfo*` to be more in line with `FunctionTemplateSpecializationInfo`. This also changes `FunctionDecl::isFunctionTemplateSpecialization` to return `true` for dependent specializations, and `FunctionDecl::getTemplateSpecializationKind`/`FunctionDecl::getTemplateSpecializationKindForInstantiation` to return `TSK_ExplicitSpecialization` for non-friend dependent specializations (the same behavior as dependent class scope `ClassTemplateSepcializationDecl` & `VarTemplateSepcializationDecl`).
-
Caroline Tice authored
This reverts commit cd184c86.
-
Craig Topper authored
We need this so isel can use getRegBankFromRegClass to disambiguate FSW and SW patterns without depending on pattern order in the tablegen source files. While there, add a few missing GPR register classes and sort them in the order they appear in the tblgen output file.
-
Timm Bäder authored
-
-
Mircea Trofin authored
The test was added after a9d0ab2e, which is what 8abb2ace reverted. The test is sensitive to the exact instruction sequence in the output, which has changed. Re-gen-ed the test with update_llc_test_checks.py
-
Caroline Tice authored
This reverts commit a9d0ab2e. That commit is causing clang crashes.
-
Joseph Huber authored
Summary: Currently, `libc` temporarily provides math by linking against existing vendor implementations. To use the AMDGPU DeviceRTL we need to define a handful of control constants that alter behaviour for architecture specific things. Previously these were marked `extern const` because they must be present when we link-in the vendor bitcode library. However, this causes linker errors if more than one math function was used. This patch fixes the issue by marking these functions as used and inline on top of being external. This means that they are linkable, but it gives us `linkonce_odr` semantics. The downside is that these globals won't be optimized out, but it allows us to perform constant propagation on them unlike using `weak`.
-
Qizhi Hu authored
[clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record static VarTemplateDecl in record isn't a definition, when imported before, it will crash in `ASTContext::setTemplateOrSpecializationInfo` due to setting specialization while it already exists. This patch skip this specific case. Co-authored-by:huqizhi <836744285@qq.com>
-
Jeffrey Byrnes authored
Save the DSW counters from PreRA scheduling. While this avoids recalculation in the postRA pass, that isn't the main purpose. This is required because of physical register dependencies in PostRA scheduling -- they alter the DAG s.t. our counters may become incorrect -- which alters the layout of the pipeline. By preserving the values from PreRA, we can be sure that we accurately construct the pipeline. Additionally, remove a bad assert in SharesPredWithPrevNthGroup -- it is possible that we will have an empty cache if OtherGroup has no elements which have a V_PERM pred (possible if the V_PERM SG is empty).
-
Caroline Tice authored
Change aade7467 updated exception handling in parts of libc++, but forgot to include <exceptions> in cxa_demangle.cpp. This commit corrects that issue.
-
Jack Frankland authored
TOSA defines the filter channel ordering for 2D convolution operation `tosa.conv2d` as `[OC, KH, KW, IC]`. The LinAlg dialect supports `[F, H, W, C]` and `[H, W, C, F]` orderings via the `linalg.conv_2d_nhwc_fhwc` and `linalg.conv_2d_nhwc_hwcf` operations respectively. Where `F == OC`, `KH == H`, `KW == W` and `C == IC`. Currently `tosa.conv2d` is lowered to `linalg.conv2d_nhwc_hwcf` meaning we need to insert a transposition operation to permute the filter channels before they can be passed as weights to the linalg op, that is `[F, H, W, C]` -> `[H, W, C, F]`. An analogous transformation needs to be applied to the quantized operation that lowers to `linalg.conv_2d_nhwc_hwcf_q`. This commit updates the TOSA->LinAlg lowering so that `tosa.conv2d` is lowered to `linalg.conv2d_nhwc_fhwc` removing the need for the introduction of a transposition operation and making the mapping 1-1. It also adds a `linalg.conv_2d_nhwc_fhwc_q` quantized operation to the LinAlg dialect so the same direct 1-1 mapping can be applied to the quantized variant. This commit does not add any new lit tests but repurposes the current TosaToLinalgNamed tests by removing the checks for transpositions and updating the targeted LinAlg operations from `linalg.conv2d_nhwc_hwcf` to linalg.conv2d_nhwc_fhwc`. Signed-off-by:Jack Frankland <jack.frankland@arm.com>
-
Alexander Yermolovich authored
Changed so that when Abbrev code is printed out for entry it is done in the same way as in Abbrev table. Once letters are present in a hex number in abbrev table they will be lower case, and in the Entry upper case. Which makes FIleCheck Pattern recognition fail. Example in: llvm/test/tools/llvm-dwarfdump/X86/debug-names-misaligned.s
-
LLVM GN Syncbot authored
-