[llvm] [AIX] Support per global code model. (PR #79202)
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 08:20:50 PST 2024
================
@@ -186,9 +186,18 @@ bool PPCSubtarget::enableSubRegLiveness() const {
}
bool PPCSubtarget::isGVIndirectSymbol(const GlobalValue *GV) const {
+ if (isAIXABI() && isa<GlobalVariable>(GV)) {
+ // On AIX the only symbols that aren't indirect are toc-data.
+ if (cast<GlobalVariable>(GV)->hasAttribute("toc-data"))
----------------
amy-kwan wrote:
nit: According to https://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates, we should try not to use `isa<>` followed by `<cast>`?
https://github.com/llvm/llvm-project/pull/79202
More information about the llvm-commits
mailing list