mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 05:13:14 +01:00
Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array. Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 . Cleaned up some type code. Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant. Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
29 lines
692 B
C
29 lines
692 B
C
#ifndef GEN_LLVM_H
|
|
#define GEN_LLVM_H
|
|
|
|
#include "llvm/Type.h"
|
|
#include "llvm/DerivedTypes.h"
|
|
#include "llvm/Constants.h"
|
|
#include "llvm/IntrinsicInst.h"
|
|
#include "llvm/CallingConv.h"
|
|
#include "llvm/GlobalVariable.h"
|
|
#include "llvm/Function.h"
|
|
#include "llvm/Module.h"
|
|
#include "llvm/Value.h"
|
|
|
|
#include "llvm/Target/TargetData.h"
|
|
|
|
#include "llvm/Support/IRBuilder.h"
|
|
using llvm::IRBuilder;
|
|
|
|
#define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X ))
|
|
|
|
// shortcuts for the _very_ common llvm types
|
|
typedef llvm::Type LLType;
|
|
typedef llvm::Value LLValue;
|
|
typedef llvm::Constant LLConstant;
|
|
|
|
#define LLSmallVector llvm::SmallVector
|
|
|
|
#endif // GEN_LLVM_H
|