Skip to content

Commit facc907

Browse files
committed
Add comment explaining file structuring
1 parent 32c9cea commit facc907

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mlir/include/mlir/Dialect/LLVMIR/LLVMTargetFeaturesAttrDefs.td

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
//===-- LLVMAttrDefs.td - LLVM Attributes definition file --*- tablegen -*-===//
1+
//===-- LLVMTargetFeaturesAttrDefs.td ----------------------*- tablegen -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8+
//
9+
// Separate out the LLVM_TargetFeaturesAttr definition from LLVMAttrDefs.td so
10+
// as to break a circular dependency between LLVMInterfaces.td and LLVMAttrDefs.
11+
// In particular, the TargetAttrInterface requires LLVMTargetFeaturesAttr
12+
// and attrs in LLVMAttrDefs.td require interfaces from LLVMInterfaces.td.
13+
//
14+
//===----------------------------------------------------------------------===//
815

916
#ifndef LLVMIR_TARGETFEATURESATTRDEFS
1017
#define LLVMIR_TARGETFEATURESATTRDEFS

0 commit comments

Comments
 (0)