mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
93f4a620dd
Implement the DAGify pass. This pass, using the results exposed by the `GenericRegionInfo` analysis, transforms all the retreating edges of each identified `GenericRegion`, processed in a bottom-up fashion, into a `goto` edge on the `ScopeGraph`.
21 lines
378 B
C++
21 lines
378 B
C++
#pragma once
|
|
|
|
//
|
|
// Copyright rev.ng Labs Srl. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "llvm/IR/Function.h"
|
|
#include "llvm/Pass.h"
|
|
|
|
class DAGifyPass : public llvm::FunctionPass {
|
|
public:
|
|
static char ID;
|
|
|
|
public:
|
|
DAGifyPass() : llvm::FunctionPass(ID) {}
|
|
|
|
bool runOnFunction(llvm::Function &F) override;
|
|
|
|
void getAnalysisUsage(llvm::AnalysisUsage &AU) const override;
|
|
};
|