Mercurial > projects > ldc
comparison gen/llvm.h @ 445:cc40db549aea
Changed the handling of variadic intrinsics a bit.
Removed the -fp80 option and made real be 80bit floats on X86, this is what the D spec really says it should be and fixes a bunch of issues.
Changed the handling of parameter attributes to a bit more generalized approach.
Added sext/zext attributes for byte/short/ubyte/ushort parameters, fixes #60 .
Parameter attribs now properly set for intrinsic calls if necessary.
Made the tango.math.Math patch less intrusive.
Fixed/added some mini tests.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 01 Aug 2008 17:59:58 +0200 |
parents | d59c363fccad |
children | 607b6b5819a7 |
comparison
equal
deleted
inserted
replaced
444:f2b5f86348ef | 445:cc40db549aea |
---|---|
8 #include "llvm/CallingConv.h" | 8 #include "llvm/CallingConv.h" |
9 #include "llvm/GlobalVariable.h" | 9 #include "llvm/GlobalVariable.h" |
10 #include "llvm/Function.h" | 10 #include "llvm/Function.h" |
11 #include "llvm/Module.h" | 11 #include "llvm/Module.h" |
12 #include "llvm/Value.h" | 12 #include "llvm/Value.h" |
13 #include "llvm/ParameterAttributes.h" | |
13 | 14 |
14 #include "llvm/Target/TargetData.h" | 15 #include "llvm/Target/TargetData.h" |
15 | 16 |
16 #include "llvm/Support/IRBuilder.h" | 17 #include "llvm/Support/IRBuilder.h" |
17 using llvm::IRBuilder; | 18 using llvm::IRBuilder; |
35 | 36 |
36 #define LLConstant llvm::Constant | 37 #define LLConstant llvm::Constant |
37 #define LLConstantStruct llvm::ConstantStruct | 38 #define LLConstantStruct llvm::ConstantStruct |
38 #define LLConstantArray llvm::ConstantArray | 39 #define LLConstantArray llvm::ConstantArray |
39 #define LLConstantInt llvm::ConstantInt | 40 #define LLConstantInt llvm::ConstantInt |
41 #define LLConstantFP llvm::ConstantFP | |
40 | 42 |
41 #define LLPATypeHolder llvm::PATypeHolder | 43 #define LLPATypeHolder llvm::PATypeHolder |
42 | 44 |
43 #define LLSmallVector llvm::SmallVector | 45 #define LLSmallVector llvm::SmallVector |
44 | 46 |
47 #define APFloat llvm::APFloat | |
48 | |
45 #endif // GEN_LLVM_H | 49 #endif // GEN_LLVM_H |