Added function interfaces for generating prolog and epilog code.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:56:33 +0000 (13:56 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:56:33 +0000 (13:56 +0000)
The functions must be implemented by the target-specific code generator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@951 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/InstrSelection.h

index 8010614d67f8609bebf3dd12dbed8b6bd52ab568..341f8b1289da1a3c35fe7691ca8e6c867aae808c 100644 (file)
@@ -37,6 +37,14 @@ extern unsigned      GetInstructionsByRule   (InstructionNode* subtreeRoot,
                                         TargetMachine &Target,
                                         MachineInstr** minstrVec);
 
+extern unsigned        GetInstructionsForProlog(BasicBlock* entryBB,
+                                        TargetMachine &Target,
+                                        MachineInstr** minstrVec);
+
+extern unsigned        GetInstructionsForEpilog(BasicBlock* anExitBB,
+                                        TargetMachine &Target,
+                                        MachineInstr** minstrVec);
+
 extern bool    ThisIsAChainRule        (int eruleno);