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