mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Make LDC custom passes available to jit, add API for jit compiler options (#2758)
This commit is contained in:
parent
b6d8210255
commit
a40c6c7fd2
22 changed files with 478 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue