From 0a157fd7a5f61973ffddf96b3d445a718193eb1a Mon Sep 17 00:00:00 2001 From: Cameron Hart Subject: [PATCH] Add accessors for MCSubtargetInfo CPU and feature tables Keep LLVM 17.0.6's getAllProcessorDescriptions alongside the Rust accessors. --- a/llvm/include/llvm/MC/MCSubtargetInfo.h +++ b/llvm/include/llvm/MC/MCSubtargetInfo.h @@ -234,6 +234,14 @@ return ProcDesc; } + ArrayRef getCPUTable() const { + return ProcDesc; + } + + ArrayRef getFeatureTable() const { + return ProcFeatures; + } + virtual unsigned getHwMode() const { return 0; } /// Return the cache size in bytes for the given level of cache.