Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable-strict-ta #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion compiler/rustc_codegen_llvm/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,11 @@ pub(crate) unsafe fn differentiate(
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymePrintType), 1);
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymePrint), 1);
}
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymePrintActivity), 0);
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymePrintType), 0);
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymePrint), 0);

llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymeStrictAliasing), 1);
llvm::EnzymeSetCLBool(std::ptr::addr_of_mut!(llvm::EnzymeStrictAliasing), 0);

for item in diff_items {
let res = enzyme_ad(llmod, llcx, item);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/enzyme/enzyme/Enzyme/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ using namespace llvm;

extern "C" {
llvm::cl::opt<bool>
EnzymePrint("enzyme-print", cl::init(false), cl::Hidden,
EnzymePrint("enzyme-print", cl::init(true), cl::Hidden,
cl::desc("Print before and after fns for autodiff"));

llvm::cl::opt<bool>
Expand Down
4 changes: 2 additions & 2 deletions src/tools/enzyme/enzyme/Enzyme/TypeAnalysis/TypeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ llvm::cl::opt<int> MaxIntOffset("enzyme-max-int-offset", cl::init(100),
cl::Hidden,
cl::desc("Maximum type tree offset"));

llvm::cl::opt<bool> EnzymePrintType("enzyme-print-type", cl::init(false),
llvm::cl::opt<bool> EnzymePrintType("enzyme-print-type", cl::init(true),
cl::Hidden,
cl::desc("Print type analysis algorithm"));

Expand All @@ -72,7 +72,7 @@ llvm::cl::opt<bool> RustTypeRules("enzyme-rust-type", cl::init(false),
cl::desc("Enable rust-specific type rules"));

llvm::cl::opt<bool> EnzymeStrictAliasing(
"enzyme-strict-aliasing", cl::init(true), cl::Hidden,
"enzyme-strict-aliasing", cl::init(false), cl::Hidden,
cl::desc("Assume strict aliasing of types / type stability"));
}

Expand Down