From: Misha Brukman Date: Thu, 12 Aug 2004 19:58:43 +0000 (+0000) Subject: * Escape &, <, and > X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cc8a899f51a2c8d55218d3c4b0f0230acb89d6b;p=oota-llvm.git * Escape &, <, and > * Wrap code in or for larger blocks,
* Wrap lines at 80 cols git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15705 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html index 775a431db0c..2e8982b8a50 100644 --- a/docs/ExtendingLLVM.html +++ b/docs/ExtendingLLVM.html @@ -220,7 +220,8 @@ installations. Only add new types if it is absolutely necessary.

add enum for the type
  • llvm/include/llvm/Type.h: - add ID number for the new type; add a forward declaration of the type also
  • + add ID number for the new type; add a forward declaration of the type + also
  • llvm/include/llvm/DerivedType.h: add new class to represent new class in the hierarchy; add forward @@ -228,29 +229,37 @@ installations. Only add new types if it is absolutely necessary.

  • llvm/lib/VMCore/Type.cpp: add support for derived type to: - std::string getTypeDescription(const Type &Ty, - std::vector &TypeStack) - bool TypesEqual(const Type* Ty, const Type *Ty2, - std::map & EqTypes) - add necessary member functions for type, and factory - methods
  • +
    +
    +std::string getTypeDescription(const Type &Ty,
    +  std::vector<const Type*> &TypeStack)
    +bool TypesEqual(const Type *Ty, const Type *Ty2,
    +  std::map<const Type*, const Type*> & EqTypes)
    +
    +
    + add necessary member functions for type, and factory methods
  • llvm/lib/AsmReader/Lexer.l: add ability to parse in the type from text assembly
  • llvm/lib/ByteCode/Writer/Writer.cpp: - modify void BytecodeWriter::outputType(const Type *T) to - serialize your type
  • + modify void BytecodeWriter::outputType(const Type *T) to serialize + your type
  • llvm/lib/ByteCode/Reader/Reader.cpp: - modify const Type *BytecodeReader::ParseType() to - read your data type
  • + modify const Type *BytecodeReader::ParseType() to read your data + type
  • llvm/lib/VMCore/AsmWriter.cpp: - modify void calcTypeName(const Type *Ty, - std::vector &TypeStack, - std::map &TypeNames, - std::string & Result) + modify +
    +
    +void calcTypeName(const Type *Ty,
    +                  std::vector<const Type*> &TypeStack,
    +                  std::map<const Type*,std::string> &TypeNames,
    +                  std::string & Result)
    +
    +
    to output the new derived type