- Mar 10, 2021
-
-
Greg McGary authored
Top-level `using llvm::opt` has been present in `lld/MachO/Driver*.cpp` for some time, so remove lingering `opt::` prefixes. Differential Revision: https://reviews.llvm.org/D98314
-
Greg McGary authored
lld policy discourages `auto`. Replace it with a type name whenever reasonable. Retain `auto` to avoid ... * redundancy, as for decls such as `auto *t = mumble_cast<TYPE *>` or similar that specifies the result type on the RHS * verbosity, as for iterators * gratuitous suffering, as for lambdas Along the way, add `const` when appropriate. Note: a future diff will ... * add more `const` qualifiers * remove `opt::` when we are already `using llvm::opt` Differential Revision: https://reviews.llvm.org/D98313
-
Wei Mi authored
now -funique-internal-linkage-name flag is available, and we want to flip it on by default since it is beneficial to have separate sample profiles for different internal symbols with the same name. As a preparation, we want to avoid regression caused by the flip. When we flip -funique-internal-linkage-name on, the profile is collected from binary built without -funique-internal-linkage-name so it has no uniq suffix, but the IR in the optimized build contains the suffix. This kind of mismatch may introduce transient regression. To avoid such mismatch, we introduce a NameTable section flag indicating whether there is any name in the profile containing uniq suffix. Compiler will decide whether to keep uniq suffix during name canonicalization depending on the NameTable section flag. The flag is only available for extbinary format. For other formats, by default compiler will keep uniq suffix so they will only experience transient regression when -funique-internal-linkage-name is just flipped. Another type of regression is caused by places where we miss to call getCanonicalFnName. Those places are fixed. Differential Revision: https://reviews.llvm.org/D96932
-
Yao Zhao authored
fix a couple of words spelling Reviewed By: dberris Differential Revision: https://reviews.llvm.org/D96658
-
Lang Hames authored
-
Lang Hames authored
-
Philip Reames authored
-
Yang Fan authored
GCC warning: ``` /llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:6: warning: ‘void {anonymous}::Module::dump()’ defined but not used [-Wunused-function] 574 | void Module::dump() { | ^~~~~~ ``` -
Yang Fan authored
GCC warning: ``` /llvm-project/llvm/lib/MC/ELFObjectWriter.cpp: In member function ‘void {anonymous}::ELFWriter::writeHeader(const llvm::MCAssembler&)’: /llvm-project/llvm/lib/MC/ELFObjectWriter.cpp:421:20: warning: enumeral and non-enumeral type in conditional expression [-Wextra] 420 | W.OS << char(OSABI == ELF::ELFOSABI_NONE && OWriter.seenGnuAbi() | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 421 | ? ELF::ELFOSABI_GNU | ^~~~~~~~~~~~~~~~~~~ 422 | : OSABI); | ~~~~~~~ ``` -
Philip Reames authored
-
Greg McGary authored
Implement command-line options to alter a dylib's exported-symbols list: * `-exported_symbol*` options override the default export list. The export list is compiled according to the command-line option(s) only. * `-unexported_symbol*` options hide otherwise public symbols. * `-*exported_symbol PATTERN` options specify a single literal or glob pattern. * `-*exported_symbols_list FILE` options specify a file containing a series of lines containing symbol literals or glob patterns. Whitespace and `#`-prefix comments are stripped. Note: This is a simple implementation of the primary use case. ld64 has much more complexity surrounding interactions with other options, many of which are obscure and undocumented. We will start simple and complexity as necessary. Differential Revision: https://reviews.llvm.org/D98223
-
Ryan Prichard authored
By default, the driver uses the compiler-rt builtins and links with -l:libunwind.a. Restore the previous behavior by passing --rtlib=libgcc. Reviewed By: danalbert Differential Revision: https://reviews.llvm.org/D96404
-
Arnold Schwaighofer authored
rdar://75052917 Differential Revision: https://reviews.llvm.org/D98051
-
Jason Molenda authored
It is easier to read the unwind logging when you can see when the inferior resumes / stops and we're doing new unwinds.
-
David Blaikie authored
-
William S. Moses authored
Fix bug in MemoryDependence [and thus GVN] for invariant group. Previously MemDep didn't verify that the store was storing into a pointer rather than a store simply using a pointer. Differential Revision: https://reviews.llvm.org/D98267
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Leonard Chan authored
We encountered an issue where LTO running on IR that used the DSOLocalEquivalent constant would result in bad codegen. The underlying issue was ValueMapper wasn't properly handling DSOLocalEquivalent, so this just adds the machinery for handling it. This code path is triggered by a fix to DSOLocalEquivalent::handleOperandChangeImpl where DSOLocalEquivalent could potentially not have the same type as its underlying GV. This updates DSOLocalEquivalent::handleOperandChangeImpl to change the type if the GV type changes and handles this constant in ValueMapper. Differential Revision: https://reviews.llvm.org/D97978
-
River Riddle authored
This method allows for removing multiple disjoint operands at once, reducing the need to erase operands individually (which results in shifting the operand list). Differential Revision: https://reviews.llvm.org/D98290
-
River Riddle authored
This class provides efficient implementations of symbol queries related to uses, such as collecting the users of a symbol, replacing all uses, etc. This provides similar benefits to use related queries, as SymbolTableCollection did for lookup queries. Differential Revision: https://reviews.llvm.org/D98071
-
Richard Smith authored
The only time we would consider allowing this is inside a call to std::allocator<T>::deallocate, whose contract does not permit deletion of null pointers.
-
Alex Lorenz authored
rdar://74017977
-
Zequan Wu authored
This reverts D85036 Differential Revision: https://reviews.llvm.org/D98084
-
Sanjay Patel authored
We cast<> to Instruction (not dyn_cast<>), so we already required/assumed that Cmp is not null.
-
Jianzhou Zhao authored
This is a part of https://reviews.llvm.org/D95835. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D98192
-
Mehdi Amini authored
This indicated some missing test coverage, which are now added to the roundtrip test.
-
David Green authored
This test shows a case where we can potentially scalarize the store in a predicated loop, creating a lot of instructions that would be much slower than scalar.
-
Philip Reames authored
-
Dave Lee authored
Turn `-Wreturn-type` into an error. This is currently used by libcxx, libcxxabi, and libunwind, and would be a good default for all of llvm. I'm not aware of any cases where this shouldn't be an error. This ensures different build configs, merges, and downstream branches catch issues sooner. Differential Revision: https://reviews.llvm.org/D98224
-
Nathan James authored
Just looks nicer and easier to read. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D98274
-
Alex Lorenz authored
This is useful for APIs that want to produce an attributed NSString as a result of some formatting API call.
-
Mehdi Amini authored
Also move setters out-of-line to make sure the templated helper is actually instantiated.
-
Albion Fung authored
This pull request implements patterns to exploit the load rightmost vector element instructions for loading element 0 on little endian PowerPC subtargets into v8i16 and v16i8 vector registers for i16 and i8 data types. Differential Revision: https://reviews.llvm.org/D94816#inline-921403
-
Juneyoung Lee authored
This reverts commit 07c3b97e due to a reported failure in two-stage build.
-
Fangrui Song authored
This is a minor issue because the TargetValue parameter of `__llvm_profile_instrument_memop` is usually small and cannot exceed 2**31 at all. Differential Revision: https://reviews.llvm.org/D97640
-
Philip Reames authored
-
Philip Reames authored
This was suggested by lebedev.ri over on D96534. You'll note lack of tests. During review, we weren't actually able to find a case which exercises it, but both I and lebedev.ri feel it's a reasonable change, straight forward, and near free. Differential Revision: https://reviews.llvm.org/D97064
-
Peter Steinfeld authored
We have a "<" operator defined on the type semantics::Symbol that's based on the symbols' locations in the cooked character stream. This is potentially problematic when comparing symbols from .mod files when the cooked character streams themselves might be allocated to varying memory locations. This change fixes that by using the order in which symbols are created as the basis for the "<" operator. Thanks to Tim and Peter for consultation on the necessity of doing this and the idea for what to use as the basis of the sort. This change in the "<" operator changed the expected results for three of the tests. I manually inspected the new results, and they look OK to me. The differences in data05.f90 and typeinfo01.f90 are entirely the order, offsets, and sizes of the derived type components. The changes in resolve102.f90 are due to the new, different "<" operator used for sorting. Differential Revision: https://reviews.llvm.org/D98225
-
Florian Hahn authored
This patch adds a few tests for memset/memcyp with non-constant size values. Some of the tests will be optimized in further patches.
-