- Dec 18, 2022
-
-
Peter Klausler authored
In an error recovery situation, the name resolution code for a SELECT TYPE statement must check the presence of an optional expression before calling GetType() upon it. Differential Revision: https://reviews.llvm.org/D140153
-
Roman Lebedev authored
`benchmarkMain()` is already bigger than it should be, let's extract the important chunk before making it even larger.
-
Roman Lebedev authored
[NFC][llvm-exegesis] `BenchmarkRunner`: split `runConfiguration()` into `getRunnableConfiguration()` + `runConfiguration()` We can run as many `getRunnableConfiguration()` in parallel as we want, but `runConfiguration()` must be run *completely* standalone from everything. This is a step towards enabling threading.
-
Roman Lebedev authored
We don't ever legitimately need to copy it, so let's make that explicit
-
Fangrui Song authored
Removing .c_str() has a semantics difference, but the use scenarios likely do not matter as we don't have NUL in the strings.
-
Roman Lebedev authored
I'm absolutely flabbergasted by this. I was absolutely sure this worked. But apparently not. When outputting to the file, we'd write a single `InstructionBenchmark` to it, and then close the file. And for the next `InstructionBenchmark`, we'd reopen the file, truncating it in process, and thus the first `InstructionBenchmark` would be gone...
-
Gregory Alfonso authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139485
-
Khem Raj authored
Pass -D_FILE_OFFSET_BITS=64 to compiler flags on 32bit glibc based systems. This will make sure that 64bit versions of LFS functions are used e.g. seek will behave same as lseek64. Also revert [1] partially because this added a cmake test to detect lseek64 but then forgot to pass the needed macro to actual compile, this test was incomplete too since libc implementations like musl has 64bit off_t by default on 32bit systems and does not bundle[2] -D_LARGEFILE64_SOURCE under -D_GNU_SOURCE like glibc, which means the compile now fails on musl because the cmake check passes but we do not have _LARGEFILE64_SOURCE defined. Using the *64 function was transitional anyways so use -D_FILE_OFFSET_BITS=64 instead [1] https://github.com/llvm/llvm-project/commit/8db7e5e4eed4c4e697dc3164f2c9351d8c3e942b [2] https://git.musl-libc.org/cgit/musl/commit/?id=25e6fee27f4a293728dd15b659170e7b9c7db9bc Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139752
-
Peter Klausler authored
When some arguments that specify bit positions, shift counts, and field sizes are constant at compilation time, but other arguments are not constant, the compiler should still validate the constant ones. In the current sources, validation is only performed for intrinsic references that can be folded to constants. Differential Revision: https://reviews.llvm.org/D140152
-
Krzysztof Parzyszek authored
-
Markus Böck authored
Returning `std::nullopt` from the case of a `TypeSwitch` yields broken results, by either falling through to another case, or falling of the switch entirely and hitting an assertion. This is simply due to the use of `operator=` of what is now `std::optional`, which has an overload specifically for `std::nullopt`, causing the internal optional, used for the `TypeSwitch` result to be reset, instead of a value being constructed from the `std::nullopt`. The fix is to simply use the `emplace` method of `std::optional`, causing a value to always be constructed from the value returned by the case function. Differential Revision: https://reviews.llvm.org/D140265
-
Fangrui Song authored
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716/19 value() is a 15.0.0 API for std::optional migration. std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). Deprecate value() to prevent new in-tree uses which may accidentally cause build breakage for older Xcode when contributors perform std::optional migrating. Some downtream MLIR projects such as tensorflow/mlir-hlo, stablehlo use value(), so we do not remove it now.
-
Fangrui Song authored
prerequisite to deprecate the new API value() whose counterpart in std::optional has undesired exception checking semantics and is unavailable in older Xcode.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Simon Pilgrim authored
These should consistently use the fused domain count, not the unfused domain Confirmed with Agner + uops.info
-
Slava Zakharin authored
Removed unused functions searchFunctionInLibrary and getFuncOp. Differential Revision: https://reviews.llvm.org/D140236
-
Peter Rong authored
Signed-off-by:Peter Rong <PeterRong96@gmail.com>
-
Roman Lebedev authored
The new code uses ModuleInliner, but does not link to the library that provides it.
-
Simon Pilgrim authored
Most BMI ops are 2uop and 0.5 throughput - interestingly TZCNTrm doesn't take an extra uop but the other instructions do Confirmed by AMD SoG + Agner
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Slava Zakharin authored
I kept the possibility to use pgmath in constant folding just in case. We can remove it later, if it is proven to be redundant. Differential Revision: https://reviews.llvm.org/D140236
-
Roman Lebedev authored
-
Roman Lebedev authored
Always assemble into buffer, that is then optionally dumped into file.
-
Roman Lebedev authored
-
Roman Lebedev authored
If `BenchmarkRunner::runConfiguration()` deals with more than a single repetitor, tasking will be less straight-forward to implement. But i think dealing with that in it's callee is even more readable.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Peter Klausler authored
When specific procedures of a generic have dummy procedures, underspecified actual procedures can match more than one specific procedure. This can happen with actual procedures that are externals with implicit interfaces, including the completely unspecified case of a PROCEDURE() or EXTERNAL that doesn't even differentiate between a subroutine and a function. Generic resolution can already handle cases of ambiguous resolution due to the use of NULL() actual arguments with no MOLD= arguments to define their types. Extend the handling of ambiguous actual arguments to include the case of underspecified actual procedures. Differential Revision: https://reviews.llvm.org/D140151
-
Peter Klausler authored
Check for things that are not allowed to bear the PROTECTED attribute. Differential Revision: https://reviews.llvm.org/D140150
-
Peter Klausler authored
The pointers and allocatables that appear in ALLOCATE and DEALLOCATE statements need to be subject to the general definability checks so that problems with e.g. PROTECTED objects can be caught. (Also: regularize the capitalization of the DEALLOCATE error messages while I'm in here so that they're consistent with the messages that can come out for ALLOCATE.) Differential Revision: https://reviews.llvm.org/D140149
-
Haojian Wu authored
-
Haojian Wu authored
Reflect the change 7d2c1150, fix the bazel test breakage.
-
Peter Klausler authored
Constraint C1529 requires that the base object of a type-bound procedure reference be a scalar if the TBP has the NOPASS attribute. Most compilers do not enforce this constraint and it does not appear to have any implementation justification, so emit portability warning. On the other hand, we fail to enforce C919 for references to procedure pointer components, whose base objects must of course be scalars in order to avoid ambiguity and empty arrays, whether NOPASS is present or not. Differential Revision: https://reviews.llvm.org/D140148
-
Haojian Wu authored
-
- Dec 17, 2022
-
-
Simon Pilgrim authored
Confirmed by AMD SoG + Agner + uops.info
-
Paul Walker authored
Much of foldLoadsRecursive relies on knowing the size of loaded data, which is not possible for scalable vector types. However, the logic of combining two small loads into one bigger load does not apply for vector types so rather than converting the algorithm to use TypeSize I've simply added an early exit for vectors. Fixes #59510 Differential Revision: https://reviews.llvm.org/D140106
-
Peter Klausler authored
Impose a large but finite limit on the size of a variable being initialized in a DATA statement to provide a readable error message for artificial test cases that's better than a memory allocation failure crash. Differential Revision: https://reviews.llvm.org/D140146
-