mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 20:05:01 +00:00
Bump to Clang 18 (#1549)
This commit is contained in:
parent
3d04765a3f
commit
c83ac654ce
6 changed files with 11 additions and 11 deletions
|
@ -14,8 +14,8 @@ namespace Shader::IR {
|
|||
// Use typename Instruction so the function can be used to return either const or mutable
|
||||
// Insts depending on the context.
|
||||
template <typename Instruction, typename Pred>
|
||||
auto BreadthFirstSearch(Instruction* inst, Pred&& pred)
|
||||
-> std::invoke_result_t<Pred, Instruction*> {
|
||||
auto BreadthFirstSearch(Instruction* inst,
|
||||
Pred&& pred) -> std::invoke_result_t<Pred, Instruction*> {
|
||||
// Most often case the instruction is the desired already.
|
||||
if (std::optional result = pred(inst)) {
|
||||
return result;
|
||||
|
@ -53,8 +53,8 @@ auto BreadthFirstSearch(Instruction* inst, Pred&& pred)
|
|||
}
|
||||
|
||||
template <typename Pred>
|
||||
auto BreadthFirstSearch(const Value& value, Pred&& pred)
|
||||
-> std::invoke_result_t<Pred, const Inst*> {
|
||||
auto BreadthFirstSearch(const Value& value,
|
||||
Pred&& pred) -> std::invoke_result_t<Pred, const Inst*> {
|
||||
if (value.IsImmediate()) {
|
||||
// Nothing to do with immediates
|
||||
return std::nullopt;
|
||||
|
|
|
@ -53,7 +53,7 @@ constexpr Type F64x3{Type::F64x3};
|
|||
constexpr Type F64x4{Type::F64x4};
|
||||
constexpr Type StringLiteral{Type::StringLiteral};
|
||||
|
||||
constexpr OpcodeMeta META_TABLE[]{
|
||||
constexpr OpcodeMeta META_TABLE[] {
|
||||
#define OPCODE(name_token, type_token, ...) \
|
||||
{ \
|
||||
.name{#name_token}, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue