On Thu, 30 Jul 2026 05:09:42 +0200
Anton Johansson via qemu development <[email protected]> wrote:
> +bool isFunctionQemuHelper(StringRef Name) {
> +#if LLVM_VERSION_MAJOR >= 18
> + return Name.starts_with("helper_");
> +#else
> + return Name.startswith("helper_");
> +#endif
> +}
> +
> +bool isFunctionQemuLoadStore(StringRef Name) {
> +#if LLVM_VERSION_MAJOR >= 18
> + return Name.starts_with("cpu_ld") or Name.starts_with("cpu_st");
> +#else
> + return Name.startswith("cpu_ld") or Name.startswith("cpu_st");
> +#endif
I'd just keep in compat a `startswith` function, not
isFunctionQemuHelper/isFunctionQemuLoadStore.
Let's strive for keeping this minimal.
--
Alessandro Di Federico
rev.ng Labs