- Jan 27, 2020
-
-
Petar Avramovic authored
llvm.cttz.<type> intrinsic has additional i1 argument is_zero_undef, it tells whether zero as the first argument produces a defined result. G_CTTZ is generated from llvm.cttz.<type> (<type> <src>, i1 false) intrinsics, clang generates these intrinsics from __builtin_ctz and __builtin_ctzll. G_CTTZ_ZERO_UNDEF comes from llvm.cttz.<type> (<type> <src>, i1 true). Clang generates such intrinsics as parts of expansion of builtin_ffs and builtin_ffsll. It is also traditionally part of and many algorithms that are now predicated on avoiding zero-value inputs. Add narrow scalar (algorithm uses G_CTTZ_ZERO_UNDEF) for G_CTTZ. Lower G_CTTZ and G_CTTZ_ZERO_UNDEF for MIPS32. Differential Revision: https://reviews.llvm.org/D73215
-
Petar Avramovic authored
llvm.ctlz.<type> intrinsic has additional i1 argument is_zero_undef, it tells whether zero as the first argument produces a defined result. MIPS clz instruction returns 32 for zero input. G_CTLZ is generated from llvm.ctlz.<type> (<type> <src>, i1 false) intrinsics, clang generates these intrinsics from __builtin_clz and __builtin_clzll. G_CTLZ_ZERO_UNDEF can also be generated from llvm.ctlz with true as second argument. It is also traditionally part of and many algorithms that are now predicated on avoiding zero-value inputs. Add narrow scalar for G_CTLZ (algorithm uses G_CTLZ_ZERO_UNDEF). Lower G_CTLZ_ZERO_UNDEF and select G_CTLZ for MIPS32. Differential Revision: https://reviews.llvm.org/D73214
-
Fangrui Song authored
The environment variable has been unused since r228079.
-
Martin Storsjö authored
When targeting mingw, current CMake (3.16) fails to get the right flags for assembly source files for windows gnu/clang targets (see https://gitlab.kitware.com/cmake/cmake/merge_requests/4287 for a fix), causing builds to fail due to `-fPIC` being unsupported in clang for mingw targets In the meantime, restore the behaviour from before c48974ff selectively on mingw targets, treating the assembly files as C. Differential Revision: https://reviews.llvm.org/D73436
-
Qiu Chaofan authored
-
Wang, Pengfei authored
and macro FUNCTION likewise. NFCI. Some functions like fmuladd don't really have a node, we should divide the declaration form those have node to avoid introducing fake nodes. Differential Revision: https://reviews.llvm.org/D72871
-
Saar Raz authored
The wrong set of TemplateArgs was being provided to addInstantiatedParametersToScope. Caused bug #44658.
-
Lei Zhang authored
This is a generally useful utility function for interacting with symbol tables. Differential Revision: https://reviews.llvm.org/D73433
-
Saar Raz authored
Caused bug 44671 when transforming a constructor with a type-constraint with no explicit template args.
-
Martin Storsjö authored
After this change, we need to explicitly list the languages the project uses, otherwise the assembly source files won't get built at all. Previously (before that commit), the assembly source files were simply treated as C. The toplevel llvm CMakeLists.txt adds these three languages, so when building libunwind integrated as part of that, it works fine.
-
Roman Lebedev authored
Based on exhaustive llvm-exegesis measurements. There may still be some imperfections for LEA16r/LEA32r. Much like was observed in D68646, i'm also measuring some outliers with some specific registers.
-
Roman Lebedev authored
Some whitespace issues have crept in, and some znver2 check lines were missing..
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Saar Raz authored
[Concepts] Fix parsing of scope specifier in compound-requirements, add more tests for scope specifiers in type-constraints The code for parsing of type-constraints in compound-requirements was not adapted for the new TryAnnotateTypeConstraint which caused compound-requirements with scope specifiers to ignore them. Also add regression tests for scope specifiers in type-constraints in more contexts.
-
Stephen Kelly authored
Summary: This allows ASTContext to store only one parent map, rather than storing an entire parent map for each traversal mode used. This is therefore a partial revert of commit 0a717d5b (Make it possible control matcher traversal kind with ASTContext, 2019-12-06). Reviewers: aaron.ballman, rsmith, rnk Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73388
-
Guillaume Chatelet authored
Summary: masked_load and masked_store instructions require the alignment to be specified and a power of two. It seems to me that this requirement applies to masked_gather and masked_scatter as well. Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73179
-
Lei Zhang authored
This commit changes the logic of `getBuiltinVariableValue` to get or create the builtin variable in the nearest symbol table. This will allow us to use this function in other partial conversion cases where we haven't created the spv.module yet. Differential Revision: https://reviews.llvm.org/D73416
-
- Jan 26, 2020
-
-
Lei Zhang authored
This commit introduces default values for load/store builders to simplify builder call sites. Differential Revision: https://reviews.llvm.org/D73419
-
Lei Zhang authored
This commit exposes the func op conversion pattern via a new `populateBuiltinFuncToSPIRVPatterns` function from the standard to SPIR-V conversion passs. This is structurally better given that func op belongs to the builtin dialect. More importantly, this makes the pattern reusable to other dialect to SPIR-V dialect conversion as other dialect can well adopt builtin func op instead of having its own. Besides, it's very common to use func ops as test wrappers in lit tests, so test passes will need to handle func ops too. Differential Revision: https://reviews.llvm.org/D73421
-
Lei Zhang authored
Thus far certain SPIR-V ops have been required to be in spv.module. While this provides strong verification to catch unexpected errors, it's quite rigid and makes progressive lowering difficult. Sometimes we would like to partially lower ops from other dialects, which may involve creating ops like global variables that should be placed in other module-like ops. So this commit relaxes the requirement of such SPIR-V ops' scope to module-like ops. Similarly for function- like ops. Differential Revision: https://reviews.llvm.org/D73415
-
Lei Zhang authored
Differential Revision: https://reviews.llvm.org/D73349
-
Simon Pilgrim authored
[X86][AVX] Add tests showing combineCommutableSHUFP failure to handle v8f32 and v16f32 commutable shufps patterns
-
Simon Pilgrim authored
Pull out combineTargetShuffle code added in rG3fd5d1c6 into a helper function and extend it to handle shufps(shufps(load(),x),y) and shufps(y,shufps(load(),x)) cases as well.
-
Serge Pavlov authored
This change added two new attributes, rounding mode and exception behavior to the structure FPOptions. These attributes allow more flexible treatment of specific floating point environment than it is provided by #pragma STDC FENV_ACCESS. Differential Revision: https://reviews.llvm.org/D65994
-
Simon Pilgrim authored
-
Maheaha Shivamallappa authored
Summary: A minor code clean-up around ISel for intrinsic llvm.amdgcn.end.cf() Reviewers: arsenm, mshivama Reviewed By: arsenm Tags: #llvm Differential Revision: https://reviews.llvm.org/D73358
-
Fangrui Song authored
* Generalize the code added in D70637 and D70937. We should eventually remove the EM_MIPS special case. * Handle R_PPC_LOCAL24PC the same way as R_PPC_REL24. Reviewed By: Bdragon28 Differential Revision: https://reviews.llvm.org/D73424
-
George Burgess IV authored
Pointed out by Stepan on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2020-January/138617.html
-
Mehdi Amini authored
This is an artifact from merging MLIR into LLVM, the file headers are now aligned with the rest of the project.
-
Craig Topper authored
Every case in the switch had a string version of themselves. Two of them had a typo that used : instead of :: By using a macro we can automate the string creation and avoid the possibility of typos like this. This is similar to what is done on the AMDGPU target.
-
Fangrui Song authored
-fno-pie produces a pair of non-GOT-non-PLT relocations R_PPC_ADDR16_{HA,LO} (R_ABS) referencing external functions. ``` lis 3, func@ha la 3, func@l(3) ``` In a -no-pie/-pie link, if func is not defined in the executable, a canonical PLT entry (st_value>0, st_shndx=0) will be needed. References to func in shared objects will be resolved to this address. -fno-pie -pie should fail with "can't create dynamic relocation ... against ...", so we just need to think about -no-pie. On x86, the PLT entry passes the JMP_SLOT offset to the rtld PLT resolver. On x86-64: the PLT entry passes the JUMP_SLOT index to the rtld PLT resolver. On ARM/AArch64: the PLT entry passes &.got.plt[n]. The PLT header passes &.got.plt[fixed-index]. The rtld PLT resolver can compute the JUMP_SLOT index from the two addresses. For these targets, the canonical PLT entry can just reuse the regular PLT entry (in PltSection). On PPC32: PltSection (.glink) consists of `b PLTresolve` instructions and `PLTresolve`. The rtld PLT resolver depends on r11 having been set up to the .plt (GotPltSection) entry. On PPC64 ELFv2: PltSection (.glink) consists of `__glink_PLTresolve` and `bl __glink_PLTresolve`. The rtld PLT resolver depends on r12 having been set up to the .plt (GotPltSection) entry. We cannot reuse a `b PLTresolve`/`bl __glink_PLTresolve` in PltSection as a canonical PLT entry. PPC64 ELFv2 avoids the problem by using TOC for any external reference, even in non-pic code, so the canonical PLT entry scenario should not happen in the first place. For PPC32, we have to create a PLT call stub as the canonical PLT entry. The code sequence sets up r11. Reviewed By: Bdragon28 Differential Revision: https://reviews.llvm.org/D73399 -
Saar Raz authored
We would previously try to evaluate atomic constraints of non-template functions as-is, and since they are now unevaluated at first, this would cause incorrect evaluation (bugs #44657, #44656). Substitute into atomic constraints of non-template functions as we would atomic constraints of template functions, in order to rebuild the expressions in a constant-evaluated context.
-
Simon Pilgrim authored
-
Fangrui Song authored
Symbol information can be used to improve out-of-range/misalignment diagnostics. It also helps R_ARM_CALL/R_ARM_THM_CALL which has different behaviors with different symbol types. There are many (67) relocateOne() call sites used in thunks, {Arm,AArch64}errata, PLT, etc. Rename them to `relocateNoSym()` to be clearer that there is no symbol information. Reviewed By: grimar, peter.smith Differential Revision: https://reviews.llvm.org/D73254 -
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Jacques Pienaar authored
Revert the MSVC specific parts in whole_archive_link to previous form to potentially address https://bugs.llvm.org/show_bug.cgi?id=44660.
-