search for: tyid

Displaying 2 results from an estimated 2 matches for "tyid".

Did you mean: t_id
2017 Jun 09
2
Subclassing LLVM Type
...to accept a Type* and not a DummyType* ( which is my own class ) I explored this a bit and did manage to create one. ========== DummyType class ========= class DummyType : public llvm::Type { private: std::string typeIdentifier; public: DummyType(const std::string& typeIdentifier,TypeID tyId):typeIdentifier(typeIdentifier),Type(TheContext,tyId) { } std::string getTypeIdentifierString() const { return this->typeIdentifier ; } }; ============================================ Now , Type* ty = new DummyType() works. However , I wish to use "dynamic_cast<>" at ru...
2004 Dec 09
1
[LLVMdev] Question about insert call func with pionter parameter
...t the constantarry differ from sbyte pointer ( sbyte*), but I tried to change the code to >Function *exFunc = M->getOrInsertFunction("stat_func", Type::VoidTy, Cstr->getType(),0); or >Function *exFunc = M->getOrInsertFunction("stat_func", Type::VoidTy, Type::ArrayTyID,0); and once I run the pass, it is worse than the above. the error information is " llvm::FunctionType::FunctionType(const llvm::Type*, const std::vector<const llvm::Type*, std::allocator<const llvm::Type::>>&,bool): Assertion ..............Function arguments must be value...