本文整理汇总了C#中LLVMSharp.LLVMTypeRef类的典型用法代码示例。如果您正苦于以下问题:C# LLVMTypeRef类的具体用法?C# LLVMTypeRef怎么用?C# LLVMTypeRef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LLVMTypeRef类属于LLVMSharp命名空间,在下文中一共展示了LLVMTypeRef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConstArray
public static LLVMValueRef ConstArray(LLVMTypeRef ElementTy, LLVMValueRef[] ConstantVals)
{
if (ConstantVals.Length == 0)
{
LLVMValueRef dummy;
return ConstArray(ElementTy, out dummy, 0);
}
return ConstArray(ElementTy, out ConstantVals[0], (uint)ConstantVals.Length);
}
示例2: GetStructElementTypes
public static extern void GetStructElementTypes(LLVMTypeRef @StructTy, out LLVMTypeRef @Dest);
示例3: StructSetBody
public static void StructSetBody(LLVMTypeRef StructTy, LLVMTypeRef[] ElementTypes, bool Packed)
{
if (ElementTypes.Length == 0)
{
LLVMTypeRef dummy;
StructSetBody(StructTy, out dummy, 0, Packed);
return;
}
StructSetBody(StructTy, out ElementTypes[0], (uint)ElementTypes.Length, Packed);
}
示例4: ConstNamedStruct
public static LLVMValueRef ConstNamedStruct(LLVMTypeRef StructTy, LLVMValueRef[] ConstantVals)
{
if (ConstantVals.Length == 0)
{
LLVMValueRef dummy;
return ConstNamedStruct(StructTy, out dummy, 0);
}
return ConstNamedStruct(StructTy, out ConstantVals[0], (uint)ConstantVals.Length);
}
示例5: GetParamTypes
public static LLVMTypeRef[] GetParamTypes(LLVMTypeRef FunctionTy)
{
uint count = CountParamTypes(FunctionTy);
var buffer = new LLVMTypeRef[count];
if (count > 0)
{
GetParamTypes(FunctionTy, out buffer[0]);
}
return buffer;
}
示例6: StructType
public static extern LLVMTypeRef StructType(out LLVMTypeRef @ElementTypes, uint @ElementCount, LLVMBool @Packed);
示例7: TypeIsSized
public static extern LLVMBool TypeIsSized(LLVMTypeRef @Ty);
示例8: IsFunctionVarArg
public static extern LLVMBool IsFunctionVarArg(LLVMTypeRef @FunctionTy);
示例9: IsOpaqueStruct
public static extern LLVMBool IsOpaqueStruct(LLVMTypeRef @StructTy);
示例10: GetUndef
public static extern LLVMValueRef GetUndef(LLVMTypeRef @Ty);
示例11: GetVectorSize
public static extern uint GetVectorSize(LLVMTypeRef @VectorTy);
示例12: GetTypeKind
public static extern LLVMTypeKind GetTypeKind(LLVMTypeRef @Ty);
示例13: GetTypeContext
public static extern LLVMContextRef GetTypeContext(LLVMTypeRef @Ty);
示例14: GetStructName
public static extern string GetStructName(LLVMTypeRef @Ty);
示例15: StoreSizeOfType
public static extern ulong StoreSizeOfType(LLVMTargetDataRef @TD, LLVMTypeRef @Ty);