Displaying 2 results from an estimated 2 matches for "visitterminatorinst".
2010 Jun 25
1
[LLVMdev] redundant checking of terminator in Verifier?
Hi,
The checking about that if this is a terminator that it is at the end
of the block has been applied twice (bellow). One is at
Verifier::visitInstruction, and the other is at
Verifier::visitTerminatorInst. Since visitInstruction is called when
visiting each instruction, the checking at visitTerminatorInst seems
redundant to me. Did I miss any case?
void Verifier::visitInstruction(Instruction &I) {
...
line 1356:
// Verify that if this is a terminator that it is at the end of the block.
if (...
2012 Nov 10
1
[LLVMdev] error: terminator in the middle of basic block
Hello,
I modified the PathProfiling.cpp and run opt -inesrt-path-profiling. it
works correctly ,but after path-profile is complete in
Verifier::visitTerminatorInst it prints "Terminator found in the middle
of a basic block!" .
error is I added two basic blocks after return basic block and return has
br label %newprint when printed in pathprofile module
but in Verifier::visitTerminatorInst
I=br label %newprint and I.getParent()->getTerminator= &...