forked from OSchip/llvm-project
Rename LLVM::exp and LLVM::fmuladd to LLVM::ExpOP and LLVM::FMulAddOp.
PiperOrigin-RevId: 274154655
This commit is contained in:
parent
00d2a37e32
commit
7301ac72bc
|
@ -579,7 +579,7 @@ def LLVM_ConstantOp
|
|||
// operations and intrinsics. However, we systematically prefix them with
|
||||
// "intr." to avoid potential name clashes.
|
||||
|
||||
def LLVM_fmuladd : LLVM_Op<"intr.fmuladd", [NoSideEffect]>,
|
||||
def LLVM_FMulAddOp : LLVM_Op<"intr.fmuladd", [NoSideEffect]>,
|
||||
Arguments<(ins LLVM_Type:$a, LLVM_Type:$b, LLVM_Type:$c)>,
|
||||
Results<(outs LLVM_Type:$res)> {
|
||||
let llvmBuilder = [{
|
||||
|
@ -591,7 +591,7 @@ def LLVM_fmuladd : LLVM_Op<"intr.fmuladd", [NoSideEffect]>,
|
|||
}];
|
||||
}
|
||||
|
||||
def LLVM_exp : LLVM_Op<"intr.exp", [NoSideEffect]>,
|
||||
def LLVM_ExpOp : LLVM_Op<"intr.exp", [NoSideEffect]>,
|
||||
Arguments<(ins LLVM_Type:$in)>,
|
||||
Results<(outs LLVM_Type:$res)> {
|
||||
let llvmBuilder = [{
|
||||
|
|
|
@ -548,7 +548,7 @@ using BinaryOpLLVMOpLowering = NaryOpLLVMOpLowering<SourceOp, TargetOp, 2>;
|
|||
|
||||
// Specific lowerings.
|
||||
// FIXME: this should be tablegen'ed.
|
||||
struct ExpOpLowering : public UnaryOpLLVMOpLowering<ExpOp, LLVM::exp> {
|
||||
struct ExpOpLowering : public UnaryOpLLVMOpLowering<ExpOp, LLVM::ExpOp> {
|
||||
using Super::Super;
|
||||
};
|
||||
struct AddIOpLowering : public BinaryOpLLVMOpLowering<AddIOp, LLVM::AddOp> {
|
||||
|
|
|
@ -142,7 +142,7 @@ public:
|
|||
loc, vRHS, acc, rewriter.getI64ArrayAttr(d));
|
||||
// 3. Compute aD outer b (plus accD, if relevant).
|
||||
Value *aOuterbD =
|
||||
accD ? rewriter.create<LLVM::fmuladd>(loc, vRHS, aD, b, accD)
|
||||
accD ? rewriter.create<LLVM::FMulAddOp>(loc, vRHS, aD, b, accD)
|
||||
.getResult()
|
||||
: rewriter.create<LLVM::FMulOp>(loc, aD, b).getResult();
|
||||
// 4. Insert as value `d` in the descriptor.
|
||||
|
|
Loading…
Reference in New Issue