本文整理汇总了C#中LLVMValueRef类的典型用法代码示例。如果您正苦于以下问题:C# LLVMValueRef类的具体用法?C# LLVMValueRef怎么用?C# LLVMValueRef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LLVMValueRef类属于命名空间,在下文中一共展示了LLVMValueRef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Value
public Value(LLVMValueRef* handle)
{
if(handle == null)
throw new ArgumentNullException("handle");
m_handle = handle;
}
示例2: Used
public static bool Used(LLVMValueRef* value)
{
if(value == null)
throw new ArgumentNullException("value");
return Native.GetFirstUse(value) != null;
}
示例3: GetName
public static string GetName(LLVMValueRef* value)
{
if(value == null)
throw new ArgumentNullException("value");
IntPtr name = Native.GetValueName(value);
if(name == null)
return null;
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(name);
}
示例4: GetUseCount
public static int GetUseCount(LLVMValueRef* value)
{
if(value == null)
throw new ArgumentNullException("value");
LLVMUseRef* use = Native.GetFirstUse(value);
int count = 0;
while(use != null)
{
count++;
use = Native.GetNextUse(use);
}
return count;
}
示例5: Function
public Function(string name, LLVMValueRef* handle)
{
m_name = name;
m_handle = handle;
m_funcType = Native.GetElementType(Native.TypeOf(handle));
m_returnType = new TypeRef(Native.GetReturnType(m_funcType));
uint paramCount = Native.CountParamTypes(m_funcType);
m_paramTypes = new TypeRef[paramCount];
if(paramCount > 0)
{
IntPtr[] types = new IntPtr[paramCount];
Native.GetParamTypes(m_funcType, types);
for(int i = 0; i < paramCount; ++i)
{
m_paramTypes[i] = new TypeRef((LLVMTypeRef*)types[i]);
}
}
}
示例6: GetNextFunction
public static extern LLVMValueRef* GetNextFunction(LLVMValueRef* Fn);
示例7: ViewFunctionCFGOnly
public static extern void ViewFunctionCFGOnly(LLVMValueRef* Fn);
示例8: PreferredAlignmentOfGlobal
public static extern uint PreferredAlignmentOfGlobal(LLVMTargetDataRef* LLVMTargetDataRef, LLVMValueRef* GlobalVar);
示例9: AddGlobalMapping
public static extern void AddGlobalMapping(LLVMExecutionEngineRef* EE, LLVMValueRef* Global, System.IntPtr Addr);
示例10: FindFunction
public static extern int FindFunction(LLVMExecutionEngineRef* EE, [In][MarshalAs(UnmanagedType.LPStr)] string Name, ref LLVMValueRef * OutFn);
示例11: RunFunction
public static extern LLVMGenericValueRef* RunFunction(LLVMExecutionEngineRef* EE, LLVMValueRef* F, uint NumArgs, System.IntPtr[] Args);
示例12: BuildCall
public static extern LLVMValueRef* BuildCall(LLVMBuilderRef* LLVMBuilderRef, LLVMValueRef* Fn, System.IntPtr[] Args, uint NumArgs, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
示例13: BuildFCmp
public static extern LLVMValueRef* BuildFCmp(LLVMBuilderRef* LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef* LHS, LLVMValueRef* RHS, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
示例14: BuildFPCast
public static extern LLVMValueRef* BuildFPCast(LLVMBuilderRef* LLVMBuilderRef, LLVMValueRef* Val, LLVMTypeRef* DestTy, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
示例15: SetVolatile
public static extern void SetVolatile(LLVMValueRef* MemoryAccessInst, int IsVolatile);