forked from OSchip/llvm-project
antiagainst's fix
This commit is contained in:
parent
465d9084ec
commit
42d48d0966
|
@ -2288,7 +2288,11 @@ class ElementCount<string name> :
|
|||
class ElementType<string name> : StrFunc<"getElementTypeOrSelf($" # name # ")">;
|
||||
|
||||
class AllMatchPred<list<string> values> :
|
||||
CPred<"::llvm::is_splat({" # !interleave(values, ", ") # "})">;
|
||||
CPred<!if(!lt(!size(values), 2),
|
||||
"true",
|
||||
!foldl("(" # !head(values) # ")", !tail(values), acc, v,
|
||||
acc # " == (" # v # ") && (" # v # ")")
|
||||
# " == (" # !head(values) # ")")>;
|
||||
|
||||
class AllMatch<list<string> values, string summary> :
|
||||
PredOpTrait<summary, AllMatchPred<values>>;
|
||||
|
|
Loading…
Reference in New Issue