1. Aug 10, 2017
  2. Aug 09, 2017
    • Sanjay Patel's avatar
      [x86] add more tests for select-of-constants; NFC · 6f80d6b4
      Sanjay Patel authored
      This is to help recommit a fixed version of r310208. As shown in PR34097, 
      we could miscompile if subtraction of the constants overflowed.
      
      llvm-svn: 310490
      6f80d6b4
    • Gheorghe-Teodor Bercea's avatar
      [OpenMP] Add flag for overwriting default PTX version for OpenMP targets · 6b26dcb6
      Gheorghe-Teodor Bercea authored
      Summary:
      This flag "--fopenmp-ptx=" enables the overwriting of the default PTX version used for GPU offloaded OpenMP target regions: "+ptx42".
      
      
      
      Reviewers: arpith-jacob, caomhin, carlo.bertolli, ABataev, Hahnfeld, jlebar, hfinkel, tstellar
      
      Reviewed By: ABataev
      
      Subscribers: rengolin, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D29660
      
      llvm-svn: 310489
      6b26dcb6
    • Vadim Macagon's avatar
      Fix PlatformPythonTestCase.test_platform_list for the build bots · 48df75fc
      Vadim Macagon authored
      llvm-svn: 310488
      48df75fc
    • Marshall Clow's avatar
      Change the way the literal operators are defined - now w/o a seperating space.... · 162484f7
      Marshall Clow authored
      Change the way the literal operators are defined - now w/o a seperating space. This should be a NFC, but it will change how the compiler parses it.
      
      llvm-svn: 310487
      162484f7
    • Florian Hahn's avatar
      [ARM] Emit error when ARM exec mode is not available. · d68bc7ae
      Florian Hahn authored
      Summary:
      A similar error message has been removed from the ARMTargetMachineBase
      constructor in r306939. With this patch, we generate an error message
      for the example below, compiled with -mcpu=cortex-m0, which does not
      have ARM execution mode.
      
          __attribute__((target("arm"))) int foo(int a, int b)
          {
              return a + b % a;
          }
      
          __attribute__((target("thumb"))) int bar(int a, int b)
          {
              return a + b % a;
          }
      
      By adding this error message to ARMBaseTargetMachine::getSubtargetImpl,
      we can deal with functions that set -thumb-mode in target-features.
      At the moment it seems like Clang does not have access to target-feature
      specific information, so adding the error message to the frontend will
      be harder.
      
      Reviewers: echristo, richard.barton.arm, t.p.northover, rengolin, efriedma
      
      Reviewed By: echristo, efriedma
      
      Subscribers: efriedma, aemerson, javed.absar, kristof.beyls
      
      Differential Revision: https://reviews.llvm.org/D35627
      
      llvm-svn: 310486
      d68bc7ae
    • Coby Tayree's avatar
      [X86][Asm]Allow far jmp/call to be picked when using explicit FWORD size specifier · 36386553
      Coby Tayree authored
      Currently, far jmp/call which utilizes a 48bit memory operand would have been invoked via the 'lcall/ljmp' mnemonic (intel style).
      This patch align those variants to formal intel spec
      
      Differential Revision: https://reviews.llvm.org/D35846
      
      llvm-svn: 310485
      36386553
    • Gheorghe-Teodor Bercea's avatar
      [OpenMP] Add flag for disabling the default generation of relocatable OpenMP... · 08465828
      Gheorghe-Teodor Bercea authored
      [OpenMP] Add flag for disabling the default generation of relocatable OpenMP target code for NVIDIA GPUs.
      
      Summary: Previously we have added the "-c" flag which gets passed to PTXAS by default to generate relocatable OpenMP target code by default. This set of flags exposes control over this behaviour.
      
      Reviewers: arpith-jacob, caomhin, carlo.bertolli, ABataev, Hahnfeld, jlebar, hfinkel, tstellar
      
      Reviewed By: ABataev
      
      Subscribers: Hahnfeld, rengolin, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D29659
      
      llvm-svn: 310484
      08465828
    • Erich Keane's avatar
      Fix broken getAttributeSpellingListIndex for pragma attributes · be89f4c5
      Erich Keane authored
      We noticed when implementing a new pragma that the TableGen-generated function 
      getAttributeSpellingListIndex() did not work for pragma attributes. It relies 
      on the values in the enum AttributeList::Syntax and a new value 
      AS_ContextSensitiveKeyword was added changing the value for AS_Pragma. 
      Apparently no tests failed since no pragmas currently make use of the 
      generated function.
      
      To fix this we can move AS_Pragma back to the value that TableGen code expects. 
      Also to prevent changes in the enum from breaking that routine again I added 
      calls to getAttributeSpellingListIndex() in the unroll pragma code. That will 
      cause some lit test failures if the order is changed. I added a comment to 
      remind of this issue in the future.
      
      This assumes we don’t need/want full TableGen support for 
      AS_ContextSensitiveKeyword. It currently only appears in getAttrKind and no 
      other TableGen-generated routines.
      
      Patch by: mikerice
      
      Differential Revision: https://reviews.llvm.org/D36473
      
      llvm-svn: 310483
      be89f4c5