Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM 6: Error in lib/Wrapper/OptSchedMachineWrapper.cpp: error: ‘const struct llvm::MCProcResourceDesc’ has no member named ‘Name’ #155

Closed
Quincunx271 opened this issue May 24, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Quincunx271
Copy link
Member

The error is on line 236:

for (unsigned FUIdx = 1; FUIdx < FUTypesCount; FUIdx++) {
const MCProcResourceDesc *FUResource =
LLVMSchedModel->getProcResource(FUIdx);
ResourceIdToIssueType[FUIdx] = FUResource->Name;
IssueTypeInfo ITI{FUResource->Name, static_cast<int>(FUResource->NumUnits)};
MM->addIssueType(ITI);
}

The workaround is to comment out this loop.

Full error message:

../lib/Wrapper/OptSchedMachineWrapper.cpp: In member function ‘virtual void llvm::opt_sched::CortexA53MMGenerator::generateProcessorData(std::string*, int*)’:
../lib/Wrapper/OptSchedMachineWrapper.cpp:236:48: error: ‘const struct llvm::MCProcResourceDesc’ has no member named ‘Name’
  236 |     ResourceIdToIssueType[FUIdx] = FUResource->Name;
      |                                                ^~~~
../lib/Wrapper/OptSchedMachineWrapper.cpp:237:35: error: ‘const struct llvm::MCProcResourceDesc’ has no member named ‘Name’
  237 |     IssueTypeInfo ITI{FUResource->Name, static_cast<int>(FUResource->NumUnits)};
      |                                   ^~~~

This came from @paul-mchugh 's #137 PR. Do you know what would be needed to fix this?

@Quincunx271 Quincunx271 added the bug Something isn't working label May 24, 2021
@Quincunx271
Copy link
Member Author

Obviated by the migration to newer LLVM versions (#156)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant