11import CLLVM
22
3+ /*
34/// Functions in this group correspond to APIs on `ConstantExpressions` .
45public enum ConstantExpressions {
56 public static func getConstOpcode(constantVal: ValueRef) -> Opcode {
@@ -191,10 +192,10 @@ public enum ConstantExpressions {
191192 return Value(llvm: valueRef)
192193 }
193194
194- public func constFPToSI( _ constantVal: ValueRef , _ toType: TypeRef ) -> Value {
195- let valueRef = LLVMConstFPToSI ( constantVal. valueRef, toType. typeRef) !
196- return Value ( llvm: valueRef)
197- }
195+ // public func constFPToSI(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
196+ // let valueRef = LLVMConstFPToSI(constantVal.valueRef, toType.typeRef)!
197+ // return Value(llvm: valueRef)
198+ // }
198199
199200 public func constPtrToInt(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
200201 let valueRef = LLVMConstPtrToInt(constantVal.valueRef, toType.typeRef)!
@@ -216,10 +217,10 @@ public enum ConstantExpressions {
216217 return Value(llvm: valueRef)
217218 }
218219
219- public func constZExtOrBitCast( _ constantVal: ValueRef , _ toType: TypeRef ) -> Value {
220- let valueRef = LLVMConstZExtOrBitCast ( constantVal. valueRef, toType. typeRef) !
221- return Value ( llvm: valueRef)
222- }
220+ // public func constZExtOrBitCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
221+ // let valueRef = LLVMConstZExtOrBitCast(constantVal.valueRef, toType.typeRef)!
222+ // return Value(llvm: valueRef)
223+ // }
223224
224225 public func constSExtOrBitCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
225226 let valueRef = LLVMConstSExtOrBitCast(constantVal.valueRef, toType.typeRef)!
@@ -236,15 +237,15 @@ public enum ConstantExpressions {
236237 return Value(llvm: valueRef)
237238 }
238239
239- public func constIntCast( _ constantVal: ValueRef , _ toType: TypeRef , _ isSigned: Bool ) -> Value {
240- let valueRef = LLVMConstIntCast ( constantVal. valueRef, toType. typeRef, isSigned. llvm) !
241- return Value ( llvm: valueRef)
242- }
240+ // public func constIntCast(_ constantVal: ValueRef, _ toType: TypeRef, _ isSigned: Bool) -> Value {
241+ // let valueRef = LLVMConstIntCast(constantVal.valueRef, toType.typeRef, isSigned.llvm)!
242+ // return Value(llvm: valueRef)
243+ // }
243244
244- public func constFPCast( _ constantVal: ValueRef , _ toType: TypeRef ) -> Value {
245- let valueRef = LLVMConstFPCast ( constantVal. valueRef, toType. typeRef) !
246- return Value ( llvm: valueRef)
247- }
245+ // public func constFPCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
246+ // let valueRef = LLVMConstFPCast(constantVal.valueRef, toType.typeRef)!
247+ // return Value(llvm: valueRef)
248+ // }
248249
249250 public func constExtractElement(_ vectorConstant: ValueRef, _ indexConstant: ValueRef) -> Value {
250251 let valueRef = LLVMConstExtractElement(vectorConstant.valueRef, indexConstant.valueRef)!
@@ -276,3 +277,5 @@ public enum ConstantExpressions {
276277 return Value(llvm: valueRef)
277278 }
278279}
280+ */
281+
0 commit comments