Example #1
0
 public FloatComparisonBlock(
     LLVMCodeGenerator CodeGenerator,
     CodeBlock Left,
     CodeBlock Right,
     LLVMRealPredicate Predicate)
 {
     this.codeGen   = CodeGenerator;
     this.lhs       = Left;
     this.rhs       = Right;
     this.predicate = Predicate;
 }
 public static extern LLVMValueRef* BuildFCmp(LLVMBuilderRef* LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef* LHS, LLVMValueRef* RHS, [In][MarshalAs(UnmanagedType.LPStr)] string Name);
 public static extern LLVMValueRef* ConstFCmp(LLVMRealPredicate Predicate, LLVMValueRef* LHSConstant, LLVMValueRef* RHSConstant);
Example #4
0
 public static extern LLVMValueRef ConstFCmp(LLVMRealPredicate @Predicate, LLVMValueRef @LHSConstant, LLVMValueRef @RHSConstant);
Example #5
0
 public static extern LLVMValueRef BuildFCmp(LLVMBuilderRef @param0, LLVMRealPredicate @Op, LLVMValueRef @LHS, LLVMValueRef @RHS, [MarshalAs(UnmanagedType.LPStr)] string @Name);
Example #6
0
 public Value BuildFCmpAndPromote(Value lhs, LLVMRealPredicate predicate, Value rhs, TypeRef promoteType)
 {
     lhs = BuildFCmp(lhs, predicate, rhs);
     return new Value(Native.BuildUIToFP(m_builder, lhs.Handle, promoteType.Handle, "promotetmp")); 
 }
Example #7
0
 public Value BuildFCmp(Value lhs, LLVMRealPredicate predicate, Value rhs, string varName = tmpvarname)
 {
     return new Value(Native.BuildFCmp(m_builder, predicate, lhs.Handle, rhs.Handle, varName));
 }
Example #8
0
 public LLVMValueRef CreateFCmp(LLVMRealPredicate @Op, LLVMValueRef @LHS, LLVMValueRef @RHS, string @Name)
 {
     return LLVM.BuildFCmp(this.instance, @Op, @LHS, @RHS, @Name);
 }
Example #9
0
 public static ConstantExpr GetFCmp(LLVMRealPredicate predicate, Constant lhs, Constant rhs) => LLVM.ConstFCmp(predicate, lhs.Unwrap(), rhs.Unwrap()).WrapAs <ConstantExpr>();
Example #10
0
 public Value BuildFCmpAndPromote(Value lhs, LLVMRealPredicate predicate, Value rhs, TypeRef promoteType)
 {
     lhs = BuildFCmp(lhs, predicate, rhs);
     return(new Value(Native.BuildUIToFP(m_builder, lhs.Handle, promoteType.Handle, "promotetmp")));
 }
Example #11
0
 public Value BuildFCmp(Value lhs, LLVMRealPredicate predicate, Value rhs, string varName = tmpvarname)
 {
     return(new Value(Native.BuildFCmp(m_builder, predicate, lhs.Handle, rhs.Handle, varName)));
 }
Example #12
0
 public static RealPredicate Wrap(this LLVMRealPredicate handle) => (RealPredicate)(int)handle;
Example #13
0
 private OperatorSymbol binary(Tag tag, TypeTag left, TypeTag right, TypeTag result, LLVMOpcode opcode,
                               LLVMRealPredicate realPredicate)
 {
     return(binary(tag, left, right, result, opcode, (int)realPredicate));
 }
Example #14
0
 public Value BuildFCmp(Value lhs, LLVMRealPredicate predicate, Value rhs)
 {
     return BuildFCmp(lhs, predicate, rhs, "cmptmp");
 }
Example #15
0
 public LLVMValueRef CreateFCmp(LLVMRealPredicate @Op, LLVMValueRef @LHS, LLVMValueRef @RHS, string @Name)
 {
     return(LLVM.BuildFCmp(this.instance, @Op, @LHS, @RHS, @Name));
 }