- May 17, 2021
-
-
Max Kazantsev authored
%limit in these tests is supposed to be positive.
-
Adam Paszke authored
At the moment `MlirModule`s can be converted to `MlirOperation`s, but not the other way around (at least not without going around the C API). This makes it impossible to e.g. run passes over a `ModuleOp` created through `mlirOperationCreate`. Reviewed By: nicolasvasilache, mehdi_amini Differential Revision: https://reviews.llvm.org/D102497
-
Simon Pilgrim authored
Ensure we tell getShiftAmountTy that we're working with pre-legalized types to prevent cases where the (legalized) shift type can no longer handle the (non-legalized) type width. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34366
-
Florian Hahn authored
This reverts commit 5dad3d1b. The added test (signal_block2.cpp) does not terminate on some Darwin configurations and is causing Green Dragon bots to fail. First failure of the test started in http://green.lab.llvm.org/green/job/clang-stage1-RA/20767/
-
Tim Northover authored
Swift's new concurrency features are going to require guaranteed tail calls so that they don't consume excessive amounts of stack space. This would normally mean "tailcc", but there are also Swift-specific ABI desires that don't naturally go along with "tailcc" so this adds another calling convention that's the combination of "swiftcc" and "tailcc". Support is added for AArch64 and X86 for now.
-
Michael Spencer authored
This patch adds support for inferred modules to the dependency scanner. Effectively a cherry-pick of https://github.com/apple/llvm-project/pull/699 authored by @Bigcheese with libclang and other changes omitted. Contains following changes: 1. [Clang][ScanDeps] Ignore __inferred_module.map dependency. * This shows up with inferred modules, but it doesn't exist on disk, so don't report it as a dependency. 2. [Clang][ScanDeps] Use the module map a module was inferred from for inferred modules. Also includes a smoke test that uses clang-scan-deps output to perform an explicit build. There's no intention to duplicate whatever `test/Modules` contains, just to verify the produced command-line does "work" (with very loose definition of work). Split from D100934. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D102495
-
Julian Gross authored
Splitting the memref dialect lead to an introduction of several dependencies to avoid compilation issues. The canonicalize pass also depends on the memref dialect, but it shouldn't. This patch resolves the dependencies and the unintuitive includes are removed. However, the dependency moves to the constructor of the std dialect. Differential Revision: https://reviews.llvm.org/D102060
-
Tobias Gysi authored
Replace the templated linalgLowerOpToLoops method by three specialized methods linalgOpToLoops, LinalgOpToParallelLoops, and linalgOpToAffineLoops. Differential Revision: https://reviews.llvm.org/D102324
-
Jacob Bramley authored
AArch64's fctv* instructions implement the saturating behaviour that the fpto*i.sat intrinsics require, in cases where the destination width matches the saturation width. Lowering them removes a lot of unnecessary generated code. Only scalar lowerings are supported for now. Differential Revision: https://reviews.llvm.org/D102353
-
Raphael Isemann authored
This is just a dotest check to see if we can compile a simple program that uses libc++. Right now we are parsing the rather big `algorithm` header in the test program, but the test really just checks whether we can find *any* libc++ headers and link against some libc++ SO. Using the much smaller `cassert` header for checking whether we can find libc++ headers speeds up this check by a bit. After some incredibly unscientific performance testing this saves a few seconds when running the test suite on Linux (on macOS we hardcoded that libc++ is always there, so this check won't be used there and we don't save any time). Reviewed By: jankratochvil Differential Revision: https://reviews.llvm.org/D101056
-
Utkarsh Saxena authored
Tweaks like DefineOutline depend on FS to be set at `apply()` time. After https://reviews.llvm.org/D93978, tweaks run from Check tool lost access to FS. This makes the available to apply() once again. Differential Revision: https://reviews.llvm.org/D102519
-
Raphael Isemann authored
This patch specifies a few guidelines that our API tests should follow. The motivations for this are twofold: 1. API tests have unexpected pitfalls that especially new contributors run into when writing tests. To prevent the frustration of letting people figure those pitfalls out by trial-and-error, let's just document them briefly in one place. 2. It prevents some arguing about what is the right way to write tests. I really like to have fast and reliable API test suite, but I also don't want to be the bogeyman that has to insist in every review that the test should be rewritten to not launch a process for no good reason. It's much easier to just point to a policy document. I omitted some guidelines that I think could be controversial (e.g., the whole "should assert message describe failure or success"). Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D101153
-
Michael Spencer authored
This patch enables explicitly building inferred modules. Effectively a cherry-pick of https://github.com/apple/llvm-project/pull/699 authored by @Bigcheese with libclang and dependency scanner changes omitted. Contains the following changes: 1. [Clang] Fix the header paths in clang::Module for inferred modules. * The UmbrellaAsWritten and NameAsWritten fields in clang::Module are a lie for framework modules. For those they actually are the path to the header or umbrella relative to the clang::Module::Directory. * The exception to this case is for inferred modules. Here it actually is the name as written, because we print out the module and read it back in when implicitly building modules. This causes a problem when explicitly building an inferred module, as we skip the printing out step. * In order to fix this issue this patch adds a new field for the path we want to use in getInputBufferForModule. It also makes NameAsWritten actually be the name written in the module map file (or that would be, in the case of an inferred module). 2. [Clang] Allow explicitly building an inferred module. * Building the actual module still fails, but make sure it fails for the right reason. Split from D100934. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D102491
-
Florian Hahn authored
This reverts commit 2a73b7bd. This appears to be causing the following failures on GreenDragon: LeakSanitizer-AddressSanitizer-x86_64 :: TestCases/many_threads_detach.cpp LeakSanitizer-Standalone-x86_64 :: TestCases/many_threads_detach.cpp First failure: http://green.lab.llvm.org/green/job/clang-stage1-RA/20754/ Still failing in latest build: http://green.lab.llvm.org/green/job/clang-stage1-RA/20928/
-
Fraser Cormack authored
The select-of-constants transform was asserting that its constant vector inputs did not implicitly truncate their input without that as an explicit precondition to the function. This patch relaxes that assertion into an early return to skip the optimization. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D102393
-
Kristina Bessonova authored
-
OCHyams authored
Currently the DexLimitSteps command requires at least one condition. This patch lets users elide the condition to specify that the breakpoint range should always be activated when the leading line is stepped on. This patch also updates the terminology used in the `ConditionalController` class from the terms 'conditional' and 'unconditional' to 'leading' and 'trailing' when referring to the breakpoints in the DexLimitSteps range because the leading breakpoint can now be unconditional. Reviewed By: chrisjackson Differential Revision: https://reviews.llvm.org/D101438
-
OCHyams authored
Remove the `ConditionalController._conditional_met` method. This was missed in the recent ConditionalController refactor (D98699). We don't need to check that the conditions for a conditional breakpoint have been met because `DebuggerBase.get_triggered_breakpoint_ids` returns the set of ids for breakpoints which have been triggered. To get the "triggered breakpoints" from lldb we use `GetStopReasonDataCount` and `GetStopReasonDataAtIndex`. It seems that these functions count all breakpoints associated with the location which lldb has stopped at, regardless of their condition. i.e. Even if we have two breakpoints at the same source location that have mutually exclusive conditions, both will be found this way when either condition is true. To get around this, we store a map of breakpoint {id: condition} `_breakpoint_conditions` and evaluate the conditions of the triggered breakpoints to filter the set down to those which are unconditional or have a condition which evaluates to true. Essentially we are just moving the condition double check from a general debugger controller into the lldb specific wrapper. This tidy up will help make upcoming patches simpler. Reviewed By: chrisjackson Differential Revision: https://reviews.llvm.org/D101431 -
Mateusz Mikuła authored
Differential Revision: https://reviews.llvm.org/D102514
-
Jan Svoboda authored
This member function was introduced in 0a92e09c ([clang][deps] Generate the full command-line for modules) in order to keep the CompilerInvocation object alive after CompilerInstance goes out of scope. However, d3fb4b90 ([clang][deps] NFC: Report modules' context hash) removes that use-case, making this function dead.
-
Chen Zheng authored
-
Jan Svoboda authored
This patch eagerly constructs and modifies CompilerInvocation of modular dependencies in order to report the correct context hash instead of the hash of the original translation unit. No functionality change here, since we currently don't modify CompilerInvocation in a way that affects the context hash. Depends on D102473. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D102482
-
Jan Svoboda authored
The context hash of modular dependencies can be different from the context hash of the original translation unit if we modify their `CompilerInvocation`s. Stop assuming the TU's context hash everywhere. No functionality change here, since we're still currently using the unmodified TU CompilerInvocation to compute the context hash. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D102473
-
Adrian Kuegel authored
BEGIN_PUBLIC Add support for complex constants to MLIR core. END_PUBLIC Differential Revision: https://reviews.llvm.org/D101908
-
Matthias Springer authored
Add TransferWritePermutationLowering, which replaces permutation maps of TransferWriteOps with vector.transpose. Differential Revision: https://reviews.llvm.org/D102548
-
Matthias Springer authored
The in_bounds attribute should also be transposed. Differential Revision: https://reviews.llvm.org/D102572
-
Hongtao Yu authored
With prelink inlining, pseudo probes with same ID can come from different inline contexts. Such probes should not share samples and their factors should be fixed up separately. I'm seeing 0.3% speedup for SPEC2017 overall. Benchmark 631.deepsjeng_s benefits the most, about 4%. Reviewed By: wenlei, wmi Differential Revision: https://reviews.llvm.org/D102429
-
Arthur Eubanks authored
This reverts commit 16748bd2. Causes https://crbug.com/1209013
-
Arthur Eubanks authored
This reverts commit 85af8a8c.
-
Pan, Tao authored
ScheduleDAGFast.cpp is compiled to object file, but the ScheduleDAGFast object file isn't linked into clang executable file as no symbol is referred by outside. Add calling to createXxx of ScheduleDAGFast.cpp, then the ScheduleDAGFast object file will be linked into clang executable file. The static RegisterScheduler will register scheduler fast and linearize at clang boot time. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D101601
-
Ben Shi authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D102398
-
Vitaly Buka authored
-
Ben Shi authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D102396
-
Harald van Dijk authored
D62727 removed GotEntrySize and GotPltEntrySize with a comment that they are always equal to wordsize(), but that is not entirely true: X32 has a word size of 4, but needs 8-byte GOT entries. This restores gotEntrySize for both, adjusted for current naming conventions, but defaults it to config->wordsize to keep things simple for architectures other than x86_64. This partially reverts D62727. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D102509
-
David Blaikie authored
-
Craig Topper authored
The ComplexPattern is looking for an immediate in a certain range that has a single use. This can be handled with a PatLeaf since we aren't matching multiple patterns or checking any complicated relationships between nodes. This shrinks the isel table a little bit since tablegen no longer has to generate patterns with commuted operands. With the PatLeaf, tablegen can see we're matching an immediate which should always be on the right hand side of add. Reviewed By: benshi001 Differential Revision: https://reviews.llvm.org/D102510
-
Fangrui Song authored
-
Alessandro Decina authored
Add "w" constraint type which allows selecting 32 bit registers. 32 bit registers were added in https://reviews.llvm.org/rGca31c3bb3ff149850b664838fbbc7d40ce571879. Differential Revision: https://reviews.llvm.org/D102118
-
Florian Hahn authored
Recommit D102489, with the test case requiring the AArch64 backend. This reverts the revert 59b419ad.
-
Danila Kutenin authored
Fix ternary operator in for loop argument, it was by mistake not set as CanBeForRangeDecl and led to incorrect codegen. It fixes https://bugs.llvm.org/show_bug.cgi?id=50038. I don't have commit rights. Danila Kutenin. kutdanila@yandex.ru Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D102502
-