[PATCH] D139894: [FuzzMutate] introduce vector operations, select and fneg into InstInjectorStrategy
Peter Rong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 28 16:20:18 PST 2022
Peter added inline comments.
================
Comment at: llvm/include/llvm/FuzzMutate/OpDescriptor.h:138-146
+static inline SourcePred boolOrVecBoolType() {
+ return anyXOrVecXType([](Type *Ty) {
+ if (IntegerType *IntTy = dyn_cast<IntegerType>(Ty)) {
+ return IntTy->getBitWidth() == 1;
+ } else {
+ return false;
+ }
----------------
arsenm wrote:
> This is just Ty->isIntOrIntVectorTy(1)
With the API you mentioned, (really helpful btw), I think I'll remove `anyXorVecX` for now, they won't come back until I finish bitcast instructions, which is so complicated I have to put it in a stand alone patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139894/new/
https://reviews.llvm.org/D139894
More information about the llvm-commits
mailing list