- Jul 16, 2021
-
-
Nikita Popov authored
This implements the elementtype attribute specified in D105407. It just adds the attribute and the specified verifier rules, but doesn't yet make use of it anywhere. Differential Revision: https://reviews.llvm.org/D106008
-
Nikita Popov authored
This adds an elementtype(<ty>) attribute, which can be used to attach an element type to a pointer typed argument. It is similar to byval/byref in purpose, but unlike those does not carry any specific semantics by itself. However, certain intrinsics may require it and interpret it in specific ways. The in-tree use cases for this that I'm currently aware of are: call ptr @llvm.preserve.array.access.index.p0.p0(ptr elementtype(%ty) %base, i32 %dim, i32 %index) call ptr @llvm.preserve.struct.access.index.p0.p0(ptr elementtype(%ty) %base, i32 %gep_index, i32 %di_index) call token @llvm.experimental.gc.statepoint.p0(i64 0, i32 0, ptr elementtype(void ()) @foo, i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %obj) Notably, the gc.statepoint case needs a function as element type, in which case the workaround of adding a separate %ty undef argument would not work, as arguments cannot be unsized. Differential Revision: https://reviews.llvm.org/D105407 -
Arthur Eubanks authored
Fixes some regressions with -fstrict-vtable-pointers in llvm-test-suite. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D106017
-
Geoffrey Martin-Noble authored
Update the build files for https://github.com/llvm/llvm-project/commit/01bdb0f75efb Tested: bazel query //... + @llvm-project//... | xargs bazel test --config=generic_clang --config=rbe --test_output=errors --test_ta g_filters=-nobuildkite --build_tag_filters=-nobuildkite Differential Revision: https://reviews.llvm.org/D106075
-
- Jul 15, 2021
-
-
Philip Reames authored
This change enables vectorization of multiple exit loops when the exit count is statically computable. That requirement - shared with the rest of LV - in turn requires each exit to be analyzeable and to dominate the latch. The majority of work to support this was done in a set of previous patches. In particular,, 72314466 avoids having multiple edges from the middle block to the exits, and 4b33b238 which added support for non-latch single exit and multiple exits with a single exiting block. As a result, this change is basically just removing a bailout and adjusting some tests now that the prerequisite work is done and has stuck in tree for a bit. Differential Revision: https://reviews.llvm.org/D105817
-
Nikita Popov authored
Continuing on from D105780, this should be the last major bit of attribute cleanup. Currently, LLParser implements attribute parsing for functions, parameters and returns separately, enumerating all supported (and unsupported) attributes each time. This patch extracts the common parsing logic, and performs a check afterwards whether the attribute is valid in the given position. Parameters and returns are handled together, while function attributes need slightly different logic to support attribute groups. Differential Revision: https://reviews.llvm.org/D105938
-
Dmitry Vyukov authored
We obtain the current PC is all interceptors and collectively common interceptor code contributes to overall slowdown (in particular cheaper str/mem* functions). The current way to obtain the current PC involves: 4493e1: e8 3a f3 fe ff callq 438720 <_ZN11__sanitizer10StackTrace12GetCurrentPcEv> 4493e9: 48 89 c6 mov %rax,%rsi and the called function is: uptr StackTrace::GetCurrentPc() { 438720: 48 8b 04 24 mov (%rsp),%rax 438724: c3 retq The new way uses address of a local label and involves just: 44a888: 48 8d 35 fa ff ff ff lea -0x6(%rip),%rsi I am not switching all uses of StackTrace::GetCurrentPc to GET_CURRENT_PC because it may lead some differences in produced reports and break tests. The difference comes from the fact that currently we have PC pointing to the CALL instruction, but the new way does not yield any code on its own so the PC points to a random instruction in the function and symbolizing that instruction can produce additional inlined frames (if the random instruction happen to relate to some inlined function). Reviewed By: melver Differential Revision: https://reviews.llvm.org/D106046 -
Victor Huang authored
This patch is in a series of patches to provide builtins for compatibility with the XL compiler. This patch adds the builtins and emit target independent code for rotate related operations. Reviewed By: nemanjai, #powerpc Differential revision: https://reviews.llvm.org/D104744
-
Shilei Tian authored
This reverts commit 1100e4aa.
-
Simon Pilgrim authored
Similar to the folds performed in InstCombinerImpl::foldSelectOpOp, this attempts to push a select further up to help merge a pair of binops. I'm primarily interested in select(cond,add(x,y),add(x,z)) folds to help expose pointer math (see https://bugs.llvm.org/show_bug.cgi?id=51069 etc.) but I've tried to use the more generic isBinOp(). Differential Revision: https://reviews.llvm.org/D106058
-
Aart Bik authored
Note, this revision relies on the following revision for a bugfix in the memref copy library in order for all sparse integration tests to pass. https://reviews.llvm.org/D106036 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D106038
-
Simon Pilgrim authored
As suggested on D106058, tweak the tests to keep the combineRepeatedFPDivisors test coverage.
-
Gabor Marton authored
../../git/llvm-project/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2395:17: warning: 'clang::ento::ProgramStateRef {anonymous}::RangeConstraintManager::setRange(clang::ento::ProgramStateRef, {anonymous}::EquivalenceClass, clang::ento::RangeSet)' defined but not used [-Wunused-function] ../../git/llvm-project/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2384:10: warning: 'clang::ento::RangeSet {anonymous}::RangeConstraintManager::getRange(clang::ento::ProgramStateRef, {anonymous}::EquivalenceClass)' defined but not used [-Wunused-function] Differential Revision: https://reviews.llvm.org/D106063 -
Sander de Smalen authored
This reverts commit efaf3099. This reverts commit dc7bdc1e. Reverting patches due to buildbot failures.
-
Anton Zabaznov authored
Reviewed By: Anastasia Differential Revision: https://reviews.llvm.org/D103191
-
Tim Northover authored
LLVM changed to not emit L... labels for things marked "do_not_dead_strip" because the linker can sometimes drop the flag if there's no proper symbol. This Clang test checked for the old behaviour, but doesn't actually care about that bit.
-
Nathan Sidwell authored
This breaks out some (more) common llvm-specific variables. Controlling the subprojects and target architectures, along with clues about restricting build parallelism when linking. 'more common' is somewhat subjective, of course. Differential Revision: https://reviews.llvm.org/D105822
-
David Green authored
We have a DAG combine for recognizing the sequence of nodes that make up an MVE VQDMULH, but only currently handles specifically legal types. This patch expands that to other power-2 vector types. For smaller than legal types this means any_extending the type and casting it to a legal type, using a VQDMULH where we only use some of the lanes. The result is sign extended back to the original type, to properly set the invalid lanes. Larger than legal types are split into chunks with extracts and concat back together. Differential Revision: https://reviews.llvm.org/D105814
-
Tim Northover authored
The linker can sometimes drop the do_not_dead_strip if it can't associate the atom with a symbol (the other place to specify no dead-stripping in MachO files).
-
liuke authored
The documentation about ignoringImpCasts is wrong, which can cause misunderstandings. This patch fixes it.
-
Roman Lebedev authored
`SinkCommonCodeFromPredecessors()` doesn't itself ensure that duplicate PHI nodes aren't created. I suppose, we could teach it to do that on-the-fly (& account for the already-existing PHI nodes, & adjust costmodel), the diff will be bigger than this. The alternative is to schedule a new EarlyCSE pass invocation somewhere later in the pipeline. Clearly, we don't have any EarlyCSE runs in module optimization passline, so this pattern isn't cleaned up... That would perhaps better, but it will again have some compile time impact. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D106010
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D106057
-
Simon Pilgrim authored
The underlying getMinVectorRegisterBitWidth() methods are const, but it was missed in a couple of TargetTransformInfo wrappers. Noticed while working on D103925
-
Sander de Smalen authored
The sort function for emitting an OptRemark was not deterministic, which caused scalable-call.ll to fail on some buildbots. This patch fixes that. This patch also fixes an issue where `Instruction::comesBefore()` is called when two Instructions are in different basic blocks, which would otherwise cause an assertion failure.
-
Nicolas Vasilache authored
Instead of relying on adhoc bounds calculations, use a projection-based implementation. This simplifies the implementation and finds more static constant sizes than previously/ Differential Revision: https://reviews.llvm.org/D106054
-
Louis Dionne authored
The test triggers availability errors.
-
Stephen Tozer authored
Reapplied after previous build failures were fixed in 14b62f7e. This reverts commit 540b4a5f.
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D105816
-
Louis Dionne authored
add_lit_testsuite() takes Lit parameters passed to it and adds them to the parameters used globally when running all test suites. That means that a target like `check-all`, which ends up calling Lit on the whole monorepo, will see the test parameters for all the individual project's test suites. So, for example, it would see `--param std=c++03` (from libc++abi), and `--param std=c++03` (from libc++), and `--param whatever` (from another project being tested at the same time). While always unclean, that works when the parameters all agree. However, if the parameters share the same name but have different values, only one of those two values will be used and it will be incredibly confusing to understand why one of the test suites is being run with the incorrect parameter value. For that reason, this commit moves away from using add_lit_testsuite()'s PARAM functionality, and serializes the parameter values for the runtimes in the generated config.py file instead, which is local to the specific test suite. Differential Revision: https://reviews.llvm.org/D105991
-
Fraser Cormack authored
-
Simon Pilgrim authored
Will help show codegen diffs in an upcoming patch
-
Simon Pilgrim authored
[InstCombine] Strip inbounds from (select C, (gep Ptr, Idx), Ptr) -> (gep Ptr, (select C, Idx, 0)) fold As discussed on rGd561b6fb, we can't guarantee that the new gep is inbounds
-
Simon Pilgrim authored
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D106050
-
Irina Dobrescu authored
Differential Revision: https://reviews.llvm.org/D105696
-
Sebastian Neubauer authored
Meta instructions have a size of 0. Use isMetaInstruction instead of listing them explicitly. Differential Revision: https://reviews.llvm.org/D106043
-
Ilya Leoshkevich authored
Define the address ranges (similar to the C/C++ ones, but with the heap range merged into the app range) and enable the sanity check. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D105629
-
Ilya Leoshkevich authored
Enable building the runtime and enable -fsanitize=thread in clang. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D105629
-
Ilya Leoshkevich authored
XFAIL map32bit, define the maximum possible allocation size in mmap_large.cpp. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D105629
-
Ilya Leoshkevich authored
Reuse the assembly glue code from sanitizer_common_interceptors.inc and the handling logic from the __tls_get_addr interceptor. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D105629
-