Ejemplo n.º 1
0
 public static ConstantExpr GetNull(Type type) => LLVM.ConstNull(type.MustHaveConstants().Unwrap()).WrapAs <ConstantExpr>();
Ejemplo n.º 2
0
 public static ConstantExpr GetFPCast(Constant constantVal, Type toType) => LLVM.ConstFPCast(constantVal.Unwrap(), toType.MustHaveConstants().Unwrap()).WrapAs <ConstantExpr>();
Ejemplo n.º 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>();
Ejemplo n.º 4
0
 public static ConstantExpr GetIntCast(Constant constantVal, Type toType, bool isSigned) => LLVM.ConstIntCast(constantVal.Unwrap(), toType.MustHaveConstants().Unwrap(), isSigned).WrapAs <ConstantExpr>();