- Feb 09, 2021
-
-
Fangrui Song authored
-
Fangrui Song authored
-
Douglas Yung authored
This should fix buildbot failures like http://lab.llvm.org:8011/#/builders/107/builds/4469
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
Identified with const-return-type.
-
Max Kazantsev authored
Another attempt, this time with tripple fix.
-
George authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D96301
-
Sam Clegg authored
addOptionalGlobalSymbols should be addOptionalGlobalSymbol. Also, remove unnecessary additional argument to make the signature match the sibling function: addOptionalDataSymbol. Differential Revision: https://reviews.llvm.org/D96305
-
Yaxun (Sam) Liu authored
This patch added a distinct CUID for each input file, which is represented by InputAction. clang initially creates an InputAction for each input file for the host compilation. In CUDA/HIP action builder, each InputAction is given a CUID and cloned for each GPU arch, and the CUID is also cloned. In this way, we guarantee the corresponding device and host compilation for the same file shared the same CUID. On the other hand, different compilation units have different CUID. -fuse-cuid=random|hash|none is added to control the method to generate CUID. The default is hash. -cuid=X is also added to specify CUID explicitly, which overrides -fuse-cuid. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D95007
-
Dave Lee authored
Check a `Block` pointer before dereferencing. Using `function.mangled-name` led to a crash for a frame where the symbol context had no block info. In my case, the frame's function was a system frame. Differential Revision: https://reviews.llvm.org/D96307
-
Jinsong Ji authored
This reverts commit 502a67dd. This expose a failure in test-suite build on PowerPC, revert to unblock buildbot first, Dave will re-commit in https://reviews.llvm.org/D96287. Thanks Dave.
-
Richard Smith authored
during the same evaluation. It looks like the only case for which this matters is determining whether mutable subobjects of a heap allocation can be modified during constant evaluation.
-
Richard Smith authored
variable's destruction if it didn't do so during construction. The standard doesn't give any guidance as to what to do here, but this approach seems reasonable and conservative, and has been proposed to the standard committee.
-
Fangrui Song authored
-
LLVM GN Syncbot authored
-
Greg McGary authored
This is an initial base commit for ARM64 target arch support. I don't represent that it complete or bug-free, but wish to put it out for review now that some basic things like branch target & load/store address relocs are working. I can add more tests to this base commit, or add them in follow-up commits. It is not entirely clear whether I use the "ARM64" (Apple) or "AArch64" (non-Apple) naming convention. Guidance is appreciated. Differential Revision: https://reviews.llvm.org/D88629
-
Sam Clegg authored
When calculating the symbol offsets to write as provisitonal values in object files we are only interested in the offset of the symbol itself. For aliases this offset already includes the offset of the base symbol. The testin question was added back in https://reviews.llvm.org/D87407 but I believe the expectations here were incorrect. sym_a lives at offset 4 and sym_b lives 4 bytes into that (should be 8). The addresses of the 3 symbosl in this object file are: foo : 0 sym_a: 4 sym_b: 8 Differential Revision: https://reviews.llvm.org/D96234
-
Craig Topper authored
[TableGen] Use return value from EmitVBRValue instead of calling GetVBRSize on the same value. Consistently use unsigned for child sizes. NFCI getSize and setSize both use unsigned. So size_t doesn't increase range here and might get truncated if passed to setSize. Also not sure why EmitVBRValue was returning uint64_t, but used an unsigned to supply the value.
-
Uday Bondhugula authored
Fix std.copysign op documentation. NFC. Differential Revision: https://reviews.llvm.org/D96217
-
Yaxun (Sam) Liu authored
-fgpu-rdc is output in different order
-
LemonBoy authored
Reviewed By: joerg Differential Revision: https://reviews.llvm.org/D77737
-
Jameson Nash authored
This reverts commit 549a1e2e. I see some buildbot failures, so reverting while I look into them.
-
Argyrios Kyrtzidis authored
Make sure a module file with errors produced via '-fallow-pcm-with-compiler-errors' can be loaded when using implicit modules A module with errors would be marked as out-of-date, then the `compilerModule` action would produce it, but due to the error it would be treated as failure and the resulting PCM would not get used. rdar://74087062 Differential Revision: https://reviews.llvm.org/D96246
-
Yaxun (Sam) Liu authored
Currently -fgpu-rdc is not passed to host clang -cc1. This causes issue because -fgpu-rdc affects shadow variable linkage in host compilation. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D96105
-
Eric Schweitz authored
Add the opaque attribute class used in flang. https://github.com/flang-compiler/f18-llvm-project/pull/402 Differential Revision: https://reviews.llvm.org/D96293
-
Jameson Nash authored
Hopefully this is the non-problematic part from https://reviews.llvm.org/rL342148, which later got reverted in r342336 (b09a8c9b) due to problems with the llvm-exegesis part of the change. That part would also still be desirable, but currently appears not to be possible (https://reviews.llvm.org/D81922). I think this should replace https://reviews.llvm.org/D44650, per Keno's comment there. Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D90969
-
Jameson Nash authored
This attempts to move all tools over to using `add_llvm_library` for better consistency. After doing this, I noticed it ended up as nearly a reimplementation of https://reviews.llvm.org/rL342148, which later got reverted in r342336 (b09a8c9b). With ccache and ninja on a large core machine (40), I haven't run into build errors, so I'm hopeful it's better now, though it doesn't seem to be any different / new. Reviewed By: stephenneuendorffer Differential Revision: https://reviews.llvm.org/D90970
-
Hsiangkai Wang authored
Define an option -riscv-vector-bits-max to specify the maximum vector bits for vectorizer. Loop vectorizer will use the value to check if it is safe to use the whole vector registers to vectorize the loop. It is not the optimum solution for loop vectorizing for scalable vector. It assumed the whole vector registers will be used to vectorize the code. If it is possible, we should configure vl to do vectorize instead of using whole vector registers. We only consider LMUL = 1 in this patch. This patch just an initial work for loop vectorizer for RISC-V Vector. Differential Revision: https://reviews.llvm.org/D95659
-
Matt Arsenault authored
This was using the calling convention of the calling function, not the callee. Avoids regressions in a future patch.
-
Matt Arsenault authored
The generated calling convention code shouldn't see these types since we split large types into 32-bit chunks before the calling convention code is triggered. GlobalISel ends up directly calls the generated CC code before checking for the register count breakdown. Arguably this difference is a bug, but this was dead code for the DAG anyway.
-
Matt Arsenault authored
-
Arthur Eubanks authored
Disabled alongside NVVMIntrRangePass in https://reviews.llvm.org/D96166, but turns out NVVMIntrRangePass was the issue. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D96291
-
Eric Schweitz authored
-
Fangrui Song authored
-
Fangrui Song authored
Link: https://lists.llvm.org/pipermail/llvm-dev/2020-October/146162.html "[RFC] FileCheck: (dis)allowing unused prefixes" If a downstream project using lit needs time for transition, add the following to `lit.local.cfg`: ``` from lit.llvm.subst import ToolSubst fc = ToolSubst('FileCheck', unresolved='fatal') config.substitutions.insert(0, (fc.regex, 'FileCheck --allow-unused-prefixes')) ``` Differential Revision: https://reviews.llvm.org/D95849
-
Fangrui Song authored
`clang/lib/CodeGen/CGOpenMPRuntime.cpp` synthesized union (`distinct !DICompositeType(tag: DW_TAG_union_type, name: "kmp_cmplrdata_t", size: 64, elements: <0x62b690>)`) does not have meaningful filename/line number. D94735 dropped the previously arbitrary and untested filename/line from the union and caused a verifier error here. This fixes `check-libarcher` failures. Differential Revision: https://reviews.llvm.org/D96212
-
David Green authored
A One-Off Identity mask is a shuffle that is mostly an identity mask from as single source but contains a single element out-of-place, either from a different vector or from another position in the same vector. As opposed to lowering this via a ARMISD::BUILD_VECTOR we can generate an extract/insert pair directly. Under ARM with individually accessible lane elements this often becomes a simple lane move. This also alters the LowerVECTOR_SHUFFLEUsingMovs code to use v4f32 (not v4i32), a more natural type for lane moves. Differential Revision: https://reviews.llvm.org/D95551
-
Arthur Eubanks authored
Non-trivial unswitching can clone loops. The legacy -loop-unswitch pass also checks for this. Fixes PR49085. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D96288
-
Nico Weber authored
$ git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format
-