@@ -923,8 +923,6 @@ func ConstNUWSub(lhs, rhs Value) (v Value) { v.C = C.LLVMConstNUWSub(lhs.C, rhs.
923
923
func ConstMul (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstMul (lhs .C , rhs .C ); return }
924
924
func ConstNSWMul (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstNSWMul (lhs .C , rhs .C ); return }
925
925
func ConstNUWMul (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstNUWMul (lhs .C , rhs .C ); return }
926
- func ConstAnd (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstAnd (lhs .C , rhs .C ); return }
927
- func ConstOr (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstOr (lhs .C , rhs .C ); return }
928
926
func ConstXor (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstXor (lhs .C , rhs .C ); return }
929
927
930
928
func ConstICmp (pred IntPredicate , lhs , rhs Value ) (v Value ) {
@@ -937,8 +935,6 @@ func ConstFCmp(pred FloatPredicate, lhs, rhs Value) (v Value) {
937
935
}
938
936
939
937
func ConstShl (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstShl (lhs .C , rhs .C ); return }
940
- func ConstLShr (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstLShr (lhs .C , rhs .C ); return }
941
- func ConstAShr (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstAShr (lhs .C , rhs .C ); return }
942
938
943
939
func ConstGEP (t Type , v Value , indices []Value ) (rv Value ) {
944
940
ptr , nvals := llvmValueRefs (indices )
@@ -951,35 +947,14 @@ func ConstInBoundsGEP(t Type, v Value, indices []Value) (rv Value) {
951
947
return
952
948
}
953
949
func ConstTrunc (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstTrunc (v .C , t .C ); return }
954
- func ConstSExt (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstSExt (v .C , t .C ); return }
955
- func ConstZExt (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstZExt (v .C , t .C ); return }
956
- func ConstFPTrunc (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstFPTrunc (v .C , t .C ); return }
957
- func ConstFPExt (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstFPExt (v .C , t .C ); return }
958
- func ConstUIToFP (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstUIToFP (v .C , t .C ); return }
959
- func ConstSIToFP (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstSIToFP (v .C , t .C ); return }
960
- func ConstFPToUI (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstFPToUI (v .C , t .C ); return }
961
- func ConstFPToSI (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstFPToSI (v .C , t .C ); return }
962
950
func ConstPtrToInt (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstPtrToInt (v .C , t .C ); return }
963
951
func ConstIntToPtr (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstIntToPtr (v .C , t .C ); return }
964
952
func ConstBitCast (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstBitCast (v .C , t .C ); return }
965
- func ConstZExtOrBitCast (v Value , t Type ) (rv Value ) {
966
- rv .C = C .LLVMConstZExtOrBitCast (v .C , t .C )
967
- return
968
- }
969
- func ConstSExtOrBitCast (v Value , t Type ) (rv Value ) {
970
- rv .C = C .LLVMConstSExtOrBitCast (v .C , t .C )
971
- return
972
- }
973
953
func ConstTruncOrBitCast (v Value , t Type ) (rv Value ) {
974
954
rv .C = C .LLVMConstTruncOrBitCast (v .C , t .C )
975
955
return
976
956
}
977
957
func ConstPointerCast (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstPointerCast (v .C , t .C ); return }
978
- func ConstIntCast (v Value , t Type , signed bool ) (rv Value ) {
979
- rv .C = C .LLVMConstIntCast (v .C , t .C , boolToLLVMBool (signed ))
980
- return
981
- }
982
- func ConstFPCast (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstFPCast (v .C , t .C ); return }
983
958
func ConstExtractElement (vec , i Value ) (rv Value ) {
984
959
rv .C = C .LLVMConstExtractElement (vec .C , i .C )
985
960
return
0 commit comments