- Jul 21, 2021
-
-
Fangrui Song authored
The guid of a local linkage variable has the module path encoded, so the order between a local linkage variable and a non-local linkage variable isn't guaranteed.
-
Sanjay Patel authored
https://llvm.org/PR50960
-
peter klausler authored
F18 was sigalling an end-of-file error condition when reading an unformatted sequential input file without an ultimate newline (or CR-LF). Other Fortran implementations can handle it, so change the runtime to support it. Differential Revision: https://reviews.llvm.org/D106321
-
peter klausler authored
Use derived type information tables to drive default component initialization (when needed), component destruction, and calls to final subroutines. Perform these operations automatically for ALLOCATE()/DEALLOCATE() APIs for allocatables, automatics, and pointers. Add APIs for use in lowering to perform these operations for non-allocatable/automatic non-pointer variables. Data pointer component initialization supports arbitrary constant designators, a F'2008 feature, which may be a first for Fortran implementations. Differential Revision: https://reviews.llvm.org/D106297
-
Rob Suderman authored
The unstrided transposed conv can be represented as a regular convolution. Lower to this variant to handle the basic case. This includes transitioning from the TC defined convolution operation and a yaml defined one. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D106389
-
Geoffrey Martin-Noble authored
-
LLVM GN Syncbot authored
-
Alex Lorenz authored
[clang] Fix the capitalization of the DarwinSDKInfoTest unittest filename to avoid case-sensitive FS build errors
-
Matheus Izvekov authored
When disabling simpler implicit moves in MSVC compatibility mode as a workaround in D105518, we forgot to make the opposite change and enable regular (P1825) implicit moves in the same mode. As a result, we were not doing any implicit moves at all. OOPS! This fixes it and adds test for this. This is a fix to a temporary workaround, there is ongoing work to replace this, applying the workaround only to system headers and the ::stl namespace. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D106303
-
Alex Lorenz authored
version remapping to the Darwin SDK Info Differential Revision: https://reviews.llvm.org/D105958
-
Roman Lebedev authored
-
Eli Friedman authored
We currently don't use casp; maybe we should?
-
Sami Tolvanen authored
This reverts commit 700d07f8. Reverting due to a ThinLTO+CFI breakage on -msvc targets.
-
Martin Storsjö authored
This was requested in the post-commit review of D104530.
-
LLVM GN Syncbot authored
-
Albion Fung authored
This patch implements store, load, move from and to registers related builtins, as well as the builtin for stfiw. The patch aims to provide feature parady with xlC on AIX. Differential revision: https://reviews.llvm.org/D105946
-
Vincent Lee authored
Implement pass 3 of bind opcodes from ld64 (which supports both 32-bit and 64-bit). Pass 3 implementation condenses BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB opcode to BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED. This change is already behind an O2 flag so it shouldn't impact current performance. I verified ld64's output with x86_64 LLD and they were both emitting the same optimized bind opcodes (although in a slightly different order). Tested with arm64_32 LLD and compared that with x86 LLD that the order of the bind opcodes are the same (offset values are different which should be expected). Reviewed By: int3, #lld-macho, MaskRay Differential Revision: https://reviews.llvm.org/D106128
-
Melanie Blower authored
Revert "[CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly" This reverts commit ce8024e8. There are a couple buildbot problems
-
Sterling Augustine authored
After rGbbbc4f11, we can move any string type that has convenient pointer and length fields into the PtrAndLengthKind, reducing the amount of code. Differential Revision: https://reviews.llvm.org/D106381
-
Jessica Paquette authored
Add manual selection code similar to the code in AArch64ISelDAGToDAG, and add `createTuple` helpers similar to the code there as well. This accounted for around 111 fallbacks while building clang for AArch64 with GlobalISel. This also should make it easy to add selection code for other store intrinsics. As a minor cleanup, this uses `createQTuple` in the other place where we use REG_SEQUENCE. Differential Revision: https://reviews.llvm.org/D106332
-
Eli Friedman authored
Accidentally forgot to flip the opcode... and I didn't notice because it was working fine for the GlobalISel.
-
Alex Lorenz authored
This is a preparation commit for https://reviews.llvm.org/D105958
-
Fangrui Song authored
In PGO, a C++ external linkage function `foo` has a private counter `__profc_foo` and a private `__profd_foo` in a `comdat nodeduplicate`. A `__attribute__((weak))` function `foo` has a weak hidden counter `__profc_foo` and a private `__profd_foo` in a `comdat nodeduplicate`. In `ld.lld a.o b.o`, say a.o defines an external linkage `foo` and b.o defines a weak `foo`. Currently we treat `comdat nodeduplicate` as `comdat any`, ld.lld will incorrectly consider `b.o:__profc_foo` non-prevailing. In the worst case when `b.o:__profd_foo` is retained and `b.o:__profc_foo` isn't, there will be dangling reference causing an `undefined hidden symbol` error. Add SelectionKind to `Comdat` in IRSymtab and let linkers ignore nodeduplicate comdat. Differential Revision: https://reviews.llvm.org/D106228
-
Melanie Blower authored
[CLANG][PATCH][FPEnv] Add support for option -ffp-eval-method and extend #pragma float_control similarly The Intel compiler ICC supports the option "-fp-model=(source|double|extended)" which causes the compiler to use a wider type for intermediate floating point calculations. Also supported is a way to embed this effect in the source program with #pragma float_control(source|double|extended). This patch extends pragma float_control syntax, and also adds support for a new floating point option "-ffp-eval-method=(source|double|extended)". source: intermediate results use source precision double: intermediate results use double precision extended: intermediate results use extended precision Reviewed By: Aaron Ballman Differential Revision: https://reviews.llvm.org/D93769
-
Rob Suderman authored
Added the named op variants for quantized matmul and quantized batch matmul with the necessary lowerings/tests from tosa's matmul/fully connected ops. Current version does not use the contraction op interface as its verifiers are not compatible with scalar operations. Differential Revision: https://reviews.llvm.org/D105063
-
Alex Lorenz authored
This commit adds support for Mac Catalyst availability attribute, as supported by the Apple clang compiler. A follow-up commit will provide additional support for inferring Mac Catalyst availability from macOS availability using the mapping in the SDKSettings.json. Differential Revision: https://reviews.llvm.org/D105052
-
Fangrui Song authored
-
Fangrui Song authored
In the textual format, `noduplicates` means no COMDAT/section group deduplication is performed. Therefore, if both sets of sections are retained, and they happen to define strong external symbols with the same names, there will be a duplicate definition linker error. In PE/COFF, the selection kind lowers to `IMAGE_COMDAT_SELECT_NODUPLICATES`. The name describes the corollary instead of the immediate semantics. The name can cause confusion to other binary formats (ELF, wasm) which have implemented/ want to implement the "no deduplication" selection kind. Rename it to be clearer. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D106319
-
Shilei Tian authored
In `deviceRTLs`, the parallel level is stored in a shared variable of type `uint8_t`. `__kmpc_parallel_level` currently returns a 16-bit interger. This patch first changes the return type of the function to `uint8_t`, same as the shared variable, and then corrects function type which was updated in D105955. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106384
-
Shilei Tian authored
This fixes the complaint from FileCheck. Reviewed By: abhinavgaba, jdoerfert Differential Revision: https://reviews.llvm.org/D106387
-
Eli Friedman authored
Basically two parts to this fix: 1. Stop using AtomicExpand to expand cmpxchg i128 2. Fix AArch64ExpandPseudoInsts to use a correct expansion. From ARM architecture reference: To atomically load two 64-bit quantities, perform a Load-Exclusive pair/Store-Exclusive pair sequence of reading and writing the same value for which the Store-Exclusive pair succeeds, and use the read values from the Load-Exclusive pair. Fixes https://bugs.llvm.org/show_bug.cgi?id=51102 Differential Revision: https://reviews.llvm.org/D106039
-
Sam Clegg authored
In https://reviews.llvm.org/D102044 we made exporting a TLS symbol into an error, but we also want to error on import. See https://github.com/emscripten-core/emscripten/issues/14461 Differential Revision: https://reviews.llvm.org/D106385
-
Nikita Popov authored
Make sure that addAttribute() is only used with simple enum attributes. Integer and type attributes need to provide an additional value/type.
-
Albion Fung authored
An extra test case added for the builtin __LDARX. Differential revision: https://reviews.llvm.org/D105926
-
Sam Clegg authored
This avoids duplication and simplifies the code in several places without increasing the size of the symbol union (at least not above the assert'd limit of 120 bytes). Originally commit: 9b965b37 Reverted in: 16aac493. Differential Revision: https://reviews.llvm.org/D106026
-
Nikita Popov authored
For attributes in legacy bitcode that are now typed, explicitly create a type attribute with nullptr type, the same as we do for the attribute group representation. This is so we can assert use of the correct constructor in the future.
-
Nikita Popov authored
This was placing sret/byval attributes without type argument on non-pointer arguments. Make this valid IR by using pointer arguments and passing the corresponding attribute type argument.
-
peter klausler authored
A rank-0 static descriptor needs to be a vector; it's for "v-list" values in defined derived type formatted I/O. (Pushed without pre-review due to high confidence and an unwell buildbot.)
-
Graham Yiu authored
- Replace Pete with Mark as owner of ARC backend - Re-order Philip to be sorted by first name
-
Nikita Popov authored
-