• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# LLVMSharp.LLVMValueRef类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LLVMSharp.LLVMValueRef的典型用法代码示例。如果您正苦于以下问题:C# LLVMValueRef类的具体用法?C# LLVMValueRef怎么用?C# LLVMValueRef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LLVMValueRef类属于LLVMSharp命名空间,在下文中一共展示了LLVMValueRef类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddIncoming

        public static void AddIncoming(LLVMValueRef PhiNode, LLVMValueRef[] IncomingValues, LLVMBasicBlockRef[] IncomingBlocks, uint Count)
        {
            if (Count == 0)
            {
                return;
            }

            AddIncoming(PhiNode, out IncomingValues[0], out IncomingBlocks[0], Count);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:9,代码来源:Overloads.cs


示例2: 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);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例3: FnCompiler

 public FnCompiler(DetailLogger log, SymbolTableWalker walker,
     LLVMContextRef context, LLVMModuleRef module, LLVMBuilderRef builder, LLVMValueRef self)
 {
     this.log = log;
     this.walker = walker;
     this.context = context;
     this.module = module;
     this.builder = builder;
     this.self = self;
 }
开发者ID:YourLocalFax,项目名称:OLD-Score,代码行数:10,代码来源:FnCompiler.cs


示例4: SetLLVMRegister

        public void SetLLVMRegister(string variableName, ClepsType variableType, LLVMValueRef llvmValueRef)
        {
            var localVariablesBlockWithVar = LocalVariableBlocks.Where(b => b.ContainsKey(variableName)).LastOrDefault();
            Debug.Assert(localVariablesBlockWithVar != null);
            
            LLVMRegister ret = localVariablesBlockWithVar[variableName];
            Debug.Assert(ret.VariableType == variableType);

            localVariablesBlockWithVar[variableName] = new LLVMRegister(variableType, llvmValueRef);
        }
开发者ID:shravanrn,项目名称:Cleps,代码行数:10,代码来源:VariableManager.cs


