Skip to content
  1. Feb 13, 2009
    • Mike Stump's avatar
      Move BlockDescriptorType into CGM. · 650c932d
      Mike Stump authored
      llvm-svn: 64451
      650c932d
    • Anders Carlsson's avatar
      Add CodeGen support for the nodebug attribute. · 63784f4e
      Anders Carlsson authored
      llvm-svn: 64445
      63784f4e
    • Eli Friedman's avatar
      Initial implementation of arbitrary fixed-width integer types. · 1efaaeaa
      Eli Friedman authored
      Currently only used for 128-bit integers.
      
      Note that we can't use the fixed-width integer types for other integer 
      modes without other changes because glibc headers redefines (u)int*_t 
      and friends using the mode attribute.  For example, this means that uint64_t
      has to be compatible with unsigned __attribute((mode(DI))), and 
      uint64_t is currently defined to long long.  And I have a feeling we'll 
      run into issues if we try to define uint64_t as something which isn't 
      either long or long long.
      
      This doesn't get the alignment right in most cases, including 
      the 128-bit integer case; I'll file a PR shortly.  The gist of the issue 
      is that the targets don't really expose the information necessary to 
      figure out the alignment outside of the target description, so there's a 
      non-trivial amount of work involved in getting it working right.  That 
      said, the alignment used is conservative, so the only issue with the 
      current implementation is ABI compatibility.
      
      This makes it trivial to add some sort of "bitwidth" attribute to make 
      arbitrary-width integers; I'll do that in a followup.
      
      We could also use this for stuff like the following for compatibility 
      with gcc, but I have a feeling it would be a better idea for clang to be 
      consistent between C and C++ modes rather than follow gcc's example for 
      C mode.
      struct {unsigned long long x : 33;} x;
      unsigned long long a(void) {return x.x+1;}
      
      llvm-svn: 64434
      1efaaeaa
    • Douglas Gregor's avatar
      Add mangling for variadic functions and conversion functions · adb02014
      Douglas Gregor authored
      llvm-svn: 64425
      adb02014
    • Douglas Gregor's avatar
      Add basic support for C++ name mangling according to the Itanium C++ · 5fec5b04
      Douglas Gregor authored
      ABI to the CodeGen library. Since C++ code-generation is so
      incomplete, we can't exercise much of this mangling code. However, a
      few smoke tests show that it's doing the same thing as GCC. When C++
      codegen matures, we'll extend the ABI tester to verify name-mangling
      as well, and complete the implementation here.
      
      At this point, the major client of name mangling is in the uses of the
      new "overloadable" attribute in C, which allows overloading. Any
      "overloadable" function in C (or in an extern "C" block in C++) will
      be mangled the same way that the corresponding C++ function would be
      mangled.
      
      llvm-svn: 64413
      5fec5b04
    • Daniel Dunbar's avatar
      Honor attribute section on static block var decls. · 53bf7412
      Daniel Dunbar authored
      llvm-svn: 64411
      53bf7412
  2. Feb 12, 2009
  3. Feb 11, 2009
  4. Feb 10, 2009
  5. Feb 09, 2009
Loading