Skip to content

Commit

Permalink
-Simplifies the target feature initialization option.
Browse files Browse the repository at this point in the history
Adds a Todo comment to plugin the target platform intialization using target descriptor.
  • Loading branch information
shahidact committed Feb 17, 2025
1 parent 8350afc commit cf784c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TPP/DefaultPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ struct DefaultPipeline : public tpp::impl::DefaultPipelineBase<DefaultPipeline>,

// Lower to LLVM
ConvertVectorToLLVMPassOptions options;
options.amx = vnni::utils::hasAMX() ? true : false;
options.amx = vnni::utils::hasAMX();
pm.addPass(createConvertVectorToLLVMPass(options));
pm.addPass(createFinalizeMemRefToLLVMConversionPass());
pm.addPass(createConvertSCFToCFPass());
Expand Down
1 change: 1 addition & 0 deletions tools/tpp-run/tpp-run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ int main(int argc, char **argv) {
return 1;

// Initialize the underlying platform
// TODO: Move this to use the target information flags
libxsmm_init();
// Initialize the LLVM machinery
llvm::InitLLVM y(argc, argv);
Expand Down

0 comments on commit cf784c7

Please sign in to comment.