[llvm] [AIX] Support per global code model. (PR #79202)

Zaara Syeda via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 13:18:11 PST 2024


================
@@ -466,6 +466,55 @@ static void collectTOCStats(PPCAsmPrinter::TOCEntryType Type) {
   }
 }
 
+static CodeModel::Model getCodeModel(const PPCSubtarget &S,
+                                     const TargetMachine &TM,
+                                     const MachineOperand &MO) {
+  CodeModel::Model ModuleModel = TM.getCodeModel();
+  // Per global code model is only support on AIX.
----------------
syzaara wrote:

nit: only support -> only supported

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


More information about the llvm-commits mailing list