[docs] Update ExtendingLLVM.rst
authorantonio-cortes-perez <antoniocortes@google.com>
Mon, 21 Sep 2020 23:48:52 +0000 (16:48 -0700)
committerNate Voorhies <ncv@google.com>
Mon, 21 Sep 2020 23:49:48 +0000 (16:49 -0700)
Updated file paths and function signatures in section
"Adding a new type".

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D88049

llvm/docs/ExtendingLLVM.rst

index f2eb374..1dd5578 100644 (file)
@@ -246,11 +246,11 @@ Adding a fundamental type
 
    add enum for the new type; add static ``Type*`` for this type
 
-#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/IR/ValueTypes.cpp``:
+#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/CodeGen/ValueTypes.cpp``:
 
    add mapping from ``TypeID`` => ``Type*``; initialize the static ``Type*``
 
-#. ``llvm/llvm/llvm-c/Core.cpp``:
+#. ``llvm/include/llvm-c/Core.h`` and ``llvm/lib/IR/Core.cpp``:
 
    add enum ``LLVMTypeKind`` and modify
    ``LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty)`` for the new type
@@ -265,12 +265,11 @@ Adding a fundamental type
 
 #. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp``:
 
-   modify ``static void WriteTypeTable(const ValueEnumerator &VE,
-   BitstreamWriter &Stream)`` to serialize your type
+   modify ``void ModuleBitcodeWriter::writeTypeTable()`` to serialize your type
 
 #. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp``:
 
-   modify ``bool BitcodeReader::ParseTypeType()`` to read your data type
+   modify ``Error BitcodeReader::parseTypeTableBody()`` to read your data type
 
 #. ``include/llvm/Bitcode/LLVMBitCodes.h``:
 
@@ -288,11 +287,11 @@ Adding a derived type
    add new class to represent new class in the hierarchy; add forward
    declaration to the TypeMap value type
 
-#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/IR/ValueTypes.cpp``:
+#. ``llvm/lib/IR/Type.cpp`` and ``llvm/lib/CodeGen/ValueTypes.cpp``:
 
    add support for derived type, notably `enum TypeID` and `is`, `get` methods.
 
-#. ``llvm/llvm/llvm-c/Core.cpp``:
+#. ``llvm/include/llvm-c/Core.h`` and ``llvm/lib/IR/Core.cpp``:
 
    add enum ``LLVMTypeKind`` and modify
    `LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty)` for the new type
@@ -304,12 +303,11 @@ Adding a derived type
 
 #. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp``:
 
-   modify ``static void WriteTypeTable(const ValueEnumerator &VE,
-   BitstreamWriter &Stream)`` to serialize your type
+   modify ``void ModuleBitcodeWriter::writeTypeTable()`` to serialize your type
 
 #. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp``:
 
-   modify ``bool BitcodeReader::ParseTypeType()`` to read your data type
+   modify ``Error BitcodeReader::parseTypeTableBody()`` to read your data type
 
 #. ``include/llvm/Bitcode/LLVMBitCodes.h``: