You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BPF] consolidate jump table emit code in BPFAsmPrinter
The requirement to emit jump table entries as offsets measured in
instructions, e.g. as follows:
.L0_0_set_7 = ((LBB0_7-.LBPF.JX.0.0)>>3)-1
Makes it impossible to use generic AsmPrinter::emitJumpTableInfo()
function. Merge request used this generic function before
(and incorrect offsets were generated).
This generic function required two overloads:
- AsmPrinter::GetJTISymbol()
- TargetLowering::getPICJumpTableRelocBaseExpr()
Now all jump table emission logic is located in the
BPFAsmPrinter::emitJumpTableInfo(), which does not require above
overloads. Hence, remove the overloads and move corresponding code to
BPFAsmPrinter to keep it in one place.
0 commit comments