示例5: ConstExtractValue

        public static LLVMValueRef ConstExtractValue(LLVMValueRef AggConstant, uint[] IdxList)
        {
            if (IdxList.Length == 0)
            {
                uint dummy;
                return ConstExtractValue(AggConstant, out dummy, 0);
            }

            return ConstExtractValue(AggConstant, out IdxList[0], (uint)IdxList.Length);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例6: BuildInBoundsGEP

        public static LLVMValueRef BuildInBoundsGEP(LLVMBuilderRef B, LLVMValueRef Pointer, LLVMValueRef[] Indices, string Name)
        {
            if (Indices.Length == 0)
            {
                LLVMValueRef dummy;
                return BuildInBoundsGEP(B, Pointer, out dummy, 0, Name);
            }

            return BuildInBoundsGEP(B, Pointer, out Indices[0], (uint)Indices.Length, Name);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例7: BuildInvoke

        public static LLVMValueRef BuildInvoke(LLVMBuilderRef param0, LLVMValueRef Fn, LLVMValueRef[] Args, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, string Name)
        {
            if (Args.Length == 0)
            {
                LLVMValueRef dummy;
                return BuildInvoke(param0, Fn, out dummy, 0, Then, Catch, Name);
            }

            return BuildInvoke(param0, Fn, out Args[0], (uint)Args.Length, Then, Catch, Name);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例8: BuildCall

        public static LLVMValueRef BuildCall(LLVMBuilderRef param0, LLVMValueRef Fn, LLVMValueRef[] Args, string Name)
        {
            if (Args.Length == 0)
            {
                LLVMValueRef dummy;
                return BuildCall(param0, Fn, out dummy, 0, Name);
            }

            return BuildCall(param0, Fn, out Args[0], (uint)Args.Length, Name);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例9: ConstStructInContext

 public LLVMValueRef ConstStructInContext(LLVMValueRef[] @ConstantVals, bool @Packed)
 {
     return LLVM.ConstStructInContext(this, @ConstantVals, @Packed);
 }
开发者ID:rflechner,项目名称:LLVMSharp,代码行数:4,代码来源:LLVMContextRef.cs


示例10: MDNodeInContext

 public LLVMValueRef MDNodeInContext(LLVMValueRef[] @Vals)
 {
     return LLVM.MDNodeInContext(this, @Vals);
 }
开发者ID:rflechner,项目名称:LLVMSharp,代码行数:4,代码来源:LLVMContextRef.cs


示例11: ScoreVal

 public ScoreVal(Span span, TyRef ty, LLVMValueRef value)
 {
     this.ty = ty;
     this.value = value;
 }
开发者ID:YourLocalFax,项目名称:OLD-Score,代码行数:5,代码来源:ScoreVal.cs


示例12: ConstGEP

        public static LLVMValueRef ConstGEP(LLVMValueRef ConstantVal, LLVMValueRef[] ConstantIndices)
        {
            if (ConstantIndices.Length == 0)
            {
                LLVMValueRef dummy;
                return ConstGEP(ConstantVal, out dummy, 0);
            }

            return ConstGEP(ConstantVal, out ConstantIndices[0], (uint)ConstantIndices.Length);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例13: 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);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例14: GetMDNodeOperands

        public static LLVMValueRef[] GetMDNodeOperands(LLVMValueRef V)
        {
            uint count = GetMDNodeNumOperands(V);
            var buffer = new LLVMValueRef[count];

            if (count > 0)
            {
                GetMDNodeOperands(V, out buffer[0]);
            }

            return buffer;
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:12,代码来源:Overloads.cs


示例15: RunFunctionAsMain

 public int RunFunctionAsMain(LLVMValueRef @F, uint @ArgC, string[] @ArgV, string[] @EnvP)
 {
     return LLVM.RunFunctionAsMain(this.instance, @F, @ArgC, @ArgV, @EnvP);
 }
开发者ID:travellidiot,项目名称:LLVMSharp,代码行数:4,代码来源:ExecutionEngine.cs


示例16: RecompileAndRelinkFunction

 public IntPtr RecompileAndRelinkFunction(LLVMValueRef @Fn)
 {
     return LLVM.RecompileAndRelinkFunction(this.instance, @Fn);
 }
开发者ID:travellidiot,项目名称:LLVMSharp,代码行数:4,代码来源:ExecutionEngine.cs


示例17: AppendBasicBlockInContext

 public LLVMBasicBlockRef AppendBasicBlockInContext(LLVMValueRef @Fn, string @Name)
 {
     return LLVM.AppendBasicBlockInContext(this, @Fn, @Name);
 }
开发者ID:rflechner,项目名称:LLVMSharp,代码行数:4,代码来源:LLVMContextRef.cs


示例18: RunFunction

        public static LLVMGenericValueRef RunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F, LLVMGenericValueRef[] Args)
        {
            if (Args.Length == 0)
            {
                LLVMGenericValueRef dummy;
                return RunFunction(EE, F, 0, out dummy);
            }

            return RunFunction(EE, F, (uint)Args.Length, out Args[0]);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例19: MDNodeInContext

        public static LLVMValueRef MDNodeInContext(LLVMContextRef C, LLVMValueRef[] Vals)
        {
            if (Vals.Length == 0)
            {
                LLVMValueRef dummy;
                return MDNodeInContext(C, out dummy, 0);
            }

            return MDNodeInContext(C, out Vals[0], (uint)Vals.Length);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs


示例20: MDNode

        public static LLVMValueRef MDNode(LLVMValueRef[] Vals)
        {
            if (Vals.Length == 0)
            {
                LLVMValueRef dummy;
                return MDNode(out dummy, 0);
            }

            return MDNode(out Vals[0], (uint)Vals.Length);
        }
开发者ID:kingland,项目名称:LLVMSharp,代码行数:10,代码来源:Overloads.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Modelo.LQCEEntities类代码示例发布时间:2022-05-26
下一篇:
C# LLVMSharp.LLVMTypeRef类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap