[llvm] [AIX] Support per global code model. (PR #79202)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 10 21:29:05 PDT 2024
================
@@ -474,6 +474,55 @@ static void collectTOCStats(PPCAsmPrinter::TOCEntryType Type) {
}
}
+static CodeModel::Model getCodeModel(const PPCSubtarget &S,
----------------
chenzheng1030 wrote:
Can we reuse this function in both file `llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp` and `llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp`? The third parameter can be `GlobalVariable`? See `TargetMachine::isLargeGlobalValue`
https://github.com/llvm/llvm-project/pull/79202
More information about the llvm-commits
mailing list