当前位置: 首页>>代码示例>>C#>>正文


C# LLVMValueRef类代码示例

本文整理汇总了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;
        }
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:7,代码来源:Value.cs

示例2: Used

        public static bool Used(LLVMValueRef* value)
        {
            if(value == null)
                throw new ArgumentNullException("value");

            return Native.GetFirstUse(value) != null;
        }
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:7,代码来源:Value.cs

示例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);
        }
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:11,代码来源:Value.cs

示例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;
        }
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:16,代码来源:Value.cs

示例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]);
                }
            }
        }
开发者ID:aaronrandolph,项目名称:LLVM.NET,代码行数:21,代码来源:Function.cs

示例6: GetNextFunction

 public static extern LLVMValueRef* GetNextFunction(LLVMValueRef* Fn);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例7: ViewFunctionCFGOnly

 public static extern void ViewFunctionCFGOnly(LLVMValueRef* Fn);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例8: PreferredAlignmentOfGlobal

 public static extern uint PreferredAlignmentOfGlobal(LLVMTargetDataRef* LLVMTargetDataRef, LLVMValueRef* GlobalVar);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例9: AddGlobalMapping

 public static extern void AddGlobalMapping(LLVMExecutionEngineRef* EE, LLVMValueRef* Global, System.IntPtr Addr);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例10: FindFunction

 public static extern int FindFunction(LLVMExecutionEngineRef* EE, [In][MarshalAs(UnmanagedType.LPStr)] string Name, ref LLVMValueRef * OutFn);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例11: RunFunction

 public static extern LLVMGenericValueRef* RunFunction(LLVMExecutionEngineRef* EE, LLVMValueRef* F, uint NumArgs, System.IntPtr[] Args);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例12: BuildCall

 public static extern LLVMValueRef* BuildCall(LLVMBuilderRef* LLVMBuilderRef, LLVMValueRef* Fn, System.IntPtr[] Args, uint NumArgs, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例13: BuildFCmp

 public static extern LLVMValueRef* BuildFCmp(LLVMBuilderRef* LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef* LHS, LLVMValueRef* RHS, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例14: BuildFPCast

 public static extern LLVMValueRef* BuildFPCast(LLVMBuilderRef* LLVMBuilderRef, LLVMValueRef* Val, LLVMTypeRef* DestTy, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs

示例15: SetVolatile

 public static extern void SetVolatile(LLVMValueRef* MemoryAccessInst, int IsVolatile);
开发者ID:veraciousnottaken,项目名称:LLVM.NET,代码行数:1,代码来源:NativeMethods.cs


注:本文中的LLVMValueRef类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。