- Dec 15, 2021
-
-
Haojian Wu authored
NOLINTBEGIN is disabled, in 52983337
-
Alex Zinenko authored
-
Tres Popp authored
This is to allow rollbacks on failures of dialect lowering to succeed. Differential Revision: https://reviews.llvm.org/D115789
-
Nikita Popov authored
Explicitly pass in the element type instead.
-
Shraiysh Vaishay authored
This patch adds lowering from omp.sections and omp.section (simple lowering along with the nowait clause) to LLVM IR. Tests for the same are also added. Reviewed By: ftynse, kiranchandramohan Differential Revision: https://reviews.llvm.org/D115030
-
Sam McCall authored
The implementation is very inefficient and we pay the cost even when the feature is not used Differential Revision: https://reviews.llvm.org/D115650
-
Dmitri Gribenko authored
-
Matthias Springer authored
Instead of modifying the existing linalg.tiled_loop op, create a new op with memref input/outputs and delete the old op. Differential Revision: https://reviews.llvm.org/D115493
-
Nikita Popov authored
Change all uses of the deprecated constructor to pass the element type explicitly and drop it. For cases where the correct element type was not immediately obvious to me or would require a slightly larger change I'm falling back to explicitly calling getPointerElementType() for now.
-
Matthias Springer authored
Instead of modifying the existing scf.if op, create a new op with memref OpOperands/OpResults and delete the old op. New allocations / other memrefs can now be yielded from the op. This functionality is deactivated by default and guarded against by AssertDestinationPassingStyle. Differential Revision: https://reviews.llvm.org/D115491
-
Javier Setoain authored
With VectorType supporting scalable dimensions, we don't need many of the operations currently present in ArmSVE, like mask generation and basic arithmetic instructions. Therefore, this patch also gets rid of those. Having built-in scalable vector support also simplifies the lowering of scalable vector dialects down to LLVMIR. Scalable dimensions are indicated with the scalable dimensions between square brackets: vector<[4]xf32> Is a scalable vector of 4 single precission floating point elements. More generally, a VectorType can have a set of fixed-length dimensions followed by a set of scalable dimensions: vector<2x[4x4]xf32> Is a vector with 2 scalable 4x4 vectors of single precission floating point elements. The scale of the scalable dimensions can be obtained with the Vector operation: %vs = vector.vscale This change is being discussed in the discourse RFC: https://llvm.discourse.group/t/rfc-add-built-in-support-for-scalable-vector-types/4484 Differential Revision: https://reviews.llvm.org/D111819 -
Matthias Springer authored
Instead of modifying the existing scf.for op, create a new op with memref OpOperands/OpResults and delete the old op. New allocations / other memrefs can now be yielded from the loop. This functionality is deactivated by default and guarded against by AssertDestinationPassingStyle. This change also introduces `replaceOp`, which will be utilized by all other `bufferize` implementations in future commits. Bufferization will then no longer rely on old (pre-bufferize) ops to DCE away. Instead old ops are deleted on the spot. This improves debuggability because there won't be any duplicate ops anymore (bufferized + not-yet-bufferized) when dumping IR during bufferization. It is also less fragile because unbufferized IR can no longer silently "hang around" due to an implementation bug. Differential Revision: https://reviews.llvm.org/D114926
-
Fangrui Song authored
GNU ld's internal linker script keeps `.jcr`, but not other sections starting with `.jcr`.
-
Julian Gross authored
Added documentation to clearify the purpose of the bufferization to memref pass and added some remarks. Differential Revision: https://reviews.llvm.org/D115326
-
Fangrui Song authored
GNU ld's internal linker script keeps `.init`, but not other sections starting with `.init`. .fini is similar.
-
Fangrui Song authored
This can sometimes avoid `cast<ObjFile<...>>`. I intentionally do not touch postScanRelocations to wait for its stabilization.
-
Nikita Popov authored
-
Fangrui Song authored
Sorting the prefixes by decreasing frequency can improve performance. .gcc_except_table is relatively frequent, so move it ahead. .ctors and .dtors mostly disappear and should be the last.
-
Nikita Popov authored
Explicitly track the pointer element type in Address, rather than deriving it from the pointer type, which will no longer be possible with opaque pointers. This just adds the basic facility, for now everything is still going through the deprecated constructors. I had to adjust one place in the LValue implementation to satisfy the new assertions: Global registers are represented as a MetadataAsValue, which does not have a pointer type. We should avoid using Address in this case. This implements a part of D103465. Differential Revision: https://reviews.llvm.org/D115725
-
Fangrui Song authored
-
Nikolas Klauser authored
Use `_LIBCPP_DEBUG_ASSERT` instead of `_LIBCPP_ASSERT` and guarding it with `LIBCPP_DEBUG_LEVEL == 2` Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D115765
-
Esme-Yi authored
Summary: This patch emits the DW_AT_accessibility attribute for class/struct/union types in the LLVM part. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D115606
-
gysit authored
Remove the RangeOp and the RangeType that are not actively used anymore. After removing RangeType, the LinalgTypes header only includes the generated dialect header. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D115727
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D115589
-
Fangrui Song authored
-
Logan Chien authored
Differential Revision: https://reviews.llvm.org/D111917
-
Craig Topper authored
Build bot failure found after D115668.
-
Fangrui Song authored
SHT_GNU_verdef is typically small, so it's unnecessary to reserve the vector. While here, fix a hypothetical issue when SHT_GNU_verdef has non-increasing version indexes, which don't happen with GNU ld, gold, ld.lld's output. My x86-64 lld executable is 256 bytes smaller.
-
Fangrui Song authored
sizeof(ObjFile<ELF64LE>) is decreased from 344 to 272 on an ELF64 system. In a large link with 30000 ObjFiles, this may be 2+MiB saving. Change std::vector members to SmallVector, and std::string members to SmallString<0> (these members typically don't benefit from small string optimization). On Linux x86-64 the lld executable is ~6k smaller.
-
Nico Weber authored
-
Stephen Hines authored
Big.LITTLE Heterogeneous architectures, as described by ARM [1], require that the instruction set architecture of the big and little cores be compatible. However, the Samsung Exynos 9810 is known to have different ISAs in its core. According to [2], some cores are ARMv8.2 and others are ARMv8.0. Since LSE is for ARMv8.1 and later, it should be disabled for this broken CPU. [1] https://developer.arm.com/documentation/den0024/a/big-LITTLE-Technology [2] https://github.com/golang/go/issues/28431 Patch by: Byoungchan Lee (byoungchan.lee@gmx.com) Reviewed By: srhines Differential Revision: https://reviews.llvm.org/D114523
-
Lang Hames authored
Adds -L<search-path> and -l<library> options that are analogous to ld's versions. Each instance of -L<search-path> or -l<library> will apply to the most recent -jd option on the command line (-jd <name> creates a JITDylib with the given name). Library names will match against JITDylibs first, then llvm-jitlink will look through the search paths for files named <search-path>/lib<library>.dylib or <search-path>/lib<library>.a. The default "main" JITDylib will link against all JITDylibs created by -jd options, and all JITDylibs will link against the process symbols (unless -no-process-symbols is specified). The -dlopen option is renamed -preload, and will load dylibs into the JITDylib for the ORC runtime only. The effect of these changes is to make it easier to describe a non-trivial program layout to llvm-jitlink for testing purposes. E.g. the following invocation describes a program consisting of three JITDylibs: "main" (created implicitly) containing main.o, "Foo" containing foo1.o and foo2.o, and linking against library "bar" (not a JITDylib, so it must be a .dylib or .a on disk) and "Baz" (which is a JITDylib), and "Baz" containing baz.o. llvm-jitlink \ main.o \ -jd Foo foo1.o foo2.o -L${HOME}/lib -lbar -lBaz -jd Baz baz.o -
Nico Weber authored
See D28294 for context. Differential Revision: https://reviews.llvm.org/D115751
-
Kirill Stoimenov authored
This is present in our assembly files. It should fix decorate_proc_maps.cpp failures because of shadow memory being allocated as executable. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D115552
-
Wenlei He authored
preinliner has been tuned on large server workloads and it's not ready to be turned on by default. this change also updates the thresholds based on tuning. Differential Revision: https://reviews.llvm.org/D115770
-
Sindhu Chittireddy authored
In 32bit mode, attaching TBAA metadata to the store following the call to inline assembler results in describing the wrong type by making a fake lvalue(i.e., whatever the inline assembler happens to leave in EAX:EDX.) Even if inline assembler somehow describes the correct type, setting TBAA information on return type of call to inline assembler is likely not correct, since TBAA rules need not apply to inline assembler. Differential Revision: https://reviews.llvm.org/D115320
-
LLVM GN Syncbot authored
-
Sam McCall authored
-
Lang Hames authored
Also moves object interface building functions out of Mangling.h and in to the new ObjectFileInterfaces.h header, and updates the llvm-jitlink tool to use custom object interfaces rather than a custom link layer. ObjectLayer::add overloads are added to match the old signatures (which do not take a MaterializationUnit::Interface). These overloads use the standard getObjectFileInterface function to build an interface. Passing a MaterializationUnit::Interface explicitly makes it easier to alter the effective interface of the object file being added, e.g. by changing symbol visibility/linkage, or renaming symbols (in both cases the changes will need to be mirrored by a JITLink pass at link time to update the LinkGraph to match the explicit interface). Altering interfaces in this way can be useful when lazily compiling (e.g. for renaming function bodies) or emulating linker options (e.g. demoting all symbols to hidden visibility to emulate -load_hidden).
-
LLVM GN Syncbot authored
-