[llvm-commits] [llvm] r51149 - /llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
Gabor Greif
ggreif at gmail.com
Thu May 15 08:10:49 PDT 2008
Author: ggreif
Date: Thu May 15 10:10:49 2008
New Revision: 51149
URL: http://llvm.org/viewvc/llvm-project?rev=51149&view=rev
Log:
add createIntegerCast too
Modified:
llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h?rev=51149&r1=51148&r2=51149&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h Thu May 15 10:10:49 2008
@@ -556,10 +556,17 @@
DEFINE_CASTINST_DEPRECATED(ZExtOrBit)
DEFINE_CASTINST_DEPRECATED(SExtOrBit)
DEFINE_CASTINST_DEPRECATED(Pointer)
- // Not yet: DEFINE_CASTINST_DEPRECATED(Integer)
DEFINE_CASTINST_DEPRECATED(FP)
DEFINE_CASTINST_DEPRECATED(TruncOrBit)
#undef DEFINE_CASTINST_DEPRECATED
+ static CastInst *createIntegerCast(Value *S, const Type *Ty, bool isSigned,
+ const std::string &Name = "", Instruction *InsertBefore = 0) {
+ return CreateIntegerCast(S, Ty, isSigned, Name, InsertBefore);
+ }
+ static CastInst *createIntegerCast(Value *S, const Type *Ty, bool isSigned,
+ const std::string &Name, BasicBlock *InsertAtEnd) {
+ return CreateIntegerCast(S, Ty, isSigned, Name, InsertAtEnd);
+ }
};
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list