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


C# LLVMSharp.LLVMValueRef类代码示例

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


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


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