- Nov 03, 2020
-
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D90572
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D90571
-
Esme-Yi authored
Summary: This patch depends on D89846. We have the patterns to fold 2 RLWINMs in ppc-mi-peephole, while some RLWINM will be generated after RA, for example rGc4690b00. If the RLWINM generated after RA followed by another RLWINM, we expect to perform the optimization after RA, too. Reviewed By: shchenz, steven.zhang Differential Revision: https://reviews.llvm.org/D89855
-
Martin Storsjö authored
error_code returned from functions might not be of the generic category, but of the system category, which can have different error code values. Use default_error_condition() to remap errors to the generic category where possible, to allow comparing them to the expected values. Use the ErrorIs() helper instead of a direct comparison against an excpected value. Differential Revision: https://reviews.llvm.org/D90602
-
Martin Storsjö authored
So far, most actual uses of libc++ std::filesystem probably use the sendfile or fcopyfile implementations. Differential Revision: https://reviews.llvm.org/D90601
-
Martin Storsjö authored
This was missed in 5c39eebc. Differential Revision: https://reviews.llvm.org/D90600
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D89947
-
Martin Storsjö authored
Prepend the root path on the already_absolute testcase, and construct a path ending with the preferred separator for the test reference for "foo/". Differential Revision: https://reviews.llvm.org/D89944
-
Martin Storsjö authored
Various definitions from libcxx need to be set in the same way as if building libcxx itself. Differential Revision: https://reviews.llvm.org/D90476
-
Stephan Bergmann authored
e00629f7 "[scan-build] Fix clang++ pathname" had removed the -MAJOR.MINOR suffix, but since presumably LLVM 7 the suffix is only -MAJOR, so ClangCXX (i.e., the CLANG_CXX environment variable passed to clang/tools/scan-build/libexec/ccc-analyzer) now contained a non-existing /path/to/clang-12++ (which apparently went largely unnoticed as clang/tools/scan-build/libexec/ccc-analyzer falls back to just 'clang++' if the executable denoted by CLANG_CXX does not exist). For the new clang/test/Analysis/scan-build/cxx-name.test to be effective, %scan-build must now take care to pass the clang executable's resolved pathname (i.e., ending in .../clang-MAJOR rather than just .../clang) to --use-analyzer. Differential Revision: https://reviews.llvm.org/D89481
-
Max Kazantsev authored
-
Craig Topper authored
These were being selected to ROL/ROR, but DAG combine should canonicalize fshl/fshr with same inputs to rotl/rotr which we also have patterns for.
-
Max Kazantsev authored
If we know that some check will not be executed on the last iteration, we can use this fact to eliminate its check. Differential Revision: https://reviews.llvm.org/D88210 Reviwed By: ebrevnov
-
Esme-Yi authored
Summary: We have the patterns to fold 2 RLWINMs in ppc-mi-peephole, while some RLWINM will be generated after RA, for example D88274. If the RLWINM generated after RA followed by another RLWINM, we expect to perform the optimization after RA, too. This is a NFC patch to move the folding patterns to PPCInstrInfo, and the follow-up works will be calling it in pre-emit-peephole and expand the patterns to handle more cases. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D89846
-
Sameeran joshi authored
`OmpStructureChecker` has too much boilerplate code in source file. It was not easy to figure out the seperation of clauses inside 'OmpClause' and the ones which had a seperate node in parse-tree.h. This patch: 1. Removes the boilerplate by defining a few macros. 2. Makes seperation between constructs, directives and clauses(sub classes are seperated). 3. Macros could have been shared between OMP and OACC, template specilizations might have been costly hence used macros. Follows the same strategy used for `AccStructureChecker`. Next patch in series to simplify OmpStructureChecker would try to simplify boilerplates inside the functions and either create abstractions or use if something is available inside check-directive-structure.h Reviewed By: kiranchandramohan, clementval Differential Revision: https://reviews.llvm.org/D90324
-
Serge Pavlov authored
This test was removed in 5963e028 because it failed on cores where support of constrained intrinsics was limited. Now this test is enabled only on x86.
-
Atmn Patel authored
Presently, there a number of global variables in libomptarget (devices, RTLs, tables, mutexes, etc.) that are not placed within a struct. This patch places them into a struct ``PluginManager``. All of the functions that act on this data remain free. Differential Revision: https://reviews.llvm.org/D90519
-
Fangrui Song authored
-
Fangrui Song authored
-
Vitaly Buka authored
-
Jessica Clarke authored
Arm EHABI has a null LSDASection as it does its own thing, so we should continue to return null in that case rather than try and cast it.
-
Jessica Clarke authored
ADDI often has a frameindex in operand 1, but consumers of this interface, such as MachineSink, tend to call getReg() on the Destination and Source operands, leading to the following crash when building FreeBSD after this implementation was added in 8cf6778d: ``` clang: llvm/include/llvm/CodeGen/MachineOperand.h:359: llvm::Register llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed. PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: #0 0x00007f4286f9b4d0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) llvm/lib/Support/Unix/Signals.inc:563:0 #1 0x00007f4286f9b587 PrintStackTraceSignalHandler(void*) llvm/lib/Support/Unix/Signals.inc:630:0 #2 0x00007f4286f9926b llvm::sys::RunSignalHandlers() llvm/lib/Support/Signals.cpp:71:0 #3 0x00007f4286f9ae52 SignalHandler(int) llvm/lib/Support/Unix/Signals.inc:405:0 #4 0x00007f428646ffd0 (/lib/x86_64-linux-gnu/libc.so.6+0x3efd0) #5 0x00007f428646ff47 raise /build/glibc-2ORdQG/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0 #6 0x00007f42864718b1 abort /build/glibc-2ORdQG/glibc-2.27/stdlib/abort.c:81:0 #7 0x00007f428646142a __assert_fail_base /build/glibc-2ORdQG/glibc-2.27/assert/assert.c:89:0 #8 0x00007f42864614a2 (/lib/x86_64-linux-gnu/libc.so.6+0x304a2) #9 0x00007f428d4078e2 llvm::MachineOperand::getReg() const llvm/include/llvm/CodeGen/MachineOperand.h:359:0 #10 0x00007f428d8260e7 attemptDebugCopyProp(llvm::MachineInstr&, llvm::MachineInstr&) llvm/lib/CodeGen/MachineSink.cpp:862:0 #11 0x00007f428d826442 performSink(llvm::MachineInstr&, llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::SmallVectorImpl<llvm::MachineInstr*>&) llvm/lib/CodeGen/MachineSink.cpp:918:0 #12 0x00007f428d826e27 (anonymous namespace)::MachineSinking::SinkInstruction(llvm::MachineInstr&, bool&, std::map<llvm::MachineBasicBlock*, llvm::SmallVector<llvm::MachineBasicBlock*, 4u>, std::less<llvm::MachineBasicBlock*>, std::allocator<std::pair<llvm::MachineBasicBlock* const, llvm::SmallVector<llvm::MachineBasicBlock*, 4u> > > >&) llvm/lib/CodeGen/MachineSink.cpp:1073:0 #13 0x00007f428d824a2c (anonymous namespace)::MachineSinking::ProcessBlock(llvm::MachineBasicBlock&) llvm/lib/CodeGen/MachineSink.cpp:410:0 #14 0x00007f428d824513 (anonymous namespace)::MachineSinking::runOnMachineFunction(llvm::MachineFunction&) llvm/lib/CodeGen/MachineSink.cpp:340:0 ``` Thus, check that operand 1 is also a register in the condition. Reviewed By: arichardson, luismarques Differential Revision: https://reviews.llvm.org/D89090
-
Jonas Devlieghere authored
Remove commented out code and print statements.
-
Jonas Devlieghere authored
Python doesn't support enums before PEP 435, but using a class with constants is how it's commonly emulated. It can be converted into a real Enum (in Python 3.4 and later) by extending the Enum class: class CrashLogParseMode(Enum): NORMAL = 0 THREAD = 1 IMAGES = 2 THREGS = 3 SYSTEM = 4 INSTRS = 5 -
Qiu Chaofan authored
Vector types, quadword integers and f128 currently cannot be handled in FastISel. We did not skip f128 type in lowering arguments, which causes a crash. This patch will fix it. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D90206
-
Qiu Chaofan authored
Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D90581
-
Jonas Devlieghere authored
Don't try to guess the location of LLDB.framework but use xcrun to ask the command line driver for the location of the lldb module.
-
Sam McCall authored
I think this was just an oversight. Differential Revision: https://reviews.llvm.org/D90541
-
Fangrui Song authored
-
Alina Sbirlea authored
The API `canSinkOrHoistInst` may be called by LoopSink. Add assert to avoid having two analyses passed in.
-
Vitaly Buka authored
-
Akira Hatanaka authored
-
Diego Caballero authored
This patch renames AffineParallelNormalize to AffineLoopNormalize to make it more generic and be able to hold more loop normalization transformations in the future for affine.for and affine.parallel ops. Eventually, it could also be extended to support scf.for and scf.parallel. As a starting point for affine.for, the patch also adds support for removing single iteration affine.for ops to the the pass. Differential Revision: https://reviews.llvm.org/D90267
-
Reid Kleckner authored
parallelTransformReduce is modelled on the C++17 pstl API of std::transform_reduce, except our wrappers do not use execution policy parameters. parallelForEachError allows loops that contain potentially failing operations to propagate errors out of the loop. This was one of the major challenges I encountered while parallelizing PDB type merging in LLD. Parallelizing a loop with parallelForEachError is not behavior preserving: the loop will no longer stop on the first error, it will continue working and report all errors it encounters in a list. I plan to use this to propagate errors out of LLD's coff::TpiSource::remapTpiWithGHashes, which currently stores errors an error in the TpiSource object. Differential Revision: https://reviews.llvm.org/D90639
-
Fangrui Song authored
In the wild, kexec-tools purgatory/arch/ppc64/v2wrap.S and hvcall.S use this directive.
-
MaheshRavishankar authored
Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D90582
-
Alex Lorenz authored
The __isPlatformVersionAtLeast routine is an implementation of `if (@available)` check that uses the _availability_version_check API on Darwin that's supported on macOS 10.15, iOS 13, tvOS 13 and watchOS 6. Differential Revision: https://reviews.llvm.org/D90367
-
Louis Dionne authored
The strings were concatenated together without adding spaces between numbers, which lead to numbers that wouldn't fit in an unsigned int. Thanks to Casey Carter for the find.
-
Kostya Kortchinsky authored
- we have clutter-reducing helpers for relaxed atomics that were barely used, use them everywhere we can - clang-format everything with a recent version Differential Revision: https://reviews.llvm.org/D90649
-
Fangrui Song authored
This is a pre-existing problem exposed by D90511 (asan failurs with clang/test/Driver/relax.s and a few other tests).
-