@@ -923,8 +923,6 @@ func ConstNUWSub(lhs, rhs Value) (v Value) { v.C = C.LLVMConstNUWSub(lhs.C, rhs.
923923func ConstMul (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstMul (lhs .C , rhs .C ); return }
924924func ConstNSWMul (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstNSWMul (lhs .C , rhs .C ); return }
925925func 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 }
928926func ConstXor (lhs , rhs Value ) (v Value ) { v .C = C .LLVMConstXor (lhs .C , rhs .C ); return }
929927
930928func ConstICmp (pred IntPredicate , lhs , rhs Value ) (v Value ) {
@@ -937,8 +935,6 @@ func ConstFCmp(pred FloatPredicate, lhs, rhs Value) (v Value) {
937935}
938936
939937func 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 }
942938
943939func ConstGEP (t Type , v Value , indices []Value ) (rv Value ) {
944940 ptr , nvals := llvmValueRefs (indices )
@@ -951,35 +947,14 @@ func ConstInBoundsGEP(t Type, v Value, indices []Value) (rv Value) {
951947 return
952948}
953949func 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 }
962950func ConstPtrToInt (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstPtrToInt (v .C , t .C ); return }
963951func ConstIntToPtr (v Value , t Type ) (rv Value ) { rv .C = C .LLVMConstIntToPtr (v .C , t .C ); return }
964952func 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- }
973953func ConstTruncOrBitCast (v Value , t Type ) (rv Value ) {
974954 rv .C = C .LLVMConstTruncOrBitCast (v .C , t .C )
975955 return
976956}
977957func 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 }
983958func ConstExtractElement (vec , i Value ) (rv Value ) {
984959 rv .C = C .LLVMConstExtractElement (vec .C , i .C )
985960 return
0 commit comments