Skip to content
Snippets Groups Projects
Commit 8fea0879 authored by eqy's avatar eqy Committed by Tianqi Chen
Browse files

inline AMD GPU functions (#625)

* Support vector operations for AMD (llvm IR)

* fix whitespace

* update comments, docstring

* inline AMD GPU functions
parent 90067e64
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,9 @@ runtime::Module BuildAMDGPU(Array<LoweredFunc> funcs, std::string target) {
}
mlib->setTargetTriple(tm->getTargetTriple().str());
mlib->setDataLayout(tm->createDataLayout());
for (llvm::Function &f : mlib->functions()) {
f.addFnAttr(llvm::Attribute::AlwaysInline);
}
cg->AddLinkModule(std::move(mlib));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment