Skip to content
  1. Jul 18, 2004
    • Chris Lattner's avatar
      Fix a rather serious bug in previous checkin · 2da5eee3
      Chris Lattner authored
      llvm-svn: 14957
      2da5eee3
    • Reid Spencer's avatar
      bug 122: · cb3fb5d4
      Reid Spencer authored
      - Replace ConstantPointerRef usage with GlobalValue usage
      
      llvm-svn: 14953
      cb3fb5d4
    • Reid Spencer's avatar
      bug 122: · 87436879
      Reid Spencer authored
      - Replace ConstantPointerRef usage with GlobalValue usage
      - Minimize redundant isa<GlobalValue> usage
      - Correct isa<Constant> for GlobalValue subclass
      
      llvm-svn: 14950
      87436879
    • Reid Spencer's avatar
      bug 122: · ef784f01
      Reid Spencer authored
      - Minimize redundant isa<GlobalValue> usage
      
      llvm-svn: 14948
      ef784f01
    • Reid Spencer's avatar
      bug 122: · c5afc951
      Reid Spencer authored
      - Replace ConstantPointerRef usage with GlobalValue usage
      - Correct isa<Constant> for GlobalValue subclass
      
      llvm-svn: 14947
      c5afc951
    • Reid Spencer's avatar
      bug 122: · 9e855c68
      Reid Spencer authored
      - Minimize redundant isa<GlobalValue> usage
      - Correct isa<Constant> for GlobalValue subclass
      
      llvm-svn: 14946
      9e855c68
    • Reid Spencer's avatar
      bug 122: · 5f681598
      Reid Spencer authored
      - Replace ConstantPointerRef usage with GlobalValue usage
      - Rename methods to get ride of ConstantPointerRef usage
      
      llvm-svn: 14945
      5f681598
    • Reid Spencer's avatar
      bug 122: · 83cae64f
      Reid Spencer authored
      - Excise dead CPR procesing.
      
      llvm-svn: 14944
      83cae64f
    • Reid Spencer's avatar
      bug 122: · e4de2287
      Reid Spencer authored
      - Replace ConstantPointerRef usage with GlobalValue usage
      - Correct test ordering for GlobalValue subclass
      
      llvm-svn: 14943
      e4de2287
  2. Jul 16, 2004
  3. Jul 15, 2004
  4. Jul 13, 2004
    • Chris Lattner's avatar
      Factor some code to handle "load (constantexpr cast foo)" just like · 35e24774
      Chris Lattner authored
      "load (cast foo)".  This allows us to compile C++ code like this:
      
      class Bclass {
        public: virtual int operator()() { return 666; }
      };
      
      class Dclass: public Bclass {
        public: virtual int operator()() { return 667; }
      } ;
      
      int main(int argc, char** argv) {
        Dclass x;
        return x();
      }
      
      Into this:
      
      int %main(int %argc, sbyte** %argv) {
      entry:
              call void %__main( )
              ret int 667
      }
      
      Instead of this:
      
      int %main(int %argc, sbyte** %argv) {
      entry:
              %x = alloca "struct.std::bad_typeid"            ; <"struct.std::bad_typeid"*> [#uses=3]
              call void %__main( )
              %tmp.1.i.i = getelementptr "struct.std::bad_typeid"* %x, uint 0, uint 0, uint 0         ; <int (...)***> [#uses=1]
              store int (...)** getelementptr ([3 x int (...)*]*  %vtable for Bclass, int 0, long 2), int (...)*** %tmp.1.i.i
              %tmp.3.i = getelementptr "struct.std::bad_typeid"* %x, int 0, uint 0, uint 0            ; <int (...)***> [#uses=1]
              store int (...)** getelementptr ([3 x int (...)*]*  %vtable for Dclass, int 0, long 2), int (...)*** %tmp.3.i
              %tmp.5 = load int ("struct.std::bad_typeid"*)** cast (int (...)** getelementptr ([3 x int (...)*]*  %vtable for Dclass, int 0, long 2) to int
      ("struct.std::bad_typeid"*)**)          ; <int ("struct.std::bad_typeid"*)*> [#uses=1]
              %tmp.6 = call int %tmp.5( "struct.std::bad_typeid"* %x )                ; <int> [#uses=1]
      	ret int %tmp.6
              ret int 0
      }
      
      In order words, we now resolve the virtual function call.
      
      llvm-svn: 14783
      35e24774
  5. Jul 06, 2004
  6. Jul 04, 2004
  7. Jul 03, 2004
  8. Jul 02, 2004
  9. Jul 01, 2004
  10. Jun 29, 2004
  11. Jun 28, 2004
  12. Jun 25, 2004
  13. Jun 24, 2004
  14. Jun 23, 2004
  15. Jun 22, 2004
  16. Jun 21, 2004
Loading