nickdesaulniers added subscribers: jyknight, echristo. nickdesaulniers added inline comments.
================ Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3138 } + if (EffectiveTriple.isAArch64() && Value != "sp_el0") { + D.Diag(diag::err_drv_invalid_value_with_suggestion) ---------------- nickdesaulniers wrote: > nickdesaulniers wrote: > > TODO: can we re-use `AArch64SysReg::lookupSysRegByName` in the frontend? > I don't think so because `llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h` is > under lib/ not include/. Not sure if I should just remove reg validation? Guidance provided by @echristo and @jyknight was that we should avoid such linkage requirements on Target/, so instead I'll work on adding a helper to clang/lib/Driver/ToolChains/Arch/AArch64.cpp that duplicates logic from `AArch64SysReg::lookupSysRegByName`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100919/new/ https://reviews.llvm.org/D100919 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits