[llvm] [CodeGen] Stop exporting cl::opts. NFC (PR #228728)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 18:11:16 PDT 2026


================
@@ -224,6 +224,11 @@ LiveInterval *LiveIntervals::createInterval(Register reg) {
   return new LiveInterval(reg, Weight);
 }
 
+LiveRange *LiveIntervals::createRegUnitRange() {
----------------
MaskRay wrote:

Yes, we need it.  getRegUnit is inline in LiveIntervals.h and reads -use-segment-set-for-physregs, so the old code needs the extern cl::opt. createRegUnitRange() lets the option be file-local.

https://github.com/llvm/llvm-project/pull/228728


More information about the llvm-commits mailing list