- Dec 14, 2022
-
-
Xiang Li authored
Without .exe in the name on windows, the test not work. Differential Revision: https://reviews.llvm.org/D139765
-
Kirill Stoimenov authored
[LSAN][NFC] Eliminated GetThreadRegistryLocked from the LSAN interface to avoid the need to implement it in HWASAN. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D139976
-
Kazu Hirata authored
This patch fixes: mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp:52:42: error: 'None' is deprecated: Use std::nullopt instead. [-Werror,-Wdeprecated-declarations]
-
V Donaldson authored
-
Bill Wendling authored
The iterator over super and sub registers doesn't include both 8-bit registers in its list. So if both registers are used and only one of them is live on return, then we need to make sure that the other 8-bit register is also marked as live and not zeroed out. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D139679
-
Koakuma authored
Add two GNU extension forms of wrpr: wrpr %reg, %rd -> wrpr %reg, %g0, %rd wrpr imm, %rd -> wrpr %g0, imm, %rd Note: since the semantics of wrpr %rs1, %rs2/imm, %rd is %rd <- (%rs1 xor %rs2/imm), in case (1) it technically doesn't matter whether the %g0 is placed as the first or second operand, however, I'm placing it as the second operand to match the encoding of GNU as. This fixes the wrpr instruction part of bug #40792 Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D139535
-
Cyndy Ishida authored
Reviewed By: pete, ributzka Differential Revision: https://reviews.llvm.org/D139862
-
Jason Molenda authored
This test depends on having a new packet supported by debugserver; skip it until we have a system debugserver installed on the CI bots with this change.
-
Roman Lebedev authored
At least some of the seemingly-bad codegen was because we really need to consume the replicated i1 mask by the mask-consuming instruction if we want faithful codegen for the replication shuffle. But some of the odd codegen is still there.
-
Richard Smith authored
Template instantiation can create names that are still dependent, such as `operator T`. Don't assume that they can be looked up immediately, and instead defer lookup for such names until we know what `T` is.
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getInstList() private. Differential Revision: https://reviews.llvm.org/D139971
-
Koakuma authored
Materialize zeros by copying from %g0, which is now marked as constant. This makes it possible for some common operations (like integer negation) to be performed in fewer instructions. This continues @arichardson's patch at D132561. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138887
-
Hanhan Wang authored
Considering the case that generic + pack (with outer_dim_perms), the truth is that it is equipvelent to generic + pack + transpose. There are two steps to bubble up the pack op accross the generic op. Step 1. swap generic + pack -> pack + generic. In this step, we can bind the packing information to dimensions of iteration domain. With the information, we can pack the operands with corresponding data tile sizes; the packed inner dimensions will be appended to the indexing_maps. Note that the outer dimensions of indexing maps are not changed at all. Step 2. Fold the transpose into generic op. The step two is just updating the indexing map, so we do not have to handle outer_dim_perms anymore. There could be step 3 to extract the transpose op out (i.e., generic -> transpose + generic), then we can fold the transpose into the pack op. This step is not done in the revision. Co-authored-by:
Lorenzo Chelini <l.chelini@icloud.com> Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D139680
-
Sanjay Patel authored
The 1st try was not clean because a portion of the code diff made it into the pre-commit patch to add tests. This should be the same end result without the muddied code diff. Original commit message: In cases with matching extends, this allows changing an 'add' into an 'or' and narrowing the 'or' which then simplifies to a constant. In cases with opposite extends, we just convert to an 'or' currently, but that could be reduced too. https://alive2.llvm.org/ce/z/fTHzdb
-
Keith Smiley authored
This covers the special section ordering handling. This chooses to fake the sections vs creating them organically which is probably a bit easier to maintain. Differential Revision: https://reviews.llvm.org/D139959
-
Nuno Lopes authored
-
Kirill Stoimenov authored
[HWASAN][NFC] Added implementation for the most of the allocator related functions from the LSAN interface. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D139964
-
bixia1 authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D139887
-
Keith Smiley authored
In the case of large binaries previously you could end up getting relocation failures. This mirrors ld64's ordering of these sections. I'm not sure this solves all cases but it should help in some. Fixes https://github.com/llvm/llvm-project/issues/58298 Differential Revision: https://reviews.llvm.org/D139909
-
Sanjay Patel authored
The 1st attempt ( c8cba0bc ) accidentally picked up a code diff.
-
Sanjay Patel authored
This reverts commit c8cba0bc. An unintended code change snuck into this (was supposed to just add tests).
-
Sanjay Patel authored
This reverts commit 7520d187. The pre-commit patch that was supposed to NFC add tests for this patch picked up some code that should not be here. I'll clean up and re-commit.
-
V Donaldson authored
A submodule is a program unit that may contain the implementions of procedures declared in an ancestor module or submodule. Processing for the equivalence groups and variables declared in a submodule scope is similar to existing processing for the equivalence groups and variables in module and procedure scopes. However, module and procedure scopes are tied directly to code in the Pre-FIR Tree (PFT), whereas processing for a submodule must have access to an ancestor module scope that is guaranteed to be present in a .mod file, but is not guaranteed to be in the PFT. This difference is accommodated by tying processing directly to a front end scope. Function scopes that can be processed on the fly are done that way; the resulting variable information is never stored. Module and submodule scopes whose symbol information may be needed during lowering of any number of module procedures are instead cached on first use, and reused as needed. These changes are a direct extension of current code. All module and submodule variables in scope are processed, whether referenced or not. A possible alternative would be to instead process symbols only when first used. While this could ultimately be beneficial, such an approach must account for the presence of equivalence groups. That information is not currently available for on-the-fly variable processing. Some additional changes are needed to include submodules in places where modules must be considered, and to include separate module procedures in places where other subprogram variants are considered. There is also a fix for a bug involving the use of variables in an equivalence group in a namelist group, which also involves scope processing code.
-
Sanjay Patel authored
In cases with matching extends, this allows changing an 'add' into an 'or' and narrowing the 'or' which then simplifies to a constant. In cases with opposite extends, we just convert to an 'or' currently, but that could be reduced too. https://alive2.llvm.org/ce/z/fTHzdb
-
Sanjay Patel authored
-
Michael Jones authored
This patch adds the integer conversions %d/i/u/o/x/X to scanf as well as unit tests to check their correctness. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D138880
-
Michael Jones authored
Scanf is supposed to return EOF when it fails to make any conversions and there is an input failure. Previously it would return EOF on a matching failure, which may be an input failure but can also be a parsing error. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D139891
-
chenglin.bi authored
X && Z || Y && Z --> (X || Y) && Z https://alive2.llvm.org/ce/z/nM6kZb (X || Z) && (Y || Z) --> (X && Y) || Z https://alive2.llvm.org/ce/z/_EWLRR Fix: https://github.com/llvm/llvm-project/issues/53861 Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D139408
-
serge-sans-paille authored
This fixes compilation of clang with lld, as reported in https://reviews.llvm.org/D135402. Basically some symbols are not available when not linking statically. Differential Revision: https://reviews.llvm.org/D139932
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139880
-
Cabrera, Anthony authored
[flang] emit warning when encountering a non-variable actual argument when its corresponding dummy argument expects a VOLATILE variable This patch implements @klausler's suggestion in `llvm-project` [issue #58973](https://github.com/llvm/llvm-project/issues/58973); encountering the `VOLATILE` attribute should produce a __warning__, not a __fatal error__. When tested on the following Fortran program `snem0601_012_.f90`: ```fortran module mod contains subroutine sub(m6,error) integer,intent(inout) :: error integer,volatile :: m6 if (any ((/m6/).ne.(/6/))) & & then error = 1 end if end subroutine end module program fe1nvol12 use mod integer :: error = 0 call sub(6,error) if (error .ne. 0) then print *,'NG: snem0601_012' end if print *,'pass: snem0601_012' end program fe1nvol12 ``` the following output is produced: ```bash $ flang-new -fc1 snem0601_012_.f90 /noback/93u/Sandbox/issue_58973_volatile_dummy_arg/snem0601_012_.f90:21:12: warning: actual argument associated with VOLATILE dummy argument 'm6=' is not a variable call sub(6,error) ^ ``` Reviewed By: clementval, klausler Differential Revision: https://reviews.llvm.org/D139134
-
Jordan Rupprecht authored
-
Philip Reames authored
This is an alternative patch on a path to D137530. The basic problem being tackled here is that we need to place a scalar into lane 0 of a vector register before our reduction instructions. Since we only care about lane 0 of the vector, we can use any VL >= 1 provided that the total amount of work performed matches the work performed for a VL=1. This change does not contain the logic from D137530 to perform the insert at the original VT, and then extract down to LMUL1. That turns out to be a good choice, as discussion in this review has indicated there are issues around LMUL2 and above with our representation of vmv.s.x. We'd also need to be careful with the splat logic for the same reasons. The only potentially concerning codegen change I spot here is that we stop using a broadcast load (for VL=1) and instead do a scalar load and insert. I think this is probably reasonable; if reviewers disagree, I can investigate using a broadcast load which writes to the undef lanes. If we want to do that, we should do it for VECTOR_INSERT_ELT as well, so that'll end up as it's own patch series. Differential Revision: https://reviews.llvm.org/D139656
-
Slava Zakharin authored
Power functions are implemented as linkonce_odr scalar functions for FPowI operations met in a module. Vector form of FPowI is linearized into a sequence of calls of the scalar functions. Option {min-width-of-fpowi-exponent} controls which FPowI operations are converted by MathToFuncs: if the width of the exponent's integer type is less than the specified value, then the operation is not converted. Flang will specify {min-width-of-fpowi-exponent=33} to make sure that math::FPowI operations with exponent wider than 32 bits will be converted by MathToFuncs, and operations with more narrow exponent will be left for MathToLLVM to convert them to LLVM::PowIOp. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D139804 -
Josh Stone authored
Due to reversed arguments, the loop start was almost always skipping the whole loop, since FinalStackProbed is probably less than StackPtr for large alignments. The intent was to skip the loop if the first sub on StackPtr made it less than FinalStackProbed already, so flip it. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D139756
-
Craig Topper authored
This code compares getPointerTypeSizeInBits and getTypeSizeInBits. getPointerTypeSizeInBits contains a call to getScalarType while getTypeSizeInBits does not. This makes the code incorrect for vectors. For scalable vectors this caused a warning about a scalable TypeSize being converted to unsigned. Switch to DL.getTypeSizeInBits for the pointers too. This should work since inttoptr/ptrtoint can't change the number of elements. This was suggested by @nikic in D139911. Fixes PR59480. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D139962
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D139910
-
Jason Molenda authored
The dynamic linker on Darwin, dyld, can provide status of the process state for a few significant points early on, most importantly, when libSystem has been initialized and it is safe to call functions behind the scenes. Pipe this information up from debugserver to DynamicLoaderMacOS, for the DynamicLoader::IsFullyInitialized() method, then have Thread::SafeToCallFunctions use this information. Finally, for the two utility functions in the AppleObjCRuntimeV2 LanguageRuntime plugin that I was fixing, call this method before running our utility functions to collect the list of objc classes registered in the runtime. User expressions will still be allowed to run any time - we assume the user knows what they are doing - but these two additional utility functions that they are unaware of will be limited by this state. Differential Revision: https://reviews.llvm.org/D139054 rdar://102436092 can probably make function calls.
-
Jakub Kuderski authored
- Add a fold for `mulsi_extended(x, 1)` - Add folds to demote wide integer multiplication to `mul*i_extended` when the result is shifted and truncated: `trunci(shrui(mul(*ext(x), *ext(y)), c)) -> mul*i_extended(x, y)` Reviewed By: Mogball, jpienaar Differential Revision: https://reviews.llvm.org/D139778