diff options
author | Dale Johannesen <dalej@apple.com> | 2007-08-03 01:03:46 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-08-03 01:03:46 +0000 |
commit | ff4c3be741ec2dc60500bdadaa150b5882b406d3 (patch) | |
tree | 2ba2ee99cc8696b179bfb6d1f99f25b671131f11 /llvm/lib/Bitcode | |
parent | 99fbf13dc32398ec0e46f71b2b0f08c2daeb2440 (diff) | |
download | bcm5719-llvm-ff4c3be741ec2dc60500bdadaa150b5882b406d3.tar.gz bcm5719-llvm-ff4c3be741ec2dc60500bdadaa150b5882b406d3.zip |
Long double, part 1 of N. Support in IR.
llvm-svn: 40774
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 9 | ||||
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index ee6ed0ab7ec..9c1f49e865d 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -303,6 +303,15 @@ bool BitcodeReader::ParseTypeTable() { case bitc::TYPE_CODE_DOUBLE: // DOUBLE ResultTy = Type::DoubleTy; break; + case bitc::TYPE_CODE_X86_FP80: // X86_FP80 + ResultTy = Type::X86_FP80Ty; + break; + case bitc::TYPE_CODE_FP128: // FP128 + ResultTy = Type::FP128Ty; + break; + case bitc::TYPE_CODE_PPC_FP128: // PPC_FP128 + ResultTy = Type::PPC_FP128Ty; + break; case bitc::TYPE_CODE_LABEL: // LABEL ResultTy = Type::LabelTy; break; diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 086dca8640e..c5be80fc508 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -187,6 +187,9 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) { case Type::VoidTyID: Code = bitc::TYPE_CODE_VOID; break; case Type::FloatTyID: Code = bitc::TYPE_CODE_FLOAT; break; case Type::DoubleTyID: Code = bitc::TYPE_CODE_DOUBLE; break; + case Type::X86_FP80TyID: Code = bitc::TYPE_CODE_X86_FP80; break; + case Type::FP128TyID: Code = bitc::TYPE_CODE_FP128; break; + case Type::PPC_FP128TyID: Code = bitc::TYPE_CODE_PPC_FP128; break; case Type::LabelTyID: Code = bitc::TYPE_CODE_LABEL; break; case Type::OpaqueTyID: Code = bitc::TYPE_CODE_OPAQUE; break; case Type::IntegerTyID: |