Remove unused constructor.
Also replace macro TF_DISALLOW_COPY_AND_ASSIGN with direct = delete. PiperOrigin-RevId: 238437416
This commit is contained in:
parent
5f071f2eb2
commit
fa5e3a9682
@ -43,6 +43,9 @@ enum class UnrollMode {
|
||||
// A class for constructing a for-loop in LLVM IR.
|
||||
class ForLoop {
|
||||
public:
|
||||
ForLoop(const ForLoop&) = delete;
|
||||
ForLoop& operator=(const ForLoop&) = delete;
|
||||
|
||||
// Emit a for-loop at the current insert point of the given IRBuilder.
|
||||
//
|
||||
// start_index and end_index are the loop bounds (end_index is not inclusive).
|
||||
@ -169,18 +172,11 @@ class ForLoop {
|
||||
llvm::Value* indvar_;
|
||||
UnrollMode unroll_mode_;
|
||||
bool prevent_vectorization_;
|
||||
|
||||
TF_DISALLOW_COPY_AND_ASSIGN(ForLoop);
|
||||
};
|
||||
|
||||
// A simple class for constructing nested for-loops.
|
||||
class ForLoopNest {
|
||||
public:
|
||||
explicit ForLoopNest(llvm::IRBuilder<>* b, llvm::Type* index_ty = nullptr)
|
||||
: ForLoopNest(/*name=*/"", b) {
|
||||
SetIndexType(index_ty);
|
||||
}
|
||||
|
||||
ForLoopNest(absl::string_view name, llvm::IRBuilder<>* b,
|
||||
llvm::Type* index_ty = nullptr)
|
||||
: name_(name),
|
||||
@ -190,6 +186,8 @@ class ForLoopNest {
|
||||
b_(b) {
|
||||
SetIndexType(index_ty);
|
||||
}
|
||||
ForLoopNest(const ForLoopNest&) = delete;
|
||||
ForLoopNest& operator=(const ForLoopNest&) = delete;
|
||||
|
||||
// Adds a loop to the nest. If no loop has been added yet then emit a loop at
|
||||
// the current insert point of the given builder. If one or more loops have
|
||||
@ -289,8 +287,6 @@ class ForLoopNest {
|
||||
llvm::IRBuilder<>* b_;
|
||||
|
||||
llvm::Type* index_type_;
|
||||
|
||||
TF_DISALLOW_COPY_AND_ASSIGN(ForLoopNest);
|
||||
};
|
||||
|
||||
} // namespace llvm_ir
|
||||
|
Loading…
Reference in New Issue
Block a user