[AIX] Support init priority
authorXiangling Liao <Xiangling.Liao@ibm.com>
Mon, 23 Nov 2020 18:55:47 +0000 (13:55 -0500)
committerXiangling Liao <Xiangling.Liao@ibm.com>
Mon, 23 Nov 2020 19:50:05 +0000 (14:50 -0500)
commit01b3e6e026332d66b18a658f31926436669f3bb9
tree10ac4838428fa8181e5c5cf07e8039216596e348
parent9e9d9aba147561f4463d27a9570c99937d53563b
[AIX] Support init priority

Support reserved [0-100] and non-reserved[101-65535] Clang/GNU init
priority values on AIX.
This patch maps Clang/GNU values into priority values used in sinit/sterm
functions. User can play with values and be able to get init to occur
before or after XL init and vice versa.

Differential Revision: https://reviews.llvm.org/D91272
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/aix-static-init-non-default-priority.ll