本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例9: ConstStructInContext
public LLVMValueRef ConstStructInContext(LLVMValueRef[] @ConstantVals, bool @Packed)
{
return LLVM.ConstStructInContext(this, @ConstantVals, @Packed);
}
示例10: MDNodeInContext
public LLVMValueRef MDNodeInContext(LLVMValueRef[] @Vals)
{
return LLVM.MDNodeInContext(this, @Vals);
}
示例11: ScoreVal
public ScoreVal(Span span, TyRef ty, LLVMValueRef value)
{
this.ty = ty;
this.value = value;
}
示例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);
}
示例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);
}
示例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;
}
示例15: RunFunctionAsMain
public int RunFunctionAsMain(LLVMValueRef @F, uint @ArgC, string[] @ArgV, string[] @EnvP)
{
return LLVM.RunFunctionAsMain(this.instance, @F, @ArgC, @ArgV, @EnvP);
}