Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/lib/Target/AArch64/AArch64MCInstLower.cpp

    r4574 r4664  
    2323#include "llvm/MC/MCInst.h"
    2424#include "llvm/Support/CodeGen.h"
     25#include "llvm/Support/CommandLine.h"
    2526#include "llvm/Target/TargetMachine.h"
    2627using namespace llvm;
     28
     29extern cl::opt<bool> EnableAArch64ELFLocalDynamicTLSGeneration;
    2730
    2831AArch64MCInstLower::AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer)
     
    8588      const GlobalValue *GV = MO.getGlobal();
    8689      Model = Printer.TM.getTLSModel(GV);
     90      if (!EnableAArch64ELFLocalDynamicTLSGeneration &&
     91          Model == TLSModel::LocalDynamic)
     92        Model = TLSModel::GeneralDynamic;
     93
    8794    } else {
    8895      assert(MO.isSymbol() &&
    8996             StringRef(MO.getSymbolName()) == "_TLS_MODULE_BASE_" &&
    9097             "unexpected external TLS symbol");
     98      // The general dynamic access sequence is used to get the
     99      // address of _TLS_MODULE_BASE_.
    91100      Model = TLSModel::GeneralDynamic;
    92101    }
     
    124133  else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_G0)
    125134    RefFlags |= AArch64MCExpr::VK_G0;
     135  else if ((MO.getTargetFlags() & AArch64II::MO_FRAGMENT) == AArch64II::MO_HI12)
     136    RefFlags |= AArch64MCExpr::VK_HI12;
    126137
    127138  if (MO.getTargetFlags() & AArch64II::MO_NC)
Note: See TracChangeset for help on using the changeset viewer.