[mlir] [arith] Combine op for select (#234818)
Fold select(c, F(a0, a1), F(b0, b1)) into F(select(c, a0, b0), select(c,
a1, b1))
Correctness provement:
Let's discuss the cases ignoring poison first.
As F is elementwise, we have
F(a1, a2, ..., a_n)[p] = F(a1[p], a2[p], ..., a_n[p])
then for
L = select(M, F(a0, a1, ..., a_n), F(b0, b1, ..., b_n))
R = F(select(M, a0, b0), select(M, a1, b1), ....)
for any position p, we have:
[35 lines not shown]
[clang-tidy] Add bugprone-macro-condition check (#210768)
Warns about inconsistent macro usage in preprocessor conditions.
#define USE_FOO 0
#ifdef USE_FOO
// ...no preprocessor directives testing the value of USE_FOO
#endif
Here USE_FOO is defined to a value (and furthermore defined to evaluate
to false) but the preprocessor condition only checks for the macro being
defined.
Fixes #27438
[orc-rt] Add SymbolLookupSet for interned symbol names (#242969)
SymbolLookupSet holds symbol names as StringPool::Ptrs, so building a
set doesn't copy the name strings. It has the same interface as
RemoteSymbolLookupSet, which holds plain std::strings.
sps::lookupInJITDylib now takes a SymbolLookupSet. To support this:
- StringPool::Ptr and WeakPtr can be serialized to SPSString, which
writes the string's value. Only serialization is supported:
deserializing into an interned string would need a StringPool, and SPS
deserialization has no way to obtain one.
- SymbolLookupSet can be serialized (but not deserialized) as an
SPSSymbolLookupSet. The wire format doesn't change, so controllers are
unaffected.
- SPSRemoteSymbolLookupSet.h is renamed to SPSSymbolLookupSet.h, after
the tag it defines. It now holds the traits for both kinds of set.
[libc][GPU] Enable scalbn/ldexp, rand, remainder for SPIR-V (#242212)
This PR is a follow up of
https://github.com/llvm/llvm-project/pull/236324 to fix more build
issues for SPIR-V compiler-rt builtin tests. "Undefined symbols" from
libc and libm still lead to a bunch of build failures such as rand,
srand, scalbn/f, remainder/f. Before the fix, building results:
Total Discovered Tests: 275
Unsupported: 125 (45.45%)
Passed : 128 (46.55%)
Failed : 22 (8.00%)
After the fix:
Total Discovered Tests: 275
Unsupported: 125 (45.45%)
Passed : 136 (49.45%)
Failed : 14 (5.09%)
8 more tests can build pass now.
[8 lines not shown]
[llvm-exegesis] Parse library options into a context (#242680)
Parse the command line into a cl::LibraryOptionsContext instead of the
global option values. LLVMState::create takes the context and points
the target machine's MCOptions.LibraryOptions at it. The assembler's
LLVMContext and the disassembler's MCAsmInfo read from it as well.
LLM-aided
editors/openoffice-devel: address sanitizer
Add ASAN option to build with address sanitizer.
Mark the ASAN option broken because the makedepend build tool has an
ASAN failure early in the build.
No PORTREVISON bump because the package is unchanged.