mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
RST docs: convert HTML escapes to plain text in code examples.
llvm-svn: 164922
This commit is contained in:
parent
3d5e43c7ca
commit
353ea39be4
@ -230,7 +230,7 @@ any pass dependencies your pass has. Thus you should have something like this:
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AliasAnalysis::getAnalysisUsage(AU);
|
||||
// declare your dependencies here.
|
||||
}
|
||||
|
@ -390,7 +390,7 @@ functions make it easy to build arbitrary machine instructions. Usage of the
|
||||
MachineInstr *MI = BuildMI(X86::MOV32ri, 1, DestReg).addImm(42);
|
||||
|
||||
// Create the same instr, but insert it at the end of a basic block.
|
||||
MachineBasicBlock &MBB = ...
|
||||
MachineBasicBlock &MBB = ...
|
||||
BuildMI(MBB, X86::MOV32ri, 1, DestReg).addImm(42);
|
||||
|
||||
// Create the same instr, but insert it before a specified iterator point.
|
||||
@ -404,7 +404,7 @@ functions make it easy to build arbitrary machine instructions. Usage of the
|
||||
MI = BuildMI(X86::SAHF, 0);
|
||||
|
||||
// Create a self looping branch instruction.
|
||||
BuildMI(MBB, X86::JNE, 1).addMBB(&MBB);
|
||||
BuildMI(MBB, X86::JNE, 1).addMBB(&MBB);
|
||||
|
||||
The key thing to remember with the ``BuildMI`` functions is that you have to
|
||||
specify the number of operands that the machine instruction will take. This
|
||||
|
Loading…
Reference in New Issue
Block a user