Make LDC custom passes available to jit, add API for jit compiler options (#2758)

This commit is contained in:
Ivan Butygin 2019-09-08 09:16:05 +03:00 committed by GitHub
parent b6d8210255
commit a40c6c7fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 478 additions and 27 deletions

View file

@ -18,7 +18,7 @@
#endif
#include "gen/attributes.h"
#include "gen/metadata.h"
#include "metadata.h"
#include "gen/passes/Passes.h"
#include "gen/runtime.h"
#include "llvm/Pass.h"
@ -849,7 +849,7 @@ bool isSafeToStackAllocate(BasicBlock::iterator Alloc, Value *V,
const unsigned paramHasAttr_firstArg = 0;
#endif
if (!CS.paramHasAttr(A - B + paramHasAttr_firstArg,
LLAttribute::NoCapture)) {
llvm::Attribute::AttrKind::NoCapture)) {
// The parameter is not marked 'nocapture' - captured.
return false;
}