Exemple #1
0
 public static ConstantInt Get(IntegerType type, string str, byte radix) => LLVM.ConstIntOfString(type.Unwrap(), str, radix).WrapAs <ConstantInt>();
Exemple #2
0
 public static ConstantInt Get(IntegerType type, ulong value, bool signExtend) => LLVM.ConstInt(type.Unwrap(), value, signExtend).WrapAs <ConstantInt>();
Exemple #3
0
 public static ConstantInt Get(IntegerType type, ulong[] words) => LLVM.ConstIntOfArbitraryPrecision(type.Unwrap(), (uint)words.Length, out words[0]).WrapAs <ConstantInt>();
Exemple #4
0
 public static GenericValue Create(IntegerType t, ulong n, bool isSigned) => LLVM.CreateGenericValueOfInt(t.Unwrap(), n, isSigned).Wrap().MakeHandleOwner <GenericValue, LLVMGenericValueRef>();