[lld] [lld] Add thunks for hexagon (PR #111217)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 22:47:02 PST 2024
================
@@ -2031,17 +2031,44 @@ void ThunkCreator::mergeThunks(ArrayRef<OutputSection *> outputSections) {
});
}
-static int64_t getPCBias(Ctx &ctx, RelType type) {
- if (ctx.arg.emachine != EM_ARM)
- return 0;
- switch (type) {
- case R_ARM_THM_JUMP19:
- case R_ARM_THM_JUMP24:
- case R_ARM_THM_CALL:
- return 4;
- default:
- return 8;
+static const uint32_t HEXAGON_MASK_END_PACKET = 3 << 14;
----------------
MaskRay wrote:
constexpr
namespace-scope const variables are of inline linkage by default, so you can omit `static`
https://github.com/llvm/llvm-project/pull/111217
More information about the llvm-commits
mailing list