Displaying 13 results from an estimated 13 matches for "codegenpasses".
2018 May 24
0
LLVM Pass To Remove Dead Code In A Basic Block
> On 25 May 2018, at 01:46, Aaron via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi all,
>
> LLVM optimization pass gives an error "Terminator found in the middle of a basic block!" since basic block IR may have multiple "ret" instructions. It seems LLVM does not accept multiple return in a basic block by default.
>
Yes, if you’re inserting
2018 May 24
2
LLVM Pass To Remove Dead Code In A Basic Block
Hi all,
LLVM optimization pass gives an error "Terminator found in the middle of a
basic block!" since basic block IR may have multiple "ret" instructions. It
seems LLVM does not accept multiple return in a basic block by default.
Is there a specific optimization or pass that I can enable to remove
unreachable codes in basic blocks?
Best,
Aaron
-------------- next part
2018 May 24
2
LLVM Pass To Remove Dead Code In A Basic Block
Hi Dean,
Thanks for your reply.
That's exactly what I am doing, but I was looking for a default
optimization or pass implementation if there was.
I used BasicBlock::splitBasicBlock() but it puts "br" end of original basic
block. I tried to delete the br instruction by using eraseFromParent() but
it didn't work.
I had to rewrite my own splitBasicBlock() by modifying the
2013 Jul 17
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...iagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Those badly need to be...
2013 Jul 17
4
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...iagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Those badly need to be...
2011 Jan 18
1
[LLVMdev] adding a codegen pass into llvm
Thanks for your last reply.
Could I understand the way to adding a pass (built into the llvm rather than
dynamic loadable) includes:
1. Declaring a creator function for this pass
2. Implementing the creator function for this pass
3. Instantiating this pass and get a object of it
3. Register this pass into the PassRegistry
Then, for a built-into bytecode pass,
task 1(declaration of the
2013 Jul 17
3
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...iagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Those badly need to be...
2013 Jul 20
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...iagnostic for some condition? How would this work? Would you have clang insert extra passes to check for various conditions that might require diagnostics? I don't see how else you would do it, since clang's interface to the backend just sets up the PerFunctionPasses, PerModulePasses and CodeGenPasses pass managers and then runs them. Assuming you did add some special passes to check for problems, wouldn't those passes have to duplicate a lot of effort in some cases to find the answers? Take for example the existing warnings in IntrinsicLowering::LowerIntrinsicCall. Those badly need to be...
2013 Jul 12
14
[LLVMdev] [Proposal] Parallelize post-IPO stage.
...artition *P = _IPOPartMgr.CreateIPOPart(mergedModule);
+ P->SaveBitCode();
+ }
+}
+
+bool LTOCodeGenerator::performPostLTO(Module *Mod, formatted_raw_ostream &Out,
+ std::string &errMsg) {
+ // placeholder for post-IPO scalar opt
+
PassManager codeGenPasses;
codeGenPasses.add(new DataLayout(*_target->getDataLayout()));
_target->addAnalysisPasses(codeGenPasses);
- formatted_raw_ostream Out(out);
-
// If the bitcode files contain ARC code and were compiled with optimization,
// the ObjCARCContractPass must be run, so do it uncondi...
2013 Jul 17
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
On Tue, Jul 16, 2013 at 9:34 PM, Bob Wilson <bob.wilson at apple.com> wrote:
>
> On Jul 16, 2013, at 5:51 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>
> On Tue, Jul 16, 2013 at 5:21 PM, Quentin Colombet <qcolombet at apple.com>
> wrote:
>
> ** Advices Needed **
>
> 1. Decide whether or not we want such capabilities (if we do not we may
>
2013 Jul 17
2
[LLVMdev] [RFC] Add warning capabilities in LLVM.
On Jul 16, 2013, at 5:51 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Jul 16, 2013 at 5:21 PM, Quentin Colombet <qcolombet at apple.com> wrote:
>> ** Advices Needed **
>>
>> 1. Decide whether or not we want such capabilities (if we do not we may just
>> add sporadically the support for a new warning/group of warning/error).
>> 2. Come
2007 Apr 30
1
[LLVMdev] llvm-gcc build broken
...ModulePass'
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:364: error:
`FunctionPassManager' was not declared in this scope
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:364: error: `PM' was
not declared in this scope
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:371: error:
`CodeGenPasses' was not declared in this scope
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:372: error: expected
type-specifier before `FunctionPassManager'
/projects/compiler/llvm-gcc/gcc/llvm-backend.cpp:372: error: expected
`;' before `FunctionPassManager'
/projects/compiler/llvm-gcc/gcc/...
2016 Feb 05
6
MCJit Runtine Performance
----- Original Message -----
> From: "Keno Fischer via llvm-dev" <llvm-dev at lists.llvm.org>
> To: "Morten Brodersen" <Morten.Brodersen at constrainttec.com>
> Cc: "llvm-dev" <llvm-dev at lists.llvm.org>
> Sent: Thursday, February 4, 2016 6:05:29 PM
> Subject: Re: [llvm-dev] MCJit Runtine Performance
>
>
>
> Yes,