Generalized RealPredicate

This commit is contained in:
Denis Merigoux 2018-08-21 13:54:41 +02:00 committed by Eduard-Mihai Burtescu
parent 51b7f2739b
commit 8590336d49
5 changed files with 62 additions and 16 deletions

View file

@ -9,7 +9,7 @@
// except according to those terms.
use llvm::{AtomicRmwBinOp, AtomicOrdering, SynchronizationScope, AsmDialect};
use llvm::{RealPredicate, False, OperandBundleDef};
use llvm::{False, OperandBundleDef};
use llvm::{self, BasicBlock};
use common::*;
use type_::Type;
@ -697,7 +697,7 @@ impl BuilderMethods<'a, 'll, 'tcx, Value, BasicBlock>
}
}
fn fcmp(&self, op: RealPredicate, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
fn fcmp(&self, op: traits::RealPredicate, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
self.count_insn("fcmp");
unsafe {
llvm::LLVMBuildFCmp(self.llbuilder, op as c_uint, lhs, rhs, noname())