Example #1
0
 public static ConstantExpr GetNull(Type type) => LLVM.ConstNull(type.MustHaveConstants().Unwrap()).WrapAs <ConstantExpr>();
Example #2
0
 public static ConstantExpr GetFPCast(Constant constantVal, Type toType) => LLVM.ConstFPCast(constantVal.Unwrap(), toType.MustHaveConstants().Unwrap()).WrapAs <ConstantExpr>();
Example #3
0
 public static ConstantExpr GetInlineAsm(Type ty, string asmString, string constraints, bool hasSideEffects, bool isAlignStack) => LLVM.ConstInlineAsm(ty.MustHaveConstants().Unwrap(), asmString, constraints, hasSideEffects, isAlignStack).WrapAs <ConstantExpr>();
Example #4
0
 public static ConstantExpr GetIntCast(Constant constantVal, Type toType, bool isSigned) => LLVM.ConstIntCast(constantVal.Unwrap(), toType.MustHaveConstants().Unwrap(), isSigned).WrapAs <ConstantExpr>();