================
@@ -44,6 +45,11 @@ static const CPUInfo *getCPUInfoByName(StringRef CPU) {
return nullptr;
}
+bool hasFastUnalignedAccess(StringRef CPU) {
+ const CPUInfo *Info = getCPUInfoByName(CPU);
+ return Info && Info->FastUnalignedAccess;
----------------
fpetrogalli wrote:
Would it make sense to inform the user of invalid CPU names?
```suggestion
assert(Info && "Invalid CPU name");
return Info->FastUnalignedAccess;
```
https://github.com/llvm/llvm-project/pull/71513
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits