Skip to content
  1. Jul 03, 2013
  2. Jul 02, 2013
    • Eric Christopher's avatar
      Fix comment. · 9046f942
      Eric Christopher authored
      llvm-svn: 185480
      9046f942
    • Michael Gottesman's avatar
    • Ulrich Weigand's avatar
      · 42a09dc1
      Ulrich Weigand authored
      [PowerPC] PR16512 - Support TLS call sequences in the asm parser
      
      This patch now adds support for recognizing TLS call sequences in
      the asm parser.  This needs a new pattern BL8_TLS, which is like
      BL8_NOP_TLS except without nop.  That pattern is used for the
      asm parser only.
      
      llvm-svn: 185478
      42a09dc1
    • Ulrich Weigand's avatar
      · 5143bab2
      Ulrich Weigand authored
      [PowerPC] Rework TLS call operand processing
      
      As part of the global-dynamic and local-dynamic TLS sequences, we need
      to use a special form of the call instruction:
      
       bl __tls_get_addr(sym@tlsld)
       bl __tls_get_addr(sym@tlsgd)
      
      which generates two fixups.  The current implementation of this causes
      problems with recognizing this form in the asm parser.  To fix this,
      this patch reworks operand processing for this special form by using
      a single operand to hold both __tls_get_addr and sym@tlsld and defining
      a print method to output the above form, and an encoding method to
      generate the two fixups.
      
      As a side simplification, the patch replaces the two instruction
      patterns BL8_NOP_TLSGD and BL8_NOP_TLSLD by a single BL8_NOP_TLS,
      since the patterns already operate in an identical fashion (whether
      we have a local-dynamic or global-dynamic symbol is already encoded
      in the symbol modifier).
      
      No change in code generation intended.
      
      llvm-svn: 185477
      5143bab2
Loading