Permalink
Browse files

Added the last of the Builder instructions!

  • Loading branch information...
1 parent 939381c commit e76a556eec557ff1da29be67b546b8fd64c4d9cd Scott Olson committed Apr 4, 2010
Showing with 15 additions and 0 deletions.
  1. +15 −0 llvm/Core.ooc
View
@@ -243,6 +243,21 @@ Builder: cover from LLVMBuilderRef {
// Comparison instructions
icmp: extern(LLVMBuildICmp) func (IntPredicate, lhs, rhs: Value, name: String) -> Value
fcmp: extern(LLVMBuildICmp) func (RealPredicate, lhs, rhs: Value, name: String) -> Value
+
+ // Miscellaneous instructions
+ phi: extern(LLVMBuildPhi) func (Type, name: String) -> Value
+ call: extern(LLVMBuildCall) func (fn: Value, args: Value*, numArgs: UInt, name: String) -> Value
+ select: extern(LLVMBuildSelect) func (ifVal, thenVal, elseVal: Value, name: String) -> Value
+ va_arg: extern(LLVMBuildVAArg) func (list: Value, Type, name: String) -> Value
+ extractElement: extern(LLVMBuildExtractElement) func (vector, index: Value, name: String) -> Value
+ insertElement: extern(LLVMBuildInsertElement) func (vector, val, index: Value, name: String) -> Value
+ shuffleVector: extern(LLVMBuildShuffleVector) func (v1, v2, mask: Value, name: String) -> Value
+ extractValue: extern(LLVMBuildExtractValue) func (agg: Value, index: UInt, name: String) -> Value
+ insertValue: extern(LLVMBuildInsertValue) func (agg, val: Value, index: UInt, name: String) -> Value
+
+ isNull: extern(LLVMBuildIsNull) func (Value, name: String) -> Value
+ isNotNull: extern(LLVMBuildIsNotNull) func (Value, name: String) -> Value
+ ptrDiff: extern(LLVMBuildPtrDiff) func (lhs, rhs: Value, name: String) -> Value
}

0 comments on commit e76a556

Please sign in to comment.