diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-11-21 09:09:41 +0000 | 
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-11-21 09:09:41 +0000 | 
| commit | 4bce2bff8849e2ec61bb080bd224f7c465a39d42 (patch) | |
| tree | 8c33a865157ac8e77897b0c4d332418a06fd635b /llvm/lib/CodeGen | |
| parent | 371298488b8ac5da2239b5131e9f5f0993c0bce7 (diff) | |
| download | bcm5719-llvm-4bce2bff8849e2ec61bb080bd224f7c465a39d42.tar.gz bcm5719-llvm-4bce2bff8849e2ec61bb080bd224f7c465a39d42.zip | |
Revert r59802. It was breaking the build of llvm-gcc:
g++ -m32 -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H -Wno-unused -DTARGET_NAME=\"i386-apple-darwin9.5.0\" -I. -I. -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/. -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include  -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include -DENABLE_LLVM -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/../llvm.src/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -I. -I. -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/. -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include  -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include ../../llvm-gcc.src/gcc/llvm-types.cpp -o llvm-types.o
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemCpy(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1496: error: 'memcpy_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1496: error: 'memcpy_i64' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemMove(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1512: error: 'memmove_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1512: error: 'memmove_i64' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp: In member function 'void TreeToLLVM::EmitMemSet(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int)':
../../llvm-gcc.src/gcc/llvm-convert.cpp:1528: error: 'memset_i32' is not a member of 'llvm::Intrinsic'
../../llvm-gcc.src/gcc/llvm-convert.cpp:1528: error: 'memset_i64' is not a member of 'llvm::Intrinsic'
make[3]: *** [llvm-convert.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gpl.pod gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
llvm-svn: 59809
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 18 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 9 | 
2 files changed, 18 insertions, 9 deletions
| diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 960d660cb94..7c549bc9a18 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -98,19 +98,22 @@ void IntrinsicLowering::AddPrototypes(Module &M) {          EnsureFunctionExists(M, "abort", I->arg_end(), I->arg_end(),                               Type::VoidTy);          break; -      case Intrinsic::memcpy: +      case Intrinsic::memcpy_i32: +      case Intrinsic::memcpy_i64:          M.getOrInsertFunction("memcpy", PointerType::getUnqual(Type::Int8Ty),                                PointerType::getUnqual(Type::Int8Ty),                                 PointerType::getUnqual(Type::Int8Ty),                                 TD.getIntPtrType(), (Type *)0);          break; -      case Intrinsic::memmove: +      case Intrinsic::memmove_i32: +      case Intrinsic::memmove_i64:          M.getOrInsertFunction("memmove", PointerType::getUnqual(Type::Int8Ty),                                PointerType::getUnqual(Type::Int8Ty),                                 PointerType::getUnqual(Type::Int8Ty),                                 TD.getIntPtrType(), (Type *)0);          break; -      case Intrinsic::memset: +      case Intrinsic::memset_i32: +      case Intrinsic::memset_i64:          M.getOrInsertFunction("memset", PointerType::getUnqual(Type::Int8Ty),                                PointerType::getUnqual(Type::Int8Ty),                                 Type::Int32Ty,  @@ -781,7 +784,8 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {    case Intrinsic::var_annotation:      break;   // Strip out annotate intrinsic -  case Intrinsic::memcpy: { +  case Intrinsic::memcpy_i32: +  case Intrinsic::memcpy_i64: {      static Constant *MemcpyFCache = 0;      Value *Size = CI->getOperand(3);      const Type *IntPtr = TD.getIntPtrType(); @@ -799,7 +803,8 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {                      MemcpyFCache);      break;    } -  case Intrinsic::memmove: { +  case Intrinsic::memmove_i32:  +  case Intrinsic::memmove_i64: {      static Constant *MemmoveFCache = 0;      Value *Size = CI->getOperand(3);      const Type *IntPtr = TD.getIntPtrType(); @@ -817,7 +822,8 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {                      MemmoveFCache);      break;    } -  case Intrinsic::memset: { +  case Intrinsic::memset_i32: +  case Intrinsic::memset_i64: {      static Constant *MemsetFCache = 0;      Value *Size = CI->getOperand(3);      const Type *IntPtr = TD.getIntPtrType(); diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 94170420d0f..64bcd314c92 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -3663,7 +3663,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {    case Intrinsic::longjmp:      return "_longjmp"+!TLI.usesUnderscoreLongJmp();      break; -  case Intrinsic::memcpy: { +  case Intrinsic::memcpy_i32: +  case Intrinsic::memcpy_i64: {      SDValue Op1 = getValue(I.getOperand(1));      SDValue Op2 = getValue(I.getOperand(2));      SDValue Op3 = getValue(I.getOperand(3)); @@ -3672,7 +3673,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {                                I.getOperand(1), 0, I.getOperand(2), 0));      return 0;    } -  case Intrinsic::memset: { +  case Intrinsic::memset_i32: +  case Intrinsic::memset_i64: {      SDValue Op1 = getValue(I.getOperand(1));      SDValue Op2 = getValue(I.getOperand(2));      SDValue Op3 = getValue(I.getOperand(3)); @@ -3681,7 +3683,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {                                I.getOperand(1), 0));      return 0;    } -  case Intrinsic::memmove: { +  case Intrinsic::memmove_i32: +  case Intrinsic::memmove_i64: {      SDValue Op1 = getValue(I.getOperand(1));      SDValue Op2 = getValue(I.getOperand(2));      SDValue Op3 = getValue(I.getOperand(3)); | 

