Skip to content
  • 鑫 王's avatar
    e70d4140
    Add -mcmodel=medium moduleflag to generated LLVM IR on LoongArch platform · e70d4140
    鑫 王 authored and Marge Bot's avatar Marge Bot committed
    With the Medium code model, the jump range of the generated jump
    instruction is larger than that of the Small code model. It's a
    temporary fix of the problem descriped in https://gitlab.haskell
    .org/ghc/ghc/-/issues/25495. This commit requires that the LLVM
    used contains the code of commit 9dd1d451d9719aa91b3bdd59c0c6679
    83e1baf05, i.e., version 8.0 and later. Actually we should not
    rely on LLVM, so the only way to solve this problem is to implement
    the LoongArch backend.
    
    Add new type for codemodel
    e70d4140
    Add -mcmodel=medium moduleflag to generated LLVM IR on LoongArch platform
    鑫 王 authored and Marge Bot's avatar Marge Bot committed
    With the Medium code model, the jump range of the generated jump
    instruction is larger than that of the Small code model. It's a
    temporary fix of the problem descriped in https://gitlab.haskell
    .org/ghc/ghc/-/issues/25495. This commit requires that the LLVM
    used contains the code of commit 9dd1d451d9719aa91b3bdd59c0c6679
    83e1baf05, i.e., version 8.0 and later. Actually we should not
    rely on LLVM, so the only way to solve this problem is to implement
    the LoongArch backend.
    
    Add new type for codemodel
Loading