Skip to content

Commit

Permalink
Add potentially missing includes in auto-generated .cpp file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Symalla authored and tsymalla-AMD committed Jul 17, 2024
1 parent 3b87fe1 commit 3ab4a63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/TableGen/GenDialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,12 @@ void llvm_dialects::genDialectDefs(raw_ostream& out, RecordKeeper& records) {
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include <optional>
)";

if (!noMemoryEffects()) {
Expand Down
4 changes: 4 additions & 0 deletions test/example/generated/ExampleDialect.cpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"

#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"

#include <optional>

#include "llvm/Support/ModRef.h"

#include "llvm/Support/raw_ostream.h"
Expand Down

0 comments on commit 3ab4a63

Please sign in to comment.