- Jul 27, 2022
-
-
Sanjay Patel authored
We already call the more general isImpliedCondition() (which calls isImpliedTrueByMatchingCmp() internally) from simplifyAndInst() and simplifyOrInst(). There was a difference visible with this change on a vector test before a925bef7, but I can't find any gaps now.
-
LLVM GN Syncbot authored
-
Blue Gaston authored
Currently, m{platform}-version-min is default flag used to set min deployment target within compilter-rt and sanitizers. However, clang uses flags -target and -mtargetos for setting target triple and minimum deployment targets. -mtargetos will be the preferred flag to set min version in the future and the ${platform}-version-min flag will not be used for future platforms. This change allows darwin platforms to use either ${platform}-min-version or -mtargetos without breaking lit test flags that allows for overriding the default min value in lit tests Tests using flags: 'darwin_min_target_with_tls_support', 'min_macos_deployment_target' will no longer fail if they use mtargetos instead of version-min. rdar://81028225 Differential Revision: https://reviews.llvm.org/D130542 -
Lambert, Jacob authored
This reverts commit 8348c409.
-
Francis Visoiu Mistrih authored
Assert when the extracted vector is wider than the row/column. Differential Revision: https://reviews.llvm.org/D130173
-
Craig Topper authored
These are aliases that allow the immediate offset to be ommitted. We had predicates for the RV64, RV32+F, and D versions, but not the base versions. I've also re-ordered them to share Predicate lines to improve readability.
-
Francis Visoiu Mistrih authored
The three loops have the same structure: index, header, latch.
-
Jessica Paquette authored
Allows us to select scalar instructions on AArch64. Differential Revision: https://reviews.llvm.org/D115381
-
Sam Estep authored
This patch adds initial support for context-sensitive analysis of simple functions whose definition is available in the translation unit, guarded by the `ContextSensitive` flag in the new `TransferOptions` struct. When this option is true, the `VisitCallExpr` case in the builtin transfer function has a fallthrough case which checks for a direct callee with a body. In that case, it constructs a CFG from that callee body, uses the new `pushCall` method on the `Environment` to make an environment to analyze the callee, and then calls `runDataflowAnalysis` with a `NoopAnalysis` (disabling context-sensitive analysis on that sub-analysis, to avoid problems with recursion). After the sub-analysis completes, the `Environment` from its exit block is simply assigned back to the environment at the callsite. The `pushCall` method (which currently only supports non-method functions with some restrictions) maps the `SourceLocation`s for all the parameters to the existing source locations for the corresponding arguments from the callsite. This patch adds a few tests to check that this context-sensitive analysis works on simple functions. More sophisticated functionality will be added later; the most important next step is to explicitly model context in some fields of the `DataflowAnalysisContext` class, as mentioned in a `FIXME` comment in the `pushCall` implementation. Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D130306
-
Craig Topper authored
-Missing CHECK-NO-EXT and CHECK-NO-RV64 on subw. -Stray CHECK-NO-RV64 on c.slli. -c.slli used immediate 1 instead of RV64 only immediate like 63. -Missing CHECK-NO-EXT on c.srli and c.srai
-
Nico Weber authored
-
Jon Chesterfield authored
-
Sam Estep authored
Depends On D130305 This patch adds initial support for context-sensitive analysis of simple functions whose definition is available in the translation unit, guarded by the `ContextSensitive` flag in the new `TransferOptions` struct. When this option is true, the `VisitCallExpr` case in the builtin transfer function has a fallthrough case which checks for a direct callee with a body. In that case, it constructs a CFG from that callee body, uses the new `pushCall` method on the `Environment` to make an environment to analyze the callee, and then calls `runDataflowAnalysis` with a `NoopAnalysis` (disabling context-sensitive analysis on that sub-analysis, to avoid problems with recursion). After the sub-analysis completes, the `Environment` from its exit block is simply assigned back to the environment at the callsite. The `pushCall` method (which currently only supports non-method functions with some restrictions) first calls `initGlobalVars`, then maps the `SourceLocation`s for all the parameters to the existing source locations for the corresponding arguments from the callsite. This patch adds a few tests to check that this context-sensitive analysis works on simple functions. More sophisticated functionality will be added later; the most important next step is to explicitly model context in some fields of the `DataflowAnalysisContext` class, as mentioned in a `TODO` comment in the `pushCall` implementation. Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D130306
-
Fangrui Song authored
-print-changed for new pass manager is handy beside -print-after-all. Port it to MachineFunctionPass. Note: lib/Passes/StandardInstrumentations.cpp implements a number of misc features. If we want to use them for codegen, we may need to lift some functionality to LLVMIR. Reviewed By: aeubanks, jamieschmeiser Differential Revision: https://reviews.llvm.org/D130434
-
Jim Ingham authored
This can cause a deadlock if other threads use the common pattern of "lock the StackFrameList, get a frame, lock the StackFrame." Differential Revision: https://reviews.llvm.org/D130524
-
Jacob Lambert authored
Lifting the core functionalities of the clang-offload-bundler into a user-facing library/API. This will allow online and JIT compilers to bundle and unbundle files without spawning a new process. This patch lifts the classes and functions used to implement the clang-offload-bundler into a separate OffloadBundler.cpp, and defines three top-level API functions in OfflaodBundler.h. BundleFiles() UnbundleFiles() UnbundleArchives() This patch also introduces a Config class that locally stores the previously global cl::opt options and arrays to allow users to call the APIs in a multi-threaded context, and introduces an OffloadBundler class to encapsulate the top-level API functions. We also lift the BundlerExecutable variable, which is specific to the clang-offload-bundler tool, from the API, and replace its use with an ObjcopyPath variable. This variable must be set in order to internally call llvm-objcopy. Finally, we move the API files from clang/tools/clang-offload-bundler into clang/lib/Driver and clang/include/clang/Driver. Differential Revision: https://reviews.llvm.org/D129873 -
Simon Pilgrim authored
This should fix a report on D130251 of an assert due to a bitwidth mismatch in APInt::isSubSetOf
-
Fangrui Song authored
These module flags use the Min merge behavior with a default value of zero, so we don't need to emit them if zero. Reviewed By: danielkiss Differential Revision: https://reviews.llvm.org/D130145
-
Dmitry Preobrazhensky authored
Summary of changes: - Update FLAT LDS syntax (see https://reviews.llvm.org/D125126)
-
David Goldman authored
- Correct nameLocation to point to the first selector fragment instead of the - or + - getDefinition now searches through the proper impl decls to find the definition of the ObjCMethodDecl if one exists Differential Revision: https://reviews.llvm.org/D130095
-
Matthias Springer authored
This op "unbatches" an op handle and executes the loop body for each payload op. Differential Revision: https://reviews.llvm.org/D130257
-
- Jul 26, 2022
-
-
Chuanqi Xu authored
Currently, the use of preferred_name would block implementing std modules in libcxx. See https://github.com/llvm/llvm-project/issues/56490 for example. The problem is pretty hard and it looks like we couldn't solve it in a short time. So we sent this patch as a workaround to avoid blocking us to modularize STL. This is intended to be fixed properly in the future. Reviewed By: erichkeane, aaron.ballman, tahonermann Differential Revision: https://reviews.llvm.org/D130331
-
Austin Kerbow authored
Tries to make the different scheduling stages a bit more self contained and modifiable. Intended to be NFC. Preface to other changes. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D130147
-
Stefan Gränitz authored
[WinEH] Apply funclet operand bundles to nounwind intrinsics that lower to function calls in the course of IR transforms WinEHPrepare marks any function call from EH funclets as unreachable, if it's not a nounwind intrinsic or has no proper funclet bundle operand. This affects ARC intrinsics on Windows, because they are lowered to regular function calls in the PreISelIntrinsicLowering pass. It caused silent binary truncations and crashes during unwinding with the GNUstep ObjC runtime: https://github.com/gnustep/libobjc2/issues/222 This patch adds a new function `llvm::IntrinsicInst::mayLowerToFunctionCall()` that aims to collect all affected intrinsic IDs. * Clang CodeGen uses it to determine whether or not it must emit a funclet bundle operand. * PreISelIntrinsicLowering asserts that the function returns true for all ObjC runtime calls it lowers. * LLVM uses it to determine whether or not a funclet bundle operand must be propagated to inlined call sites. Reviewed By: theraven Differential Revision: https://reviews.llvm.org/D128190
-
Philip Reames authored
Currently, all of these go to libcalls. A change to improve lowering is upcoming.
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: huixie90, eaeltsin, joanahalili, bgraur, alexfh, hans, avogelsgesang, augusto2112, libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D128146
-
Simon Tatham authored
This one actually makes the test simpler, because lit doesn't have to reconstitute a 32-bit little-endian value from individual bytes any more: llvm-objdump is printing the desired 32-bit value in the first place, so we can move straight on to doing the arithmetic on it.
-
Paul Walker authored
This patch starts small, only detecting sequences of the form <a, a+n, a+2n, a+3n, ...> where a and n are ConstantSDNodes. Differential Revision: https://reviews.llvm.org/D125194
-
Nico Weber authored
-
Alexander Yermolovich authored
Right now we silently overflow uint32_t for debug_indfo sections. Added a check and error out. Differential Revision: https://reviews.llvm.org/D130395
-
Arthur Eubanks authored
Turning on opaque pointers has uncovered an issue with WPD where we currently pattern match away `assume(type.test)` in WPD so that a later LTT doesn't resolve the type test to undef and introduce an `assume(false)`. The pattern matching can fail in cases where we transform two `assume(type.test)`s into `assume(phi(type.test.1, type.test.2))`. Currently we create `assume(type.test)` for all virtual calls that might be devirtualized. This is to support `-Wl,--lto-whole-program-visibility`. To prevent this, all virtual calls that may not be in the same LTO module instead use a new `llvm.public.type.test` intrinsic in place of the `llvm.type.test`. Then when we know if `-Wl,--lto-whole-program-visibility` is passed or not, we can either replace all `llvm.public.type.test` with `llvm.type.test`, or replace all `llvm.public.type.test` with `true`. This prevents WPD from trying to pattern match away `assume(type.test)` for public virtual calls when failing the pattern matching will result in miscompiles. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D128955
-
Dmitry Preobrazhensky authored
Disable SGPRs for src0 of these opcodes. Differential Revision: https://reviews.llvm.org/D130486
-
John Ericson authored
1. Slightly document the "mark advanced" variable used to control the installed CMake package dir. I would document it more, but I am considering in the future adding pkg-config support in this manner, after which `_PACKGE_DIR` is probably better called `_CMAKE_PACKGE_DIR` or similar. 2. Convey the custom path to the legacy `llvm-config` binary. Reviewed By: sebastian-ne Differential Revision: https://reviews.llvm.org/D130539
-
John Ericson authored
See https://cmake.org/cmake/help/v3.14/module/GNUInstallDirs.html#result-variables for `CMAKE_INSTALL_FULL_*` Reviewed By: sebastian-ne Differential Revision: https://reviews.llvm.org/D130545
-
Michael Buch authored
Some codepaths lead to `namespace_map == nullptr` when we get to `ClangASTSource::FindCompleteType`. This occurred while debugging an lldb session that had `settings set target.import-std-module true`. In that case, with `LLDBLog::Expressions` logging enabled, we would dereference a `nullptr` and crash. This commit moves the logging until after we check for `nullptr`. **Testing** * Fixed the specific crash I was seeing while debugging an `lldb` session with `import-std-module` enabled. Differential Revision: https://reviews.llvm.org/D130561
-
Dmitry Preobrazhensky authored
Encode dst=EXEC but allow disassembler accept any dst value. Differential Revision: https://reviews.llvm.org/D130345
-
Alexander Belyaev authored
-
Alexander Belyaev authored
-