- May 24, 2024
-
-
Peter Klausler authored
The type of "[lo:hi:str]" is being forced to INTEGER(8), ignoring the types of the operands to the triplet. The type of a triplet should be whatever the type of "lo+hi+str" would be. (Array constructor triplets are a syntactic sugar extension for an implied DO loop.)
-
Fangrui Song authored
-
Peter Klausler authored
Shape analysis for the results of SHAPE, LBOUND, and UBOUND (without DIM=) needs to account for an assumed-rank dummy argument, and return a shape vector with a single unknown element.
-
Peter Klausler authored
I modified declaration checking for interoperable objects to buffer its generated messages as I had previously done for derived types and procedure interfaces, but failed to modify all of the message creation statements to use the new buffer, so some are now escaping when a module file is being compiled. Fix to ensure that the new buffer is always used.
-
Peter Klausler authored
When reading variable-length unformatted records, the external I/O library frames the input buffer so that the footer of the previous record remains in frame. This is done so that a BACKSPACE doesn't have to do an extra read to get the length of the previous record before repositioning over it. When switching from input to output to overwrite or append new records after reading any, it is necessary to undo this framing of the last word in the previous record, since the new output isn't going to define it in the buffer and it'll be overwritten in the filesystem with garbage.
-
Peter Klausler authored
A type-bound procedure that's bound to a name that isn't a procedure is caught as an error, but can also lead to a crash in compatibility checking later. Make that code more robust to failure. Fixes https://github.com/llvm/llvm-project/issues/92678.
-
Ivan Kulagin authored
The current implementation does not take into account definitions created by arguments of nested blocks. This leads to an incorrect construction of the live-in set of an outer block. Arguments of nested blocks are added to the live-in set of an outer block. --------- Signed-off-by:
ikulagin <i.kulagin@ispras.ru> Co-authored-by:
ikulagin <i.kulagin@ispras.ru>
-
Keith Smiley authored
-
drazi authored
In today's repo, attribute `llvm.emit_c_interface` of func op is handled outside of `mlir::convertFuncOpToLLVMFuncOp` in `FuncOpConversion` pattern. In some cases, `FuncOpConversion` can't be directly re-used, but we still want to re-use the code to emit c interface for `llvm.emit_c_interface`. Changes in this PR * move the code to generate c with "llvm.emit_c_interface" interface into `mlir::convertFuncOpToLLVMFuncOp` to be able to re-use it. * added unit test to verify c interface for jit can be generated correctly if only call `convertFuncOpToLLVMFuncOp`. * removed `FuncOpConversionBase` --------- Co-authored-by:Fung Xie <ftse@nvidia.com>
-
Adrian Prantl authored
For the significant amount of call sites that want to create an incontrovertible error, such a wrapper function creates a significant readability improvement and lowers the cost of entry to add error handling in more places.
-
Louis Dionne authored
1. Remove the format-checking job from the BuildKite pipeline. We now have a monorepo-wide format checker implemented with Github Actions, so that should not be necessary anymore. 2. Stop building and testing Clang on Windows via the clang-ci pipeline. We already do that in the github-pull-requests pipeline, so that's just duplicate work. 3. Stop testing Clang on Linux in the clang-ci pipeline. We already do that in the github-pull-requests pipeline too, so that's also duplicate work. For now we still build Clang because the other jobs in the clang-ci pipeline require its artifacts, but that could be improved.
-
Renato Golin authored
-
Renato Golin authored
-
Kazu Hirata authored
This patch refactors getMemProfRecord for readability while adding consistency checks. - This patch adds a switch statement on the MemProf version just like most places dealing with MemProf serialization/deserialization. - This patch adds asserts to ensure that the exact set of data structures are available while ones we do not use are not present. That is, getMemProfRecord no longer determines the version based on the availability of MemProfCallStackTable.
-
Kiran Chandramohan authored
Re-enable a few simd, critical, workshare tests.
-
David Green authored
This makes use of half floats, which makes the masked stores expensive.
-
Peter Klausler authored
When a symbol appears in a specification expression in a subprogram contained in a host program unit, semantics may have to create a symbol in the host and use host association to it. This shouldn't happen for nested subprograms that can't import such a symbol, such as interface blocks by default. Further, when host association fails, semantics shouldn't crash. Fixes https://github.com/llvm/llvm-project/issues/92647.
-
Peter Klausler authored
EQUIVALENCE set processing assumes that any arrays have explicit shape and constant lower bounds. When an erroneous program violates those assumptions, the compiler crashes. Fix. Fixes https://github.com/llvm/llvm-project/issues/92636.
-
Slava Zakharin authored
This helps reducing the compilation time spent by the device compiler optimizer and then the code generator. Since F18 RT is going to be distributed as LLVM BC for some targets (same way as LLVM liboffload device library is distributed) and linked to the user offload code, the compilation time of the produced LLVM BC will be critical.
-
Xing Xue authored
Casting NULL as type `uintptr_t` to allow type checking in both 32-bit and 64-bit mode.
-
Louis Dionne authored
-
Aaron Ballman authored
This amends b49ce9c3
-
Keith Smiley authored
-
Kazu Hirata authored
std::move and reserve here result in a measurable speed-up in llvm-profdata modified to deserialize all MemProfRecords. The cycle count goes down by 7.1% while the instruction count goes down by 21%.
-
Cyndy Ishida authored
A missing dependency resulted in `fatal error: 'llvm/IR/Attributes.inc' file not found` errors when performing an Apple-stage2 build with LLVM_ENABLE_MODULES enabled. This resolves the scheduling issue when building LLVMTableGenCommon library target. resolves: rdar://128536914
-
Aaron Ballman authored
This tries to fix all of the places where a diagnostic message starts with a capital letter (other than acroynyms or proper nouns) or ends with punctuation (other than a question mark). This is in support of a planned change to tablegen to start diagnosing incorrect diagnostic message styles.
-
Amir Ayupov authored
InitialDynoStats used to be assigned inside `runAllPasses`, but the assignment executed before any of the passes. As we've moved `EstimateEdgeCounts` into a pass out of ProfileReader, it needs to execute before initial dyno stats are set. Thus move `InitialDynoStats` into BinaryContext and assignment into `DynoStatsSetPass`.
-
Ellis Hoag authored
The `llvm-profdata order` command is used to compute a function order using traces from the input profile. Add the `--num-test-traces` flag to keep aside N traces to evalute this order. These test traces are assumed to be the actual function execution order in some experiment. The output is a number that represents how many page faults we got. Lower is better. I tested on a large profile I already had. ``` llvm-profdata order default.profdata --num-test-traces=30 # Ordered 149103 functions # Total area under the page fault curve: 2.271827e+09 ... ``` I also improved `TemporalProfTraceTy::createBPFunctionNodes()` in a few ways: * Simplified how `UN`s are computed * Change how the initial `Node` order is computed * Filter out rare and common `UN`s * Output vector is an aliased argument instead of a return These changes slightly improved the evaluation in my test. ``` llvm-profdata order default.profdata --num-test-traces=30 # Ordered 149103 functions # Total area under the page fault curve: 2.268586e+09 ... ```
-
Mogball authored
-
Michael Maitland authored
This function only takes EEW=16 so we use that directly. This commit comes from suggestion on #92768.
-
Kavan Bickerstaff authored
This prevents an assertion when constructing the DenseElementsAttr result, where the passed-in type is expected to have a static shape. Fixes https://github.com/llvm/llvm-project/issues/92057
-
Jeff Niu authored
FoldAdaptor is generated as a subclass of the operation's generic adaptor, which requires an OperationName instance. It called into the generic base constructor that constructed the OperationName from a string, requiring a StringMap lookup inside the MLIRContext. This makes constructing FoldAdaptors really slow, which is a shame because the `Operation *` is right there. This PR changes GenericAdaptor constructor from an operation to grab the OperationName directly from the `Operation *`. In addition, it generates the constructor inline if the operation doesn't have properties, since otherwise it requires the definition of the op.
-
Michael Flanders authored
docgen now lists macro implementation status in the generated rst files. Adds POSIX definition link property to docgen json API (`posix-definition`) and changes the `defined` property of docgen json API to `c-definition`. Now that docgen's api is getting more specified, adds validation checks to docgen to start codifying the docgen api spec. To make sure this all looks good, I've added POSIX definition links to signal.h as a tester.
-
Krzysztof Parzyszek authored
-
Jeremy Kun authored
Addresses https://github.com/google/heir/issues/542#issuecomment-2126175775 Co-authored-by:
Jeremy Kun <j2kun@users.noreply.github.com>
-
Eli Friedman authored
re.Match apparently doesn't exist in older versions.
-
Angel Zhang authored
The plan is to replace this with a dedicated pattern fom`vector.interleave` to `spirv.shuffle` in the future. --------- Co-authored-by:Jakub Kuderski <kubakuderski@gmail.com>
-
Matt Arsenault authored
If the calling function has the null_pointer_is_valid attribute, somehow a null constant reaches here. I'm not sure why exactly, it doesn't happen for other types of constants. Fixes #87856
-
Andrei Homescu authored
https://github.com/llvm/llvm-project/pull/83493 slightly changed the order of computation of block addresses and pointers, causing the value of DefaultAlignedPtr to include the MTE tag. Move this computation earlier so it matches the old behavior. This fixes a UBSan failure in Trusty: secure os: UBSan: (overflow:-) external/scudo/standalone/combined.h:1070:35 secure os: Details: unsigned integer overflow: 8988807738704 - 144124176883594576 cannot be represented in type 'uptr'
-
Nuri Amari authored
Prior to this patch, when using -fthinlto-index= the ObjCARCContractPass isn't run prior to CodeGen, and instruction selection fails on IR containing arc intrinsics. This patch is motivated by that usecase. The pass was previously added in various places codegen is performed. This patch adds the pass to the default codegen pipepline, makes sure it bails immediately if no arc intrinsics are found, and removes the adhoc scheduling of the pass. Co-authored-by:Nuri Amari <nuriamari@fb.com>
-