Skip to content
  1. Apr 08, 2012
    • Chandler Carruth's avatar
      Teach LLVM about a PIE option which, when enabled on top of PIC, makes · ede4a8aa
      Chandler Carruth authored
      optimizations which are valid for position independent code being linked
      into a single executable, but not for such code being linked into
      a shared library.
      
      I discussed the design of this with Eric Christopher, and the decision
      was to support an optional bit rather than a completely separate
      relocation model. Fundamentally, this is still PIC relocation, its just
      that certain optimizations are only valid under a PIC relocation model
      when the resulting code won't be in a shared library. The simplest path
      to here is to expose a single bit option in the TargetOptions. If folks
      have different/better designs, I'm all ears. =]
      
      I've included the first optimization based upon this: changing TLS
      models to the *Exec models when PIE is enabled. This is the LLVM
      component of PR12380 and is all of the hard work.
      
      llvm-svn: 154294
      ede4a8aa
    • Chandler Carruth's avatar
      Move the TLSModel information into the TargetMachine rather than hiding · 16f0ebcb
      Chandler Carruth authored
      in TargetLowering. There was already a FIXME about this location being
      odd. The interface is simplified as a consequence. This will also make
      it easier to change TLS models when compiling with PIE.
      
      llvm-svn: 154292
      16f0ebcb
    • Nadav Rotem's avatar
      AVX2: Build splat vectors by broadcasting a scalar from the constant pool. · 82609df6
      Nadav Rotem authored
      Previously we used three instructions to broadcast an immediate value into a
      vector register.
      On Sandybridge we continue to load the broadcasted value from the constant pool.
      
      llvm-svn: 154284
      82609df6
    • Craig Topper's avatar
      Turn avx2 vinserti128 intrinsic calls into INSERT_SUBVECTOR DAG nodes and... · d024cef2
      Craig Topper authored
      Turn avx2 vinserti128 intrinsic calls into INSERT_SUBVECTOR DAG nodes and remove patterns for selecting the intrinsic. Similar was already done for avx1.
      
      llvm-svn: 154272
      d024cef2
  2. Apr 07, 2012
    • Craig Topper's avatar
      Move vinsertf128 patterns near the instruction definitions. Add... · aa9aab5a
      Craig Topper authored
      Move vinsertf128 patterns near the instruction definitions. Add AddedComplexity to AVX2 vextracti128 patterns to give them priority over the integer versions of vextractf128 patterns.
      
      llvm-svn: 154268
      aa9aab5a
    • Bob Wilson's avatar
      Fix Thumb __builtin_longjmp with integrated assembler. <rdar://problem/11203543> · 6f9be7e2
      Bob Wilson authored
      The tLDRr instruction with the last register operand set to the zero register
      prints in assembly as if no register was specified, and the assembler encodes
      it as a tLDRi instruction with a zero immediate.  With the integrated assembler,
      that zero register gets emitted as "r0", so we get "ldr rx, [ry, r0]" which
      is broken.  Emit the instruction as tLDRi with a zero immediate.  I don't
      know if there's a good way to write a testcase for this.  Suggestions welcome.
      
      Opportunities for follow-up work:
      1) The asm printer should complain if a non-optional register operand is set
         to the zero register, instead of silently dropping it.
      2) The integrated assembler should complain in the same situation, instead of
         silently emitting the operand as "r0".
      
      llvm-svn: 154261
      6f9be7e2
    • NAKAMURA Takumi's avatar
      Target/X86/MCTargetDesc/X86MCAsmInfo.cpp: Enable DwarfCFI (aka DW2) on Cygming. · b95f6413
      NAKAMURA Takumi authored
      Cygwin-1.7 supports dw2. Some recent mingw distros support one, too.
      I have confirmed test-suite/SingleSource/Benchmarks/Shootout-C++/except.cpp can pass on Cygwin.
      
      llvm-svn: 154247
      b95f6413
    • Alexis Hunt's avatar
      Output UTF-8-encoded characters as identifier characters into assembly · 0235f684
      Alexis Hunt authored
      by default.
      
      This is a behaviour configurable in the MCAsmInfo. I've decided to turn
      it on by default in (possibly optimistic) hopes that most assemblers are
      reasonably sane. If this proves a problem, switching to default seems
      reasonable.
      
      I'm not sure if this is the opportune place to test, but it seemed good
      to make sure it was tested somewhere.
      
      llvm-svn: 154235
      0235f684
    • Jim Grosbach's avatar
      Tidy up. 80 columns. · 0c509fa6
      Jim Grosbach authored
      llvm-svn: 154226
      0c509fa6
  3. Apr 06, 2012
  4. Apr 05, 2012
  5. Apr 04, 2012
  6. Apr 03, 2012
  7. Apr 02, 2012
Loading