- Feb 26, 2022
-
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D120500
-
Aart Bik authored
Removed TODO now that we support scalars properly Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D120590
-
Reid Kleckner authored
IMO the BPF backend shouldn't read random source files referenced from debug info. I filed llvm.org/pr54092 about this.
-
Elia Geretto authored
This PR fixes the tests for the `OptimizerLast` extension point in the new pass manager. The extension point uses module passes, but it was being tested with a function pass. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D120581
-
Elia Geretto authored
This PR adds two extension points to the default LTO pipeline in PassBuilder, one at the beginning and one at the end. These two extension points already existed in the old pass manager, the aim is to replicate the same functionality in the new one. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D120491
-
Bixia Zheng authored
The PyTACO DSL doesn't support reduction to scalars. This change enhances the MLIR-PyTACO implementation to support reduction to scalars. Extend an existing test to show the syntax of reduction to scalars and two methods to retrieve the scalar values. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D120572
-
Reid Kleckner authored
Follow up to 1e396aff. On some standard library configurations these have a dependency on the complete type of SymbolizableModule.
-
Amanieu d'Antras authored
These aliases are produced by MergeFunctions and need to be mangled according to the calling convention of the function they are pointing to instead of defaulting to the C calling convention. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D120382
-
Xiaodong Liu authored
Reviewed By: ro, MaskRay Differential Revision: https://reviews.llvm.org/D120381
-
Martin Storsjö authored
According to POSIX.1 (and Glibc docs, and Microsoft docs), the wctob function returns EOF on error, not WEOF. (And wctob_l should consequently do the same.) The previous misconception about what this function returns on errors seems to stem from incorrect documentation in macOS, stemming from BSD docs with the same issue. The corresponding documentation bug in FreeBSD was fixed in 2012 in https://github.com/freebsd/freebsd-src/commit/945aab90991bdaeabeb6ef25112975a96c01dd4e, but it hasn't been fixed for macOS yet. The issue seems to only be a documentation issue; the implementation on macOS actually does use EOF, not WEOF: https://opensource.apple.com/source/Libc/Libc-1439.40.11/locale/FreeBSD/wctob.c.auto.html On most Unices, EOF and WEOF are the same value, but on Windows, EOF is -1, while WEOF is (unsigned short)0xFFFF. By fixing this, two tests start passing on Windows. Differential Revision: https://reviews.llvm.org/D120088
-
Martin Storsjö authored
On Windows, the en_US.UTF-8 locale returns `n_sign_posn == 0`, which means that the sign for a negative currency is parentheses around the whole value, instead of a leading minus. Differential Revision: https://reviews.llvm.org/D120549
-
Jonas Devlieghere authored
Instead of checking whether TARGET_OS_IPHONE is set to 1, the current code just check the existence of TARGET_OS_IPHONE, which either always succeeds or always fails, depending on whether you have TargetConditionals.h included.
-
Jonas Devlieghere authored
Ensure we copy the symbol table for MH_PRELOAD Mach-Os, which don't have a LINKEDIT segment, but (can) have a symbol table. rdar://88919473 Differential revision: https://reviews.llvm.org/D120583
-
Adrian Prantl authored
This is part of a series of patches to upstream support for Mach-O chained fixups. Differential Revision: https://reviews.llvm.org/D113725
-
Adrian Prantl authored
This fixes a bug that happens when using -fdebug-prefix-map to remap an absolute path to a relative path. Since the path was absolute before remapping, it is safe to assume that concatenating the remapped working directory would be wrong. Differential Revision: https://reviews.llvm.org/D113718
-
owenca authored
Differential Revision: https://reviews.llvm.org/D120503
-
Jameson Nash authored
I noticed randomly that the only reason these tests from rG8e679823 seemed to still be failing is that they are missing CHECK lines. I don't know anymore than that they don't appear to crash or assert when I ran them today. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D115377
-
Yaxun (Sam) Liu authored
match pattern should match lld.exe on windows Reviewed by: Shangwu Yao Differential Revision: https://reviews.llvm.org/D120563
-
Valentin Clement authored
This handles the lowering of the logical comparison to `arith.cmpi` operation. The logical operations `.OR.`, `.AND.` and `.NOT.` are lowered to `arith.ori`, `arith.andi` and `arith.xori` This patch is part of the upstreaming effort from fir-dev branch. Depends on D120559 Reviewed By: schweitz, rovka Differential Revision: https://reviews.llvm.org/D120560 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Valentin Clement authored
This patch handles the lowering of real comparison operations. The real comparison operations are lowered to `arith.cmpf` operation. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld, schweitz Differential Revision: https://reviews.llvm.org/D120561 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Valentin Clement authored
This patch handles the lowering of comprison operator between integers. The comparison is lowered to a `arith.cmpi` operation. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld, schweitz, rovka Differential Revision: https://reviews.llvm.org/D120559 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Fangrui Song authored
The no-pic large code model style `movabsq $callback, %rsi` does not work with -pie.
-
Hanhan Wang authored
This extends TileAndFuse to handle distribution on tensors. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D120441
-
Craig Topper authored
This was a test for an infinite loop so the CHECK lines don't really matter, but they'd get generated the next time someone runs the script on the file so might as well do it while I'm touching it.
-
Jameson Nash authored
Seems like this can be const, since Passes shouldn't modify it. Reviewed By: wsmoses Differential Revision: https://reviews.llvm.org/D120518
-
Diego Caballero authored
The AVX2 lowering for transpose operations is only applicable to f32 vector types. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D120427
-
Diego Caballero authored
The existing AVX2 lowering patterns for the transpose op only triggers if the input vector is 2-D. This patch extends the patterns to trigger for n-D vectors which are effectively 2-D vectors (e.g., vector<1x4x1x8x1). The main constraint for the generalized AVX2 patterns to be applicable to these vectors is that the dimensions that are greater than one must be transposed. Otherwise, the existing patterns are not applicable. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D119505
-
Fangrui Song authored
ctfconvert seems to use REL-format `.rel.SUNW_dof` for 32-bit architectures. ``` Binary file usr/ports/lang/perl5.32/work/perl-5.32.1/dtrace_mini.o matches [alfredo.junior@dell-a ~/tmp/llvm-bug]$ readelf -r dtrace_mini.o Relocation section (.rel.SUNW_dof): r_offset r_info r_type st_value st_name 00000184 0000281a R_PPC_REL32 00000000 $dtrace1772974259.Perl_dtrace_probe_load ``` Support R_PPC_REL32 to fix `ld.lld: error: drti.c:(.SUNW_dof+0x4E4): internal linker error: cannot read addend for relocation R_PPC_REL32`. While here, add some common relocation types for AArch64, PPC, and PPC64. We perform minimum tests. Reviewed By: adalava, arichardson Differential Revision: https://reviews.llvm.org/D120535
-
Chia-hung Duan authored
This change gives explicit order of verifier execution and adds `hasRegionVerifier` and `verifyWithRegions` to increase the granularity of verifier classification. The orders are as below, 1. InternalOpTrait will be verified first, they can be run independently. 2. `verifyInvariants` which is constructed by ODS, it verifies the type, attributes, .etc. 3. Other Traits/Interfaces that have marked their verifier as `verifyTrait` or `verifyWithRegions=0`. 4. Custom verifier which is defined in the op and has marked `hasVerifier=1` If an operation has regions, then it may have the second phase, 5. Traits/Interfaces that have marked their verifier as `verifyRegionTrait` or `verifyWithRegions=1`. This implies the verifier needs to access the operations in its regions. 6. Custom verifier which is defined in the op and has marked `hasRegionVerifier=1` Note that the second phase will be run after the operations in the region are verified. Based on the verification order, you will be able to avoid verifying duplicate things. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D116789 -
Alexey Bataev authored
Changed the we handle llvm::Constants in sizes arrays. ConstExprs and GlobalValues cannot be used as initializers, need to put them at the runtime, otherwise there wight be the compilation errors. Differential Revision: https://reviews.llvm.org/D105297
-
Fangrui Song authored
This reverts commit cb76c4d7. The failures were in test/sanitizer_common, not in test/lsan.
-
Fangrui Song authored
to appease clang-ppc64le-rhel: https://github.com/llvm/llvm-project/issues/54084
-
Changpeng Fang authored
Summary: Emit metadata for hidden_heap_v1 kernarg Reviewers: sameerds, b-sumner Fixes: SWDEV-307188 Differential Revision: https://reviews.llvm.org/D119027
-
Alexander Yermolovich authored
We were not handling correctly conversion from DW_AT_high_pc into DW_AT_ranges, when size of DW_AT_high_pc is not 4/8 bytes. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D120528
-
Fangrui Song authored
Seems that ppc64 lsan doesn't work with default PIE (see D120305): https://lab.llvm.org/buildbot/#/builders/57/builds/15506
-
Arthur Eubanks authored
-
Florian Hahn authored
Additional tests showing potential for follow-ups after D120571.
-
Kiran Chandramohan authored
This patch brings in code which can lower a Fortran intrinsic to a runtime call or an llvm intrinsic. For math intrinsics the runtime call is to the `math` or `pgmath` library. Non-math intrinsics are covered by the Flang runtime. A distance computation mechanism is introduced to find the runtime function that closely matches the types of the intrinsic call. In this patch, the `abs` intrinsic is lowered in the following way, -> Integer version is lowered as a group of MLIR/FIR operations -> Real version is lowered to llvm intrinsics -> Complex version is lowered to the `math_hypot` runtime function This patch is part of upstreaming from the fir-dev branch of https://github.com/flang-compiler/f18-llvm-project Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D120403 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
zacharyselk <zrselk@gmail.com> Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com>
-
Rong Xu authored
IR level addDiscriminator pass is guarded by DebugInfoForProfiling (set by option -fdebug-info-for-profiling). This patch syncs the logic for the MIR and IR level implementations. Differential Revision: https://reviews.llvm.org/D120536
-
Stefan Pintilie authored
Currently all of the MMA instructions as well as the MMA related register info is bundled with the Power 10 instructions. This patch just splits them out. Reviewed By: lei Differential Revision: https://reviews.llvm.org/D120515
-