[flang-rt] Fix OPEN after the runtime has closed all units segfaults when FORT_CONVERT_UNIT lists units (#244322)
A last minute review modification to the original feature introduced a
bug (segfault) when an `OPEN` occurs after the runtime has closed all
the output units. It was not understood that I/O could resume after
closing all units.
Fixes https://github.com/llvm/llvm-project/issues/243040
[InstrProf] Correlate functions without debug info (#243667)
With debug info correlation, a function's counters and MC/DC bitmap are
described by DWARF variables in its subprogram. A function without debug
info, such as a compiler-generated helper or a Swift synthesized
function
(value witnesses, protocol witness thunks, metadata accessors), has no
subprogram, so its profile is lost.
Describe the variables of such a function at the scope of the module's
first
compile unit, and accept them in the correlator. Older correlators
ignore
these variables and read the rest as before.
Assisted-by: AI coding agent
18796 Support building with OpenSSL 4
Reviewed by: Rich Lowe <richlowe at richlowe.net>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Dominik Hassler <hadfl at omnios.org>
Approved by: Dan McDonald <danmcd at oxide.computer>
[Hexagon] Allow new value jumps past debug register reads (#243375)
A debug value that reads the feeder's register between the feeder and
the
compare blocked the new value jump. Debug instructions do not execute,
so
skip them in the feeder scan.
The feeder moves down to the jump, so debug values that read its
register
would precede it. Set them undef with
HexagonInstrInfo::moveDependentDebugValues.
It copies nothing, because the jump is a terminator. A copy between the
feeder and the jump would break the packetizer's adjacency requirement.
Fixes #227921
[IR] Make InaccessibleMem a category rather than a location
The memory location `InaccessibleMem` has been used to express various
memory-like restrictions. It is used in many cases where no actual
access to memory occurs; the only purpose of this access is to impose
restrictions on the control flow. It does not specify a concrete reason
why the restrictions are needed, and all operations having such access
are subjected to the same restriction. Using more a specific property
than the generic access to `InaccessibleMem` can be profitable, and
sometimes `InaccessibleMem` undergoes splitting. Previously, `TargetMem`
accesses had been separated from `InaccessibleMem` and there is an
intention to separate the access to floating-point environment.
At the same time, the notion of `InaccessibleMem` is useful. In many
cases, the knowledge that the access cannot alias with any pointer is
enough for an algorithm. Considering all locations as a group may
simplify algorithms; they continue using functions like
`onlyAccessesInaccessibleMem`, although the set of tested locations can
vary.
[30 lines not shown]
[Hexagon] Apply single-float/complex packet options in the packetizer (#245210)
-single-float-packet and -single-complex-packet were only checked by the
global scheduler's pull-up, so the packetizer could still put two
floating point or two complex instructions in one packet. Define the
options in the packetizer and check them in cannotCoexistAsymm. The
global scheduler refers to the packetizer's options.
Assisted by AI
Co-authored-by: Harsha Jagasia <hjagasia at qti.qualcomm.com>
Co-authored-by: Krzysztof Parzyszek <kparzysz at qti.qualcomm.com>
[CIR] Support complex values from co_yield (#237940)
Added complex value support to co_yield expressions to instead of
reporting them as NYI.
Example: _Complex double value = co_yield 0;
Used the complex type's required alignment when temporarily storing the
resumed value.
Added CIR and LLVM lowering test for float, integer and reference
complex values.
[flang] Fix lowering of VOLATILE pointer/allocatable function results (#240519)
Fixes #240410
A function result that is a `POINTER` or `ALLOCATABLE` with the
`VOLATILE` attribute fails FIR verification:
```fortran
function func() result(res)
integer, pointer :: res
volatile :: res
allocate(res)
res = 7
end function
```
```
error: type of return operand 0 ('!fir.box<!fir.ptr<i32>, volatile>') doesn't match
function result type ('!fir.box<!fir.ptr<i32>>') in function @_QPfunc
[22 lines not shown]