Skip to content

Commit 7278476

Browse files
authored
[Driver][NFC] Cleanout some remaining unused FPGA items (#18817)
When browsing some files, found a few FPGA references that are no longer used as we have removed FPGA support. Clean these out.
1 parent a66c6df commit 7278476

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

clang/include/clang/Driver/Driver.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -775,25 +775,6 @@ class Driver {
775775
/// Get the specific kind of offload LTO being performed.
776776
LTOKind getOffloadLTOMode() const { return OffloadLTOMode; }
777777

778-
// FPGA Offload Modes.
779-
enum DeviceMode {
780-
UnsetDeviceMode,
781-
FPGAHWMode,
782-
FPGAEmulationMode
783-
} OffloadCompileMode = UnsetDeviceMode;
784-
785-
bool IsFPGAHWMode() const { return OffloadCompileMode == FPGAHWMode; }
786-
787-
bool IsFPGAEmulationMode() const {
788-
return OffloadCompileMode == FPGAEmulationMode;
789-
}
790-
791-
void setOffloadCompileMode(DeviceMode ModeValue) {
792-
OffloadCompileMode = ModeValue;
793-
}
794-
795-
DeviceMode getOffloadCompileMode() { return OffloadCompileMode; }
796-
797778
/// Get the CUID option.
798779
const CUIDOptions &getCUIDOpts() const { return CUIDOpts; }
799780

@@ -893,9 +874,6 @@ class Driver {
893874
void checkForOffloadMismatch(Compilation &C,
894875
llvm::opt::DerivedArgList &Args) const;
895876

896-
/// Track filename used for the FPGA dependency info.
897-
mutable llvm::StringMap<const std::string> FPGATempDepFiles;
898-
899877
/// A list of inputs and their corresponding integration headers. These
900878
/// files are generated during the device compilation and are consumed
901879
/// by the host compilation.
@@ -948,18 +926,6 @@ class Driver {
948926
/// getUseNewOffloadingDriver - use the new offload driver for OpenMP.
949927
bool getUseNewOffloadingDriver() const { return UseNewOffloadingDriver; };
950928

951-
/// addFPGATempDepFile - Add a file to be added to the bundling step of
952-
/// an FPGA object.
953-
void addFPGATempDepFile(const std::string &DepName,
954-
const std::string &FileName) const {
955-
FPGATempDepFiles.insert({FileName, DepName});
956-
}
957-
/// getFPGATempDepFile - Get a file to be added to the bundling step of
958-
/// an FPGA object.
959-
const std::string getFPGATempDepFile(const std::string &FileName) const {
960-
return FPGATempDepFiles[FileName];
961-
}
962-
963929
/// isSYCLDefaultTripleImplied - The default SYCL triple (spir64) has been
964930
/// added or should be added given proper criteria.
965931
bool isSYCLDefaultTripleImplied() const { return SYCLDefaultTripleImplied; };

0 commit comments

Comments
 (0)