aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>2014-04-30 15:06:25 +0000
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>2014-04-30 15:06:25 +0000
commit7b061a42b125737137feae387bba372bc43f8c09 (patch)
treee4d1a3fdcf5797fd50867c88d2a7519eb34e2a9e /llvm/lib/CodeGen/MachineFunction.cpp
parentbbd5e85e21178d704ab7a403a2433691d9b35cae (diff)
downloadllvm-7b061a42b125737137feae387bba372bc43f8c09.zip
llvm-7b061a42b125737137feae387bba372bc43f8c09.tar.gz
llvm-7b061a42b125737137feae387bba372bc43f8c09.tar.bz2
[mips] Fix MipsLongBranch pass to work when the offset from the branch to the
target cannot be determined accurately. This is the case for NaCl where the sandboxing instructions are added in MC layer, after the MipsLongBranch pass. It is also the case when the code has inline assembly. Instead of calculating offset in the MipsLongBranch pass, use %hi(sym1 - sym2) and %lo(sym1 - sym2) expressions that are resolved during the fixup. This patch also deletes microMIPS test file test/CodeGen/Mips/micromips-long-branch.ll and implements microMIPS CHECKs in a much simpler way in a file test/CodeGen/Mips/longbranch.ll, together with MIPS32 and MIPS64. llvm-svn: 207656
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions