Skip to content
  1. Jan 09, 2013
    • Han Ming Ong's avatar
      <rdar://problem/12975489> · 95b604b2
      Han Ming Ong authored
      1. Using mach port number, just like when inferior is paused.
      2. Use key:value pair of thread used time instead of comma separated notation.
      
      llvm-svn: 172012
      95b604b2
    • Joel Jones's avatar
      Fix description of ARMOperand · 5459754d
      Joel Jones authored
      llvm-svn: 172011
      5459754d
    • Nadav Rotem's avatar
      ARM Cost model: Use the size of vector registers and widest vectorizable... · b1791a75
      Nadav Rotem authored
      ARM Cost model: Use the size of vector registers and widest vectorizable instruction to determine the max vectorization factor.
      
      llvm-svn: 172010
      b1791a75
    • Dmitri Gribenko's avatar
      ClangTools.rst: spelling and formatting · dd7d8a0f
      Dmitri Gribenko authored
      llvm-svn: 172008
      dd7d8a0f
    • Dmitri Gribenko's avatar
      ClangFormat.rst: improve formatting · cb9ede94
      Dmitri Gribenko authored
      llvm-svn: 172007
      cb9ede94
    • David Greene's avatar
      Disable -Wuninitialized for gcc · 9ff8d471
      David Greene authored
      If the compiler is gcc, disable variants of -Wuninitialized depending
      on the gcc version.  This gets a lot of false positive warnings out of
      the build.
      
      Generate a new configure for the gcc -Wno-uninitialized fix.
      
      Pick up -Wno-uninitialized from configure
      
      Add the option -Wno[-maybe]-uninitialized as determined by configure.
      
      llvm-svn: 172006
      9ff8d471
    • Hal Finkel's avatar
      Remove the unused Parser::ParseTranslationUnit function · 6134a6e7
      Hal Finkel authored
      Parser::ParseTranslationUnit is now dead because the loop over
      ParseTopLevelDecl is in ParseAST.
      
      llvm-svn: 172005
      6134a6e7
    • Daniel Jasper's avatar
      Add documentation for clang-format. · 85a77c16
      Daniel Jasper authored
      This adds documentation for both LibFormat as well as the standalone
      tools and integrations built on top of it. It slightly restructures
      the ClangTools documentation.
      
      llvm-svn: 172004
      85a77c16
    • Nico Weber's avatar
      Formatter: Make parseObjCUntilAtEnd() actually work. · d8ffe75a
      Nico Weber authored
      llvm-svn: 172003
      d8ffe75a
    • Nico Weber's avatar
      Formatting: Add support for @protocol. · 8696a8d9
      Nico Weber authored
      Pull pieces of the @interface code into reusable methods.
      
      llvm-svn: 172001
      8696a8d9
    • Evan Cheng's avatar
      Fix a DAG combine bug visitBRCOND() is transforming br(xor(x, y)) to br(x != y). · 5652a8df
      Evan Cheng authored
      It cahced XOR's operands before calling visitXOR() but failed to update the
      operands when visitXOR changed the XOR node.
      
      rdar://12968664
      
      llvm-svn: 171999
      5652a8df
    • Daniel Jasper's avatar
      Simplify reversed for-loop. · abf4cce4
      Daniel Jasper authored
      llvm-svn: 171998
      abf4cce4
    • Michael J. Spencer's avatar
      Style fixes. · 41d9dc56
      Michael J. Spencer authored
      llvm-svn: 171997
      41d9dc56
    • Nico Weber's avatar
      Fix test after r171995. · 4d03055e
      Nico Weber authored
      I wasn't aware libFormat is used elsewhere already. Let me know if rebasing
      is not the right thing to do here.
      
      llvm-svn: 171996
      4d03055e
    • Nico Weber's avatar
      Formatter: Add support for @interface. · 7eecf4b6
      Nico Weber authored
      Previously:
      @interface Foo + (id)init; @end
      
      Now:
      @interface Foo
      + (id)init;
      @end
      
      Some tweaking remains, but this is a good first step.
      
      llvm-svn: 171995
      7eecf4b6
    • Daniel Jasper's avatar
      Initial version of diff/patch-reformat tool. · 46e432fb
      Daniel Jasper authored
      Use at your own risk :-).
      
      llvm-svn: 171994
      46e432fb
    • Enrico Granata's avatar
      <rdar://problem/12028723> · b576bba2
      Enrico Granata authored
      Adding useful formatting options to the expression (expr) command.
      As a side effect of this change, the -d option now supports the same three-values enumeration that frame variables uses (run, don't run, none) instead of a boolean like it did previously
      
      These options do not apply to print, p or po because these are aliased to not take any options.
      In order to use them, use expression or expr.
      
      llvm-svn: 171993
      b576bba2
    • Michael J. Spencer's avatar
      Fix the elf/rodata.objtext test to work when first run. · cf2306fe
      Michael J. Spencer authored
      llvm-svn: 171992
      cf2306fe
    • Benjamin Kramer's avatar
      unwind.h: Add include guards and don't mess with visibility if HIDE_EXPORTS is specified. · 69665142
      Benjamin Kramer authored
      For GCC compatibility.
      
      llvm-svn: 171991
      69665142
    • Greg Clayton's avatar
      Expanded the flags that can be set for a command object in... · f9fc609f
      Greg Clayton authored
      Expanded the flags that can be set for a command object in lldb_private::CommandObject. This list of available flags are:
      
      enum
      {
          //----------------------------------------------------------------------
          // eFlagRequiresTarget
          //
          // Ensures a valid target is contained in m_exe_ctx prior to executing
          // the command. If a target doesn't exist or is invalid, the command
          // will fail and CommandObject::GetInvalidTargetDescription() will be
          // returned as the error. CommandObject subclasses can override the
          // virtual function for GetInvalidTargetDescription() to provide custom
          // strings when needed.
          //----------------------------------------------------------------------
          eFlagRequiresTarget         = (1u << 0),
          //----------------------------------------------------------------------
          // eFlagRequiresProcess
          //
          // Ensures a valid process is contained in m_exe_ctx prior to executing
          // the command. If a process doesn't exist or is invalid, the command
          // will fail and CommandObject::GetInvalidProcessDescription() will be
          // returned as the error. CommandObject subclasses can override the
          // virtual function for GetInvalidProcessDescription() to provide custom
          // strings when needed.
          //----------------------------------------------------------------------
          eFlagRequiresProcess        = (1u << 1),
          //----------------------------------------------------------------------
          // eFlagRequiresThread
          //
          // Ensures a valid thread is contained in m_exe_ctx prior to executing
          // the command. If a thread doesn't exist or is invalid, the command
          // will fail and CommandObject::GetInvalidThreadDescription() will be
          // returned as the error. CommandObject subclasses can override the
          // virtual function for GetInvalidThreadDescription() to provide custom
          // strings when needed.
          //----------------------------------------------------------------------
          eFlagRequiresThread         = (1u << 2),
          //----------------------------------------------------------------------
          // eFlagRequiresFrame
          //
          // Ensures a valid frame is contained in m_exe_ctx prior to executing
          // the command. If a frame doesn't exist or is invalid, the command
          // will fail and CommandObject::GetInvalidFrameDescription() will be
          // returned as the error. CommandObject subclasses can override the
          // virtual function for GetInvalidFrameDescription() to provide custom
          // strings when needed.
          //----------------------------------------------------------------------
          eFlagRequiresFrame          = (1u << 3),
          //----------------------------------------------------------------------
          // eFlagRequiresRegContext
          //
          // Ensures a valid register context (from the selected frame if there
          // is a frame in m_exe_ctx, or from the selected thread from m_exe_ctx)
          // is availble from m_exe_ctx prior to executing the command. If a
          // target doesn't exist or is invalid, the command will fail and
          // CommandObject::GetInvalidRegContextDescription() will be returned as
          // the error. CommandObject subclasses can override the virtual function
          // for GetInvalidRegContextDescription() to provide custom strings when
          // needed.
          //----------------------------------------------------------------------
          eFlagRequiresRegContext     = (1u << 4),
          //----------------------------------------------------------------------
          // eFlagTryTargetAPILock
          //
          // Attempts to acquire the target lock if a target is selected in the
          // command interpreter. If the command object fails to acquire the API
          // lock, the command will fail with an appropriate error message.
          //----------------------------------------------------------------------
          eFlagTryTargetAPILock       = (1u << 5),
          //----------------------------------------------------------------------
          // eFlagProcessMustBeLaunched
          //
          // Verifies that there is a launched process in m_exe_ctx, if there
          // isn't, the command will fail with an appropriate error message.
          //----------------------------------------------------------------------
          eFlagProcessMustBeLaunched  = (1u << 6),
          //----------------------------------------------------------------------
          // eFlagProcessMustBePaused
          //
          // Verifies that there is a paused process in m_exe_ctx, if there
          // isn't, the command will fail with an appropriate error message.
          //----------------------------------------------------------------------
          eFlagProcessMustBePaused    = (1u << 7)
      };
      
      Now each command object contains a "ExecutionContext m_exe_ctx;" member variable that gets initialized prior to running the command. The validity of the target objects in m_exe_ctx are checked to ensure that any target/process/thread/frame/reg context that are required are valid prior to executing the command. Each command object also contains a Mutex::Locker m_api_locker which gets used if eFlagTryTargetAPILock is set. This centralizes a lot of checking code that was previously and inconsistently implemented across many commands.
      
      llvm-svn: 171990
      f9fc609f
    • Argyrios Kyrtzidis's avatar
      Move the internal PrintStackTrace function that is used for... · eb9ae768
      Argyrios Kyrtzidis authored
      Move the internal PrintStackTrace function that is used for llvm::sys::PrintStackTraceOnErrorSignal(),
      into a new function llvm::sys::PrintStackTrace, so that it's available to clients for logging purposes.
      
      llvm-svn: 171989
      eb9ae768
    • Michael Gottesman's avatar
      [ObjCARC Debug Messages] This is a squashed commit of 3x debug message commits... · c189a392
      Michael Gottesman authored
      [ObjCARC Debug Messages] This is a squashed commit of 3x debug message commits ala echristo's suggestion.
      
      1. Added debug messages when in OptimizeIndividualCalls we move calls into predecessors and then erase the original call.
      2. Added debug messages when in the process of moving calls in ObjCARCOpt::MoveCalls we create new RR and delete old RR.
      3. Added a debug message when we visit a specific retain instruction in ObjCARCOpt::PerformCodePlacement.
      
      llvm-svn: 171988
      c189a392
    • Ted Kremenek's avatar
      Do not model loads from complex types, since we don't accurately model the... · 2f2edd3f
      Ted Kremenek authored
      Do not model loads from complex types, since we don't accurately model the imaginary and real parts yet.
      
      Fixes false positive reported in <rdar://problem/12964481>.
      
      llvm-svn: 171987
      2f2edd3f
    • Jakob Stoklund Olesen's avatar
      Don't print bundle flags. · 6922e9ca
      Jakob Stoklund Olesen authored
      The bundle flags are used by MachineBasicBlock::print(), they don't need
      to clutter up individual MachineInstrs.
      
      llvm-svn: 171986
      6922e9ca
    • Jakob Stoklund Olesen's avatar
      Don't require BUNDLE headers in MachineInstr::getBundleSize(). · 68d752bf
      Jakob Stoklund Olesen authored
      It is possible to build MI bundles that don't begin with a BUNDLE
      header. Add support for such bundles, counting all instructions inside
      the bundle.
      
      llvm-svn: 171985
      68d752bf
    • Benjamin Kramer's avatar
      LICM: Hoist insertvalue/extractvalue out of loops. · 130fcde3
      Benjamin Kramer authored
      Fixes PR14854.
      
      llvm-svn: 171984
      130fcde3
    • Sergei Larin's avatar
      · 3b46d7ea
      Sergei Larin authored
      Fix a typo in MachineInstr::unbundleFromSucc() method.
      
      llvm-svn: 171983
      3b46d7ea
    • David Blaikie's avatar
      Suppress GCC -Wreturn warning. · 5a6a020d
      David Blaikie authored
      Modified from a patch by David Greene.
      
      llvm-svn: 171982
      5a6a020d
    • Dmitry Vyukov's avatar
      tsan: detect races on fd passed to epoll_ctl · a626d032
      Dmitry Vyukov authored
      llvm-svn: 171981
      a626d032
    • Marshall Clow's avatar
      4476100a
    • Adhemerval Zanella's avatar
      PowerPC: EH adjustments · 1ae2248e
      Adhemerval Zanella authored
       
      This patch adjust the r171506 to make all DWARF enconding pc-relative
      for PPC64. It also adds the R_PPC64_REL32 relocation handling in MCJIT
      (since the eh_frame will not generate PIC-relative relocation) and also
      adds the emission of stubs created by the TTypeEncoding.
      
      llvm-svn: 171979
      1ae2248e
    • Rafael Espindola's avatar
      Handle static functions being redeclared in function scope. · 3bd836a5
      Rafael Espindola authored
      Fixes pr14861.
      
      llvm-svn: 171978
      3bd836a5
    • Shankar Easwaran's avatar
      add hexagon flags in ELF.h · 9f64604e
      Shankar Easwaran authored
      llvm-svn: 171977
      9f64604e
    • David Tweed's avatar
      For some LLVM-as-library uses it is convenient to create a · f42bdf7c
      David Tweed authored
      subclass of TargetMachine which "forwards" all operations to an
      existing internal TargetMachine member variable. In the usage context the
      specific-machine class derived from TargetMachine is not visible,
      only a reference to the generic base class TargetMachine. Although
      getSubtargetImpl() is public in specific-machine classes derived from
      TargetMachine, the TargetMachine class unfortunately has
      getSubtargetImpl() protected (and accessing non-const members makes
      abusing getSubtarget() unsuitable). Making it public in the base class
      allows this forwarding pattern.
      
      llvm-svn: 171976
      f42bdf7c
    • Dmitri Gribenko's avatar
      Configure: if we compile with clang, check that it is not broken · 06358bd0
      Dmitri Gribenko authored
      Some linux distibutions (for example, Mageia 2, Fedora 17) ship Clang that is
      essentially broken for the end user.  Clang can not find or compile libstdc++
      headers.
      
      The issue is that our configure prefers clang over gcc, thus selecting a broken
      Clang when a working GCC is available.
      
      Now we detect this issue by compiling a simple program.  If it does not
      compile, configure stops with an error suggesting the user to select a
      different compiler.
      
      llvm-svn: 171975
      06358bd0
    • Manuel Klimek's avatar
      Enables layouting unwrapped lines around preprocessor directives. · 52b15154
      Manuel Klimek authored
      Previously, we'd always start at indent level 0 after a preprocessor
      directive, now we layout the following snippet (column limit 69) as
      follows:
      
      functionCallTo(someOtherFunction(
          withSomeParameters, whichInSequence,
          areLongerThanALine(andAnotherCall,
        B
                             withMoreParamters,
                             whichStronglyInfluenceTheLayout),
          andMoreParameters),
                     trailing);
      
      Note that the different jumping indent is a different issue that will be
      addressed separately.
      
      This is the first step towards handling #ifdef->#else->#endif chains
      correctly.
      
      llvm-svn: 171974
      52b15154
    • Kostya Serebryany's avatar
      [asan] make the slow unwinder a bit more robust. The unittests pass with... · 864ef315
      Kostya Serebryany authored
      [asan] make the slow unwinder a bit more robust. The unittests pass with fast_unwind_on_fatal=0, but I still observe some differences between the two unwinders
      
      llvm-svn: 171973
      864ef315
    • Tim Northover's avatar
      Check whether MCInst operand isImm before calling getImm. · ab7689ec
      Tim Northover authored
      When processing possible aliases, TableGen assumes that if an operand *can* be
      an immediate, then it always *will* be. This is incorrect for the AArch64
      backend. This patch inserts a check in the generated code to make sure isImm is
      true first.
      
      llvm-svn: 171972
      ab7689ec
    • Tim Northover's avatar
      Refactor to expose RTLIB calls to targets. · f1450d8d
      Tim Northover authored
      fp128 is almost but not quite completely illegal as a type on AArch64. As a
      result it needs to have a register class (for argument passing mainly), but all
      operations need to be lowered to runtime calls. Currently there's no way for
      targets to do this (without duplicating code), as the relevant functions are
      hidden in SelectionDAG. This patch changes that.
      
      llvm-svn: 171971
      f1450d8d
    • Timur Iskhodzhanov's avatar
      [ASan/Win] Satisfy lint · 1d1f74cb
      Timur Iskhodzhanov authored
      llvm-svn: 171970
      1d1f74cb
Loading