Skip to content
  1. Aug 07, 2013
  2. Aug 06, 2013
    • Shuxin Yang's avatar
    • Reid Kleckner's avatar
      Use gnu style builtins in MathExtras.h with clang on Windows · 1c767e60
      Reid Kleckner authored
      Clang does not provide BitScan* intrinsic implementations yet.
      
      llvm-svn: 187813
      1c767e60
    • Manman Ren's avatar
      Debug Info Finder|Verifier: handle DbgLoc attached to instructions. · b75e0c92
      Manman Ren authored
      Also remove checking of llvm.dbg.sp since it is not used in generating dwarf.
      
      Current state of Finder:
      DebugInfoFinder tries to list all debug info MDNodes used in a module. To
      list debug info MDNodes used by an instruction, DebugInfoFinder provides
      processDeclare, processValue and processLocation to handle DbgDeclareInst,
      DbgValueInst and DbgLoc attached to instructions. processModule will go
      through all DICompileUnits in llvm.dbg.cu and list debug info MDNodes
      used by the CUs.
      
      TODO:
      1> Finder has a list of CUs, SPs, Types, Scopes and global variables. We
      need to add a list of variables that are used by DbgDeclareInst and
      DbgValueInst.
      2> MDString fields should be null or isa<MDString> and MDNode fields should be
      null or isa<MDNode>. We currently use empty string or int 0 to represent null.
      3> Go though Verify functions and make sure that they check field types.
      4> Clean up existing testing cases to remove llvm.dbg.sp and make sure each
      testing case has a llvm.dbg.cu.
      
      Re-apply r187609 with fix to pass ocaml binding. vmcore.ml generates a debug
      location with scope being metadata !{}, in verifier we treat this as a null
      scope.
      
      llvm-svn: 187812
      b75e0c92
Loading