- Oct 13, 2020
-
-
Wang, Pengfei authored
For more details about these instructions, please refer to the latest ISE document: https://software.intel.com/en-us/download/intel-architecture-instruction-set-extensions-programming-reference. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D89102
-
Adrian Prantl authored
There's a place in swift-lldb where it is useful to create a copy of an lldb_private::Variable. Adding these two accessors makes this possible.
-
Fangrui Song authored
The new behavior is consistent with llvm-mc -filetype=null.
-
Sam Clegg authored
This flag works in a similar way to the ELF linker in that it will resolve any defined symbols to their local definition with a shared library or -pie executable. This flag has no effect on static linking. Differential Revision: https://reviews.llvm.org/D89152
-
Ruiling Song authored
This can fix an asan failure like below. ==15856==ERROR: AddressSanitizer: use-after-poison on address ... READ of size 8 at 0x6210001a3cb0 thread T0 #0 llvm::MachineInstr::getParent() #1 llvm::LiveVariables::VarInfo::findKill() #2 TwoAddressInstructionPass::rescheduleMIBelowKill() #3 TwoAddressInstructionPass::tryInstructionTransform() #4 TwoAddressInstructionPass::runOnMachineFunction() We need to update the Kills if we replace instructions. The Kills may be later accessed within TwoAddressInstruction pass. Differential Revision: https://reviews.llvm.org/D89092 -
Jonas Devlieghere authored
Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake so that it can be used from standalone builds of clang and lldb. Currently, there is no way for standalone builds to know whether this option was set which means that it only applies to LLVM. Differential revision: https://reviews.llvm.org/D89282
-
Bruno Cardoso Lopes authored
They can get stale at use time because of updates from other recursive specializations. Instead, rely on the existence of previous declarations to add the specialization. Differential Revision: https://reviews.llvm.org/D87853
-
Dave Lee authored
Small cleanup to `lldb_private::GetVersion()`. Differential Revision: https://reviews.llvm.org/D88939
-
Dave Lee authored
This test On macOS, this test can instead return `status = 0 (0x00000000) Terminated due to signal 6`. This updates the `CHECK` accordingly. Differential Revision: https://reviews.llvm.org/D89273
-
Nathan Ridge authored
Fixes https://github.com/clangd/clangd/issues/500 Differential Revision: https://reviews.llvm.org/D88463
-
Jonas Devlieghere authored
-
Jonas Devlieghere authored
-
Craig Topper authored
Happened to notice some of these printing as UnknownCode while running llvm-bcanalyzer on a bc file I had. Differential Revision: https://reviews.llvm.org/D86900
-
Xun Li authored
Some tests start to fail after https://reviews.llvm.org/D89066. It's because the size of pointers are different on different targets. Limit the target in the command so there is no confusion. Also noticed I had typo in the test name. Adding disable-llvm-passes option to make the test more stable as well. Differential Revision: https://reviews.llvm.org/D89269
-
Stella Laurenzo authored
* Links against libMLIR.so if the project is built for DYLIBs. * Puts things in the right place in build and install time python/ trees so that RPaths line up. * Adds install actions to install both the extension and sources. * Copies py source files to the build directory to match (consistent layout between build/install time and one place to point a PYTHONPATH for tests and interactive use). * Finally, "import mlir" from an installed LLVM just works. Differential Revision: https://reviews.llvm.org/D89167
-
Eli Friedman authored
It looks like there's still some room for optimization; the funnel shift lowering is more efficient than the lowering of actual shifts.
-
Duncan P. N. Exon Smith authored
This is a prep patch for changing SourceManager to return `Optional<MemoryBufferRef>` instead of `MemoryBuffer`. With that change the address of the MemoryBuffer will be gone, so instead use the start of the buffer as the key for this map. No functionality change intended, as it's expected that the pointer identity matches between the buffers and the buffer data. Radar-Id: rdar://70139990 Differential Revision: https://reviews.llvm.org/D89136
-
Erich Keane authored
See PR47804: TreeTransform uses TransformedLocalDecls as a map of declarations that have been transformed already. When doing a "TransformDecl", which happens in the cases of updating a DeclRefExpr's target, the default implementation simply returns the already transformed declaration. However, this was not including ParmVarDecls. SO, any use of TreeTransform that didn't re-implement TransformDecl would NOT properly update the target of a DeclRefExpr, resulting in odd behavior. In the case of Typo-recovery, the result was that a lambda that used its own parameter would cause an error, since it thought that the ParmVarDecl referenced was a different lambda. Additionally, this caused a problem in the AST (a declrefexpr into another scope) such that a future instantiation would cause an assertion. This patch ensures that the ParmVarDecl transforming process records into TransformedLocalDecls so that the DeclRefExpr is ALSO updated.
-
Sanjay Patel authored
This is NFC-intended (the reductions and other intrinsics have tests that should provide coverage) - trying to untangle the mess that has formed here. We were stripping the arguments off of the given "IntrinsicCostAttributes" and then semi-recursively calling back into getIntrinsicInstrCost() only to then call getTypeBasedIntrinsicInstrCost(), so make that call directly instead.
-
Duncan P. N. Exon Smith authored
Avoid need for getBufferPtr API, simplifying another patch. No functionality change.
-
Paul C. Anagnostopoulos authored
and use in PseudoLowering backend. Now the two getAllDerivedDefinitions() use StringRef and Arrayref. Use all_of() in getAllDerivedDefinitions().
-
Craig Topper authored
-
Mateusz Mikuła authored
Otherwise it's easy to hit 2^16 DLL exports limit. Differential Revision: https://reviews.llvm.org/D89225
-
Martin Storsjö authored
This error has been present since 5519e4da. Differential Revision: https://reviews.llvm.org/D89027
-
Martin Storsjö authored
This unfortunately means that we don't execute C++ destructors when unwinding past such frames for a different SEH unwind purpose (e.g. as part of setjmp/longjmp), but that case isn't handled properly at the moment (the original unwind intent is lost and we end up with an unhandled exception). This patch makes sure the foreign unwind terminates as intended. After executing a handler, _Unwind_Resume doesn't have access to the target frame parameter of the original foreign unwind. We also currently blindly set ExceptionCode to STATUS_GCC_THROW - we could set that correctly by storing the original code in _GCC_specific_handler, but we don't have access to the original target frame value. This also matches what libgcc's SEH unwinding code does in this case. Differential Revision: https://reviews.llvm.org/D89231
-
JonChesterfield authored
[libomptarget][amdgcn] Implement partial barrier named_sync is used to coordinate non-spmd kernels. This uses bar.sync on nvptx. There is no corresponding ISA support on amdgcn, so this is implemented using shared memory, one word initialized to zero. Each wave increments the variable by one. Whichever wave is last is responsible for resetting the variable to zero, at which point it and the others continue. The race condition on a wave reaching the barrier before another wave has noticed that it has been released is handled with a generation counter, packed into the same word. Uses a shared variable that is not needed on nvptx. Introduces a new hook, kmpc_impl_target_init, to allow different targets to do extra initialization. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D88602
-
Nicolas Vasilache authored
The TensorConstantOp bufferize conversion pattern has a bug that makes it incorrect in the case of vectors whose alignment is not the natural alignment. Circumvent it temporarily by using a power of 2. Differential Revision: https://reviews.llvm.org/D89265
-
Nico Weber authored
It's built with just-built clang, like all other compiler-rt parts in the GN build. This requires adding some cross build support to the mac toolchain. Also add explicit mmacosx-version-min and miphoneos-version-min flags to the build. ios.a is only built with the arm64 slice, iossim.a only with the x86_64 slice for now. (The latter should maybe become host_cpu when Arm Macs become a common iOS development platform.) With this, it's possible to build chromium/iOS with a GN-built LLVM. Differential Revision: https://reviews.llvm.org/D89260
-
Tony authored
Change-Id: Ie409f86876b0437d0b0405aff42872963708d926 Differential Revision: https://reviews.llvm.org/D89259
-
Roman Lebedev authored
Reland "[SCEV] Model ptrtoint(SCEVUnknown) cast not as unknown, but as zext/trunc/self of SCEVUnknown" This relands commit 1c021c64 which was reverted in commit 17cec6a1 because an assertion was being triggered, since `BuildConstantFromSCEV()` wasn't updated to handle the case where the constant we want to truncate is actually a pointer. I was unsuccessful in coming up with a test case where we'd end there with constant zext/sext of a pointer, so i didn't handle those cases there until there is a test case. Original commit message: While we indeed can't treat them as no-ops, i believe we can/should do better than just modelling them as `unknown`. `inttoptr` story is complicated, but for `ptrtoint`, it seems straight-forward to model it just as a zext-or-trunc of unknown. This may be important now that we track towards making inttoptr/ptrtoint casts not no-op, and towards preventing folding them into loads/etc (see D88979/D88789/D88788) Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D88806
-
Roman Lebedev authored
Reduced from the https://reviews.llvm.org/D88806#2325340
-
Arthur Eubanks authored
This reverts commit 9dcd96f7. See https://crbug.com/1134762.
-
Cameron McInally authored
This seems to be a typo that propagated to a number of tests. Replace VBITS_GE_256 with CHECK. There is no VBITS_GE_256.
-
Walter Erquinigo authored
Depends on D88841 As per the discussion in the RFC, we'll implement both thread trace dump [instructions | functions] This is the first step in implementing the "instructions" dumping command. It includes: - A minimal ProcessTrace plugin for representing processes from a trace file. I noticed that it was a required step to mimic how core-based processes are initialized, e.g. ProcessElfCore and ProcessMinidump. I haven't had the need to create ThreadTrace yet, though. So far HistoryThread seems good enough. - The command handling itself in CommandObjectThread, which outputs a placeholder text instead of the actual instructions. I'll do that part in the next diff. - Tests {F13132325} Differential Revision: https://reviews.llvm.org/D88769 -
Valentin Clement authored
This patch upstream the lowering of Data construct that was initially done in https://github.com/flang-compiler/f18-llvm-project/pull/460. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D88918
-
Xun Li authored
In https://reviews.llvm.org/D87470 I added the change to tighten the lifetime of the expression awaiter.await_suspend().address. Howver it was incorrect. ExprWithCleanups will call the dtor and end the lifetime for all the temps created in the current full expr. When this is called on a normal await call, we don't want to do that. We only want to do this for the call on the final_awaiter, to avoid writing into the frame after the frame is destroyed. This change fixes it, by checking IsImplicit. Differential Revision: https://reviews.llvm.org/D89066
-
brett koonce authored
-
Ben Vanik authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D89255
-
Adrian McCarthy authored
A Windows-style LLDB_PYTHON_HOME path in a Cmake template didn't have the backslashes escaped, which led to a garbled paths derived from it. Fixed by expanding the environment variable as a raw string literal. Differential Revision: https://reviews.llvm.org/D89256
-
Arthur Eubanks authored
alloca-dbgdeclare-merge.ll: alloca-merge-align.ll: array_merge.ll: NPM inliner does not merge allocas delete-call.ll: NPM inliner does not delete readonly calls externally_available.ll: NPM inliner does not delete available_externally functions inline-cold-callee.ll: inline-hot-callee.ll: inline-hot-callee.ll has a comment saying it only applies to legacy PM, I assume same for inline-cold-callee.ll devirtualize-2.ll: inline-hot-callsite: monster_scc.ll: pr22285.ll: already has legacy and new PM RUN lines inline-cold.ll: profile-summary required to see callee as cold prof-update-sample.ll: profile-summary required to update branch_weights Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D89093
